[Pomoc]3D textovi

Započeo FireMan, Mart 21, 2011, 14:41:45 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:Cyb3r
Detaljan opis problema:Zelio bi kad je admin/gm na duznosti da se za njega "zakaci"  3D tex di bi pisalo NA GM Duznosti (ne ometaj),gledao sam neku prijasnju temu za to ali nis nisam skuzio pa ako neko to moze ubacit u ovu skriptu
Dio skripte:


if (strcmp(cmd,"/gmonduty",true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
if (PlayerInfo[playerid][pGameMaster] >= 1)
{
                new sMsg[ 128 ];
                GetPlayerName( playerid, sMsg, MAX_PLAYER_NAME );
                SetPlayerColor( playerid, SVETLOPLAVA );
                SetPlayerHealth(playerid, 250);
        SetPlayerArmour(playerid, 250);
                format( sMsg, sizeof( sMsg ), "|GameMaster %s je sada na duznosti|", sMsg );
                SendClientMessageToAll(0x9600FFFF, sMsg );
GameTextForPlayer(playerid, "~r~GameMaster-Onduty ~w~Ukljucen!", 4000, 3);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "   Nisi GameMaster!");
}
}
return 1;
}





Neke slike/video za lakse dobivanje pomoci(neobavezno)://




PS:

   if (strcmp(cmd,"/gmoffduty",true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
if (PlayerInfo[playerid][pGameMaster] >= 1)
{
                new sMsg[ 128 ];
                GetPlayerName( playerid, sMsg, MAX_PLAYER_NAME );
                SetPlayerColor( playerid, BELA );
                SetPlayerHealth(playerid, 100);
                SetPlayerArmour(playerid, 0);
                format( sMsg, sizeof( sMsg ), "|GameMaster %s vise nije na duznosti|", sMsg );
                SendClientMessageToAll( 0x01FCFFC8, sMsg );
GameTextForPlayer(playerid, "~r~GameMaster-Onduty ~w~Iskljucen!", 4000, 3);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "   Nisi GameMaster");
}
}
return 1;
}



kako da to maknem kad odem s duznosti?


objasnjeno je ali ja nisam nis skuzio -.-

if(!strcmp(cmdtext, "/adminduty", true))
{
if(IsPlayerConnected(playerid))
{
   if(gPlayerLogged[playerid] == 0)
   {
       SendClientMessage(playerid, COLOR_GREY, "   Morate se logirati prvo !");
return 1;
   }
   if(PlayerInfo[playerid][pAdmin] > 0)
   {
       if(AdminDuty[playerid] == 0)
       {
           AdminDuty[playerid] = 1;
           SetPlayerArmour(playerid, 9999);
SetPlayerHealth(playerid, 9999);
SetPlayerColor(playerid,COLOR_NICERED);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "[ADMIN] [ID:%d]%s je na Admin duznosti", playerid, sendername);
ABroadCast(COLOR_YELLOW,string,1);
DutyLabel[playerid] = Create3DTextLabel("Ne ometaj!\n Na Admin duznosti ",0xFF000099,0,0,0,50,-1,1);
Attach3DTextLabelToPlayer(DutyLabel[playerid], playerid, 0,0,0);
if(PlayerInfo[playerid][pAdmin] >= 1337)
{
   for(new i = 0; i < sizeof(CarInfo); i++)
{
SetVehicleParamsForPlayer(i,playerid,0,0);
}
}
return 1;
       }
       else if(AdminDuty[playerid] == 1)
       {
             
           AdminDuty[playerid] = 0;
                   Delete3DTextLabel(DutyLabel[playerid]);
           SetPlayerArmour(playerid, 0);
SetPlayerHealth(playerid, 100);
SetPlayerColor(playerid,TEAM_HIT_COLOR);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "[ADMIN] [ID:%d]%s vise nije na Admin duznosti", playerid, sendername);
ABroadCast(COLOR_YELLOW,string,1);
return 1;
       }
   }
   else
   {
       SendClientMessage(playerid, COLOR_GREY, "   Vi niste autorizovani da bi ste Koristiteli ovu komandu !");
       return 1;
   }
}
   return 1;
}


eto ti za admin duznost pa ti izmjeni

EDIT: ovoaj 3d text sto imas jedini ti nevidis ostali vide..
Poslednja Izmena: Mart 21, 2011, 15:46:14 POSLE PODNE od [CH]Ivan_Lukic

dodje mi ovaj error

C:\Users\USER\Desktop\SAMP Server\gamemodes\[CRO]Slavonija.pwn(27638) : warning 213: tag mismatch
C:\Users\USER\Desktop\SAMP Server\gamemodes\[CRO]Slavonija.pwn(27639) : warning 213: tag mismatch
C:\Users\USER\Desktop\SAMP Server\gamemodes\[CRO]Slavonija.pwn(27642) : error 072: "sizeof" operator is invalid on "function" symbols
C:\Users\USER\Desktop\SAMP Server\gamemodes\[CRO]Slavonija.pwn(27653) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
Poslednja Izmena: Mart 21, 2011, 19:49:15 POSLE PODNE od hood9



if(!strcmp(cmdtext, "/adminduty", true))
{
if(IsPlayerConnected(playerid))
{
    if(gPlayerLogged[playerid] == 0)
    {
        SendClientMessage(playerid, COLOR_GREY, "   Morate se logirati prvo !");
return 1;
    }
    if(PlayerInfo[playerid][pAdmin] > 0)
    {
        if(AdminDuty[playerid] == 0)
        {
            AdminDuty[playerid] = 1;
            SetPlayerArmour(playerid, 9999);
SetPlayerHealth(playerid, 9999);
SetPlayerColor(playerid,COLOR_NICERED);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "[ADMIN] [ID:%d]%s je na Admin duznosti", playerid, sendername);
ABroadCast(COLOR_YELLOW,string,1);
SetPlayerChatBubble(playerid, Admin na duznosti\n ne ometaj !, 0xFF0000FF, 100.0, 10000);
if(PlayerInfo[playerid][pAdmin] >= 1337)
{
    for(new i = 0; i < sizeof(CarInfo); i++)
{
SetVehicleParamsForPlayer(i,playerid,0,0);
}
}
return 1;
        }
        else if(AdminDuty[playerid] == 1)
        {
               
            AdminDuty[playerid] = 0;
                    Delete3DTextLabel(DutyLabel[playerid]);
            SetPlayerArmour(playerid, 0);
SetPlayerHealth(playerid, 100);
SetPlayerColor(playerid,TEAM_HIT_COLOR);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "[ADMIN] [ID:%d]%s vise nije na Admin duznosti", playerid, sendername);
ABroadCast(COLOR_YELLOW,string,1);
return 1;
        }
    }
    else
    {
        SendClientMessage(playerid, COLOR_GREY, "   Vi niste autorizovani da bi ste Koristiteli ovu komandu !");
        return 1;
    }
}
    return 1;
}
Poslednja Izmena: Mart 21, 2011, 21:53:38 POSLE PODNE od Jamaica



Citat: BloodMaster
U komandu gdje palis duznost stavis ovo:

SetPlayerChatBubble(playerid, "Administrator na duznosti!\n{ffffff}Ne ometaj!", 0xFF000001, 100.0, 10*60*60*1000);

I u dio gdje gasis duznost:

SetPlayerChatBubble(playerid, " ", 0xFF000001,0,0);