18.09.2017, 13:10
hello there ,i am having aod cmd it works fine but i want it like when i type aod i get all things and when typed again every thing goes to normal here is my cmd
help me out pls
Код:
CMD:aod(playerid,params[])
{
if(PlayerInfo[playerid][pAdmin] >= 1)
{
ResetPlayerWeapons(playerid);
SendClientMessage(playerid,COLOR_GREY,"{1AE694}» {EA15D5}You're now on duty. (Dont abuse it");
GivePlayerWeapon(playerid,43,100);
SetPlayerSkin(playerid,294);
SetPlayerHealth(playerid,999999);
SetPlayerColor(playerid,0xEA15D5C8);
new Text3D:label = Create3DTextLabel("ADMIN ON DUTY!", 0xEA15D5C8, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
}
else
{
SendClientMessage(playerid, COLOR_RED, "You are not allowed to use this cmd");
}
return 1;
}


