21.11.2012, 17:05
Hello SA-MP
I have put this piece of code in my script, But In my head it's saying this is wrong, I'm forgetfull at the moment and I forgot how I would make this work.
Here is the code:
I have put this under "OnPlayerUpdate(playerid)"
I have put this piece of code in my script, But In my head it's saying this is wrong, I'm forgetfull at the moment and I forgot how I would make this work.
Here is the code:
pawn Код:
new Float:health;
if(health >= 10)
{
new string[128];
GetPlayerHealth(playerid, health);
ApplyAnimation(playerid, "KNIFE", "KILL_Knife_Ped_Die", 4.0, 0, 1, 1, 1, 0, 1);
SendClientMessageEx(playerid, COLOR_GREEN, "Your health was detected at 10%, You have automatically been put into cracked");
format(string, sizeof(string), "* %s has fell to the floor in pain!", GetPlayerNameEx(playerid));
ProxDetector(30.0, giveplayerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
format(string, sizeof(string), "* Groans (( %s ))", GetPlayerNameEx(playerid));
ProxDetector(30.0, giveplayerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}