20.03.2014, 14:02
Hi Guys i can't fix that bug someoen can help me well when i'm /aduty the headtext show 100% when i try to be offduty the text still there help
I Will Continue with Return... I Know
Код:
//variables new Text3D:label;
Код:
CMD:aduty(playerid) { if(pInfo[playerid][pLogged] == 1) { if(pInfo[playerid][pAdminLevel] >= 1) { if(pInfo[playerid][pAdminDuty] == 0) { pInfo[playerid][pAdminDuty] = 1; new adutyonstring[128]; format(adutyonstring, sizeof(adutyonstring), "{F3FF02}Admin %s is now on duty [DO NOT ATTACK HIM]" ,PlayerName(playerid)); label = Create3DTextLabel("Admin On Duty.", 0xFFC70855, 30.0, 40.0, 50.0, 40.0, 0); Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7); SendClientMessageToAll(-1,adutyonstring); SetPlayerSkin(playerid,126); ResetPlayerWeapons(playerid); SetPlayerColor(playerid,COLOR_ADUTY); SetPlayerHealth(playerid,9999); SendClientMessage(playerid,COLOR_RED,"Remember to /aduty when you play as regular player."); } else { if(pInfo[playerid][pAdminDuty] == 1) { pInfo[playerid][pAdminDuty] = 0; new adutyoffstring[128]; format(adutyoffstring, sizeof(adutyoffstring), "{F3FF02}Admin %s is now off admin duty" ,PlayerName(playerid)); DeletePlayer3DTextLabel(playerid, label); SendClientMessageToAll(-1,adutyoffstring);