SA-MP Forums Archive
[Help] Freeze = no command - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Help] Freeze = no command (/showthread.php?tid=92721)



[Help] Freeze = no command - jonybomb - 21.08.2009

I want make a command, and i want when player is freeze (toogleplayercontrolabe(playerid, toggle), he can't make that cmd... I already try by many ways and i can't, plz help me


Re: [Help] Freeze = no command - coole210 - 21.08.2009

Its spelled TogglePlayerControllable(playerid,toggle);


Re: [Help] Freeze = no command - jonybomb - 21.08.2009

That don't answer at my question


Re: [Help] Freeze = no command - Gamer_Z - 21.08.2009

make in the freeze cmd a variable like CannotUseCommands[tmpplayer] = 1;
at top CannotUseCommands[MAX_PLAYERS];
at connect CannotUseCommands[playerid] = 0;
in onplayercommandtext
if(CannotUseCommands[playerid] == 1)return sendclientmessage(bla,bla ,"shuth up you cannot use commands");

fixed? let me know :P


Re: [Help] Freeze = no command - jonybomb - 22.08.2009

That block all commands? I want block just 1 command lol


Re: [Help] Freeze = no command - jonybomb - 23.08.2009

Bump


ps and i want put that if player is freeze, not in command /freeze


Re: [Help] Freeze = no command - silvan - 23.08.2009

do what he said... and the part of " OnPlayerCommand " make it in the command


Re: [Help] Freeze = no command - jonybomb - 23.08.2009

That is not what I want ... I have a few vehicles in GM which to enter the doll is frozen and I need that in this case, it can not do 1 command that I have the GM, but all others, must do :S


Re: [Help] Freeze = no command - jonybomb - 24.08.2009

bump