SA-MP Forums Archive
To be born in the hospital ? - 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)
+--- Thread: To be born in the hospital ? (/showthread.php?tid=648257)



To be born in the hospital ? - k2bi - 18.01.2018

So, I wanted to know how to do when the player dies when he is born in a "hospital", for example: when a player logs he will be born a cordenada "X", and when he dies he will be born a cordenada "X" , but when he relogar instead of spawn in the "hospital" that is the cordenada "X", he will be born normally in the spawn ... if someone can help me


Re: To be born in the hospital ? - DelK - 18.01.2018

PHP код:
new boolDeath[MAX_PLAYERS];
OnplayerDeath
Death
[playerid] = true;
OnplayerSpawn
if(Death[playerid]) 
{
    
SetPlayerPos(playeridhospitalx ,,z);
    
Death[playerid] = false;