16.04.2009, 23:14
but i found a way to fix it :P
first you may replace the text "TogglePlayerControllable" => "SafeTogglePlayerControllable"
then :
I think that can help you for other anticheat ideas
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);
}


