(GF)when someboby who type the /handsup,then will unfreeze them?(I have an idea) - 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: (GF)when someboby who type the /handsup,then will unfreeze them?(I have an idea) (
/showthread.php?tid=73671)
(GF)when someboby who type the /handsup,then will unfreeze them?(I have an idea) -
kymsar - 16.04.2009
but i found a way to fix it :P
first you may replace the text "TogglePlayerControllable" => "SafeTogglePlayerControllable"
then :
Код:
new ControllableTimerRunning[MAX_PLAYERS];
new ControllableTimerRunning2[MAX_PLAYERS];
forward SafeTogglePlayerControllable(playerid,able);
forward ControllableTimer(playerid,able);
.......
public SafeTogglePlayerControllable(playerid,able)
{
if(able!=0)
{
if(ControllableTimerRunning2[playerid]==1)
{
KillTimer(ControllableTimerRunning[playerid]);
ControllableTimerRunning2[playerid]=0;
}
ControllableTimer(playerid,able);
}
else
{
if(ControllableTimerRunning2[playerid]==0)
{
ControllableTimerRunning[playerid]=SetTimerEx("ControllableTimer", 1000, 1, "dd", playerid,able);
ControllableTimerRunning2[playerid]=1;
}
}
}
public ControllableTimer(playerid,able)
{
TogglePlayerControllable(playerid,able);
}
I think that can help you for other anticheat ideas
Re: (GF)when someboby who type the /handsup,then will unfreeze them?(I have an idea) -
kymsar - 17.04.2009
Anyone can see??
Re: (GF)when someboby who type the /handsup,then will unfreeze them?(I have an idea) -
MenaceX^ - 17.04.2009
I don't get what you want, are you asking for help? or showing us what you did?
Also there's an animation of /handsup, and in that one you won't get frozen.