Preventing players [+REP] - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Preventing players [+REP] (
/showthread.php?tid=592225)
Preventing players [+REP] -
karemmahmed22 - 22.10.2015
Hai, I made a filterscript for minigames in past, I wanted to use it with my stunts/freeroam gamemode, But sadly players abusing Stuntsmode command (godmode) and car auto fix in minigames..
Is it possbile to check in gamemode if player typed the command: "/race" (which is in minigames filterscript) and he got auto fix or stuntsmode, preventing the command from being executed?
Someone told me to do that:
PHP код:
if(!strcmp(cmdtext, "/race", true) && StuntsMode[playerid] == true) return SendClientMessage(playerid, -1, "bla bla bla");
Would it work?
Re: Preventing players [+REP] -
ATGOggy - 22.10.2015
It will work.
Re: Preventing players [+REP] -
PrO.GameR - 22.10.2015
Yes, just add a variable, put it to 1 as soon as they enter your minigame, and have cmds that give god mode check if that variable is 0 to give them godmode, if it's 1, they won't be allowed to use it.