Scripting question
#1

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..
Reply
#2

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?
Reply
#3

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


Forum Jump:


Users browsing this thread: 2 Guest(s)