SA-MP Forums Archive
How to check is player was freezed? - 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: How to check is player was freezed? (/showthread.php?tid=549570)



How to check is player was freezed? - Banditukas - 07.12.2014

Hi,

I want to ask. It'is possible to check is player toggleplayercontrable? i don't want use variables, because with cheats you can off toggleplayercontrabble but if i could to check, then when i set toggleplayercontrable and then check player is not freezed then i could give kick.


Re: How to check is player was freezed? - OsteeN - 07.12.2014

I don't think you can check if the player is controllable or not without using variables.


Re: How to check is player was freezed? - UltraScripter - 07.12.2014

nope you cant you need to use variables!


Re: How to check is player was freezed? - Lordzy - 07.12.2014

You can try doing a check with player's velocity and animation, frozen players are not meant to move but their velocity can increase if they're damaged by a vehicle with high velocity.


Re: How to check is player was freezed? - Banditukas - 07.12.2014

It would be better something with animation, but is animation is changing when player if freezed? with vehicle and velocity that will happin just in some times i need to check that in when player spawn then it'is impossible to hit player with vehicle