Preventing players [+REP]
#1

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?
Reply
#2

It will work.
Reply
#3

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)