SA-MP Forums Archive
Freeze keys not work - 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: Freeze keys not work (/showthread.php?tid=613620)



Freeze keys not work - Mister0 - 29.07.2016

Did you know if I am freezed keys not work?
Well I have this commands

if(newkeys == KEY_LOOK_BEHIND)
{
SCM(playerid,-1,"You pressed 2");
if(IsPlayerInAnyVehicle(playerid))
cmd_lock(playerid,string);
}
well I want to do it when I am freezed, TogglePlayerControlable 0
but actuali I can't use onplayerkeystateshange when I am frezed, any idea please?


Re: Freeze keys not work - Mister0 - 30.07.2016

up anyone?


Re: Freeze keys not work - Iqba - 30.07.2016

Look at this: https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange


Re: Freeze keys not work - Mister0 - 30.07.2016

I know if I freeze a player keys not, work but how can I do to work my command with key?