Help with GodMode commands :D
#4

Just a little fix for the above command,
because it may cause some kind of bug depending on your code

On top of script:
Код:
new godmodestatus[MAX_PLAYERS];
In OnPlayerConnect write this:
Код:
godmodestatus = 0;
Under your godmode command write this:
PHP код:
// if enabled -- depends on your command :/ idk what it will be
godmodestatus 1;
// if disabled -- depends on your command :/ idk what it will be too
godmodestatus 0
and finally under your weapons cmd:
PHP код:
CMD:weapons(playerid,params[])
{
   if (
godmodestatus[playerid] == 1) return SendClientMessage(playerid, -1"You can't get weapons if godmode is on!");
   
// code

Hope it helps.
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: 2 Guest(s)