[Duv] OnPlayerUpdate
#9

#include <a_samp>
#include <core>
#include <float>
#include <time>
#include <file>
#include <utils>
#include <morphinc>
#include <cpstream>
#include <Y_Objects>
#define VERDE 0x33AA33AA
forward Coma(playerid);
forward hs(playerid);

public OnPlayerUpdate(playerid)
{
if(GetPlayerHealth(playerid) <= 20.0)
{
new str[128];
new Nome[64];
GetPlayerName(playerid, Nome, sizeof(Nome));
format(str, sizeof(str), "O jogador %s estб morrendo! Liguem para o Samu!!!");
SendClientMessageToAll(VERDE, str);
ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.1, 0, 1, 1, 1, 1);
TogglePlayerControllable(playerid, 0);
SetTimerEx("Coma",30000, false, "d", playerid);
return 1;
}
}

public Coma(playerid)
{
new cut;
new string[256];
SetPlayerPos(playerid, 1939.5685,-2121.9780,-18.6666);
format(string, sizeof(string), "Hospital: Vocк Estб em Coma.", cut);
SendClientMessage(playerid, VERDE, string);
SetTimerEx("hs",30000, false, "d", playerid);
return 1;
}

public hs(playerid)
{
SetPlayerHealth(playerid, 0.0);
return 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: 1 Guest(s)