(GF)when someboby who type the /handsup,then will unfreeze them?(I have an idea)
#1

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


Reply
#2

Anyone can see??
Reply
#3

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


Forum Jump:


Users browsing this thread: 1 Guest(s)