Posts: 293
Threads: 20
Joined: Jan 2017
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:
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.
Posts: 29
Threads: 4
Joined: May 2016
Reputation:
0
Thank you all for helping me, +Rep