(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


Messages In This Thread
(GF)when someboby who type the /handsup,then will unfreeze them?(I have an idea) - by kymsar - 16.04.2009, 23:14
Re: (GF)when someboby who type the /handsup,then will unfreeze them?(I have an idea) - by kymsar - 17.04.2009, 12:19
Re: (GF)when someboby who type the /handsup,then will unfreeze them?(I have an idea) - by MenaceX^ - 17.04.2009, 12:21

Forum Jump:


Users browsing this thread: 1 Guest(s)