12.02.2013, 21:28
Use SetTimerEx.
pawn Код:
forward stun(playerid);
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
TogglePlayerControllable(playerid, 0);
SetTimerEx("stun", 2000, false, "d", playerid);
}
public stun(playerid)
{
TogglePlayerControllable(playerid, 1);
return 1;
}