SA-MP Forums Archive
Scripting question - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Scripting question (/showthread.php?tid=272837)



Scripting question - Buzzbomb - 30.07.2011

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..


Re: Scripting question - Kush - 30.07.2011

Quote:
Originally Posted by Buzzbomb
Посмотреть сообщение
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..
PHP код:
public OnPlayerDeath(playeridkilleridreason)
{
    new 
Float:x,Float:y,Float:z;
    
GetPlayerPos(playeridxyz);
    
SetPlayerPos(playeridxyz);
    
SetPlayerHealth(playerid10);
    
ApplyAnimation(playerid"CRACK""crckdeth2"4.010000);
    
TogglePlayerControllable(playerid,1);
    return 
1;

Something like this?


Re: Scripting question - Buzzbomb - 30.07.2011

Yeah then set a timer to if player aint been attended to by a emt they really die after so long .. then i half to make a command for fireman and paramedics to kill the death timer and do a slow healing process .. or just stop the timer completely then escort them to the hospital for medical attention... this be awesome if it turns out as planned... thanks for your reply kush.....