Anyway i can puase player death and make them 10% life and cant take anymore damage from anyone or vehicle and have them stunned to the ground in a hurt state just curious been awhile since i been messing with my GM wanted to try something knew.. Cause im kinda tired of the death stuff when it's roleplay have them moreless not die but be injured and half to wait for a paramedic to get there to try save there life but after so many minutes the player dies.. but trying to make it realistic like cause it kinda boring getting shot and dieing and reborn somewhere give them emt and fireman more jobs to do then fighting fires and healing players ... sorry didnt mean to write a book but any interested in helping me figure out this code it be more then appreciated i know i can eventually get it but asking for alittle head start as i said just came back thanks for the help..
|
public OnPlayerDeath(playerid, killerid, reason)
{
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid, x, y, z);
SetPlayerPos(playerid, x, y, z);
SetPlayerHealth(playerid, 10);
ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
TogglePlayerControllable(playerid,1);
return 1;
}