09.06.2012, 22:37
I am testing some admin commands.i didnt make that player must be admin just this
In Game everything works except removing label.
Код:
CMD:aon(playerid, params[]) { new Text3D:al = Create3DTextLabel("((Na Admin Duznosti))", COLOR_ADMIN, 30.0, 40.0, 50.0, 40.0, 0); if(PlayerInfo[playerid][aduty] == 0) { Attach3DTextLabelToPlayer(Text3D:al, playerid, 0.0, 0.0, 0.5); SCM(playerid, COLOR_ADMIN, "Sada si na admin duznosti."); SetPlayerColor(playerid, COLOR_ADMIN); SetPlayerArmour(playerid, 1000); SetPlayerHealth(playerid, 1000); PlayerInfo[playerid][aduty] = 1; return 1; } else { Delete3DTextLabel(Text3D:al); SetPlayerColor(playerid, COLOR_WHITE); SCM(playerid, COLOR_ADMIN, "Vise nisi na admin duznosti."); SetPlayerArmour(playerid, 0); SetPlayerHealth(playerid, 100); PlayerInfo[playerid][aduty] = 0; return 1; } }