Help with GodMode commands :D
#3

Top of the gamemode:
Код:
new IsGodmode[MAX_PLAYERS];
I'll just make a quick example of how you have to do with your "guns command"
Код:
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;
}
Reply


Messages In This Thread
Help with GodMode commands :D - by TheseMan - 19.02.2017, 11:36
Re: Help with GodMode commands :D - by TheseMan - 19.02.2017, 11:40
Re: Help with GodMode commands :D - by Flamehaze7 - 19.02.2017, 19:04
Re: Help with GodMode commands :D - by YouHack - 19.02.2017, 22:46
Re: Help with GodMode commands :D - by TheseMan - 20.02.2017, 08:05
Re: Help with GodMode commands :D - by K1ddu - 29.04.2018, 13:30

Forum Jump:


Users browsing this thread: 1 Guest(s)