How to make player spawn at hospital after death
#1

I host a roleplay server, but i haven't set it for the player to spawn at the hospital after death, they just spawn at the airport (where you spawn when you first register) and i dont know how to do this, can someone help me out? thanks
Reply
#2

http://forum.sa-mp.com/search.php?searchid=5062995

Look through those, if you don't find what you're looking for I'll help you out :P
Reply
#3

Код:
public OnPlayerDeath(playerid, killerid, reason)
{
   SetPlayerPos(playerid,x,y,z);///sets the player who dies to this position
   return1;
}
Reply
#4

Use:

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{

SetPlayerPos(playerid, 1552.5980,-1676.2185,16.1953,76.0868); //He will spawn at LSPD but you can change the cords to the Hospital
    return 1;
}
Reply
#5

i also need to set a timer for at least 30 seconds
Reply
#6

But this timer, how it will work?

For example, if player dies? He has to wait 30 seconds to be spawned again on hospital?

Explain clearly to understand you!
Reply
#7

yes, after the player dies he has to wait for at least 30 seconds, frozen in crack anim inside hospital interior, and then spawn outside of hospital when timer is over
Reply
#8

Can you give me the Hospital Interior coordinates?
Reply
#9

just use a empty room from this int 384.808624,173.804992,1008.382812 but make it so the player cant move
Reply
#10

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
ApplyAnimation(playerid,"MEDIC","CPR",1.1,1,0,0,1,30000,1);//Modifie it as you want, this is an animation,
 return 1;
}
Hope it helps, if it's rep me!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)