27.10.2018, 20:04
Quote:
thats weird, are you sure command for going onduty is setting [pAdminDuty] to "1" ?
|
Код:
CMD:aduty(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] == 1) { new Text3D:label = Create3DTextLabel("Game Administrator", 0xFFA500FF, 30.0, 40.0, 50.0, 40.0, 0); Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7); SendClientMessage(playerid, COLOR_LAWNGREEN, "You are now on duty as a Game Administrator"); PlayerInfo[playerid][pAdminDuty] = 1; } else return SendClientMessage(playerid, COLOR_RED, "ERROR: You are not a Game Administrator!"); return 1; }