19.02.2017, 19:04
Top of the gamemode:
I'll just make a quick example of how you have to do with your "guns command"
Код:
new IsGodmode[MAX_PLAYERS];
Код:
CMD:guns(playerid,params[]) { if (IsGodmode[playerid] == 1) { //checks that the guy that is doing the command is godmode or not SendClientMessage(playerid,COLOR_RED,"You can't use that command while in Godmode!"); //sends a message on chat } else { //if he isn't godmode do the following GivePlayerWeapon(playerid,31,300); //It gives the weapon } return 1; }