[Duv] OnPlayerUpdate
#4

Quote:
Originally Posted by Krypton
eu queria um bagulho quando a vida chega se a 10 ele desmaia e tinha que chamar o samu.
pawn Code:
public OnPlayerUpdate(playerid)
{
    if(GetPlayerHealth(playerid) <= 10.0)
    {
      new
      str[128],
        Nome[64];
        GetPlayerName(playerid, Nome, sizeof(Nome));
        format(str, sizeof(str), "O jogador %s estб morrendo! SAMU vem busca o malaco!");
        SendClientMessageToAll(COR, str);
        ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.1, 0, 1, 1, 1, 1);
        TogglePlayerControllable(playerid, 0);
        return 1;
    }
    return 1;
}
Ai coloca pra quando os carinha chegar digitar la o comando e no comando coloca TogglePlayerControllable(iddocara, 1);
Reply


Messages In This Thread
[Duv] OnPlayerUpdate - by Krypton - 11.01.2010, 18:19
Re: [Duv] OnPlayerHealth - by speliarmos - 11.01.2010, 18:28
Re: [Duv] OnPlayerHealth - by Krypton - 11.01.2010, 18:32
Re: [Duv] OnPlayerHealth - by speliarmos - 11.01.2010, 18:41
Re: [Duv] OnPlayerHealth - by Krypton - 11.01.2010, 19:28
Re: [Duv] OnPlayerHealth - by Guilherme_Canani - 11.01.2010, 19:35
Re: [Duv] OnPlayerHealth - by speliarmos - 11.01.2010, 19:40
Re: [Duv] OnPlayerHealth - by Krypton - 11.01.2010, 21:06
Re: [Duv] OnPlayerUpdate - by GhOsT[X] - 12.01.2010, 18:43

Forum Jump:


Users browsing this thread: 3 Guest(s)