Pomoc - Label

Započeo Benac, Mart 16, 2014, 14:13:39 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

SKRIPTA:
PROBLEM: p kada kucam /aduty ode na duznost ali mi nece pokazat Attach3DTextLabelToPlayer
DIO KODA:
CMD:aduty(playerid, params[])
{

    //#pragma unused help
//#pragma unused params
    if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"SERVER | "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
if(PlayerInfo[playerid][pAdmin] == 0) return SCM(playerid, -1, ""SPLAVA"[SERVER] "BIJELA"Samo Admini!");
new string[256];
if(AdminDuty[playerid] == 0)
{
format(string,sizeof(string),"{0077ED}(( {FFFFFF}Administrator {0077ED}%s {FFFFFF}je na duznosti, za pomoc kucajte {F81414}/report! {0077ED}))",GetName(playerid));
AdminGameMaster(0x0077EDFF,string);
  DutyLabel[playerid] = Create3DTextLabel("Na Admin Duznosti! (Ne ometaj!))", 0x0077EDFF, 0.0, 0.0, 150.0, 50.0, -1, 1);
        Attach3DTextLabelToPlayer(DutyLabel[playerid], playerid, 0.0, 0.0, 0.6);
AdminDuty[playerid] = 1;
SetPlayerColor(playerid,APLAVA);
SetPlayerArmour(playerid, 99.0);
g_SetPlayerHealth(playerid, 99.0);
}
else if(AdminDuty[playerid] == 1)
{
SetPlayerArmour(playerid, 0);
g_SetPlayerHealth(playerid, 99.0);
SetPlayerColor(playerid,BIJELA2);
format(string,sizeof(string),"{0077ED}(( {FFFFFF}Administrator {0077ED}%s {FFFFFF}vise nije na duznosti! {0077ED}))",GetName(playerid));
AdminGameMaster(0x0077EDFF,string);
Delete3DTextLabel(DutyLabel[playerid]);
AdminDuty[playerid] = 0;
}
return 1;
}

SLIKE:[/b]
TUTORIALI :

Big Respect: " C++ "  (Majke mi nepamtim boljeg moderatora pawno sekcije, dada Blaeks je nekad bio :P)