[Ajuda] Sistema de combate sem lag
#2

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;
}
Reply


Messages In This Thread
Sistema de combate sem lag - by ToySoldier - 12.02.2013, 21:12
Re: Sistema de combate sem lag - by HardWar - 12.02.2013, 21:28
Re: Sistema de combate sem lag - by ToySoldier - 12.02.2013, 21:35

Forum Jump:


Users browsing this thread: 1 Guest(s)