SA-MP Forums Archive
OnPlayerDeath Easy - 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: OnPlayerDeath Easy (/showthread.php?tid=545842)



OnPlayerDeath Easy - C0olp1x - 10.11.2014

I'm new to pawno so i tried to make when player is death to set he's position to the hospital but it won't work ...
Can u help to make that ?


Re: OnPlayerDeath Easy - meta1 - 11.11.2014

pawn Код:
public OnPlayerDeath(playerid)
{
    SetSpawnInfo(playerid,0,0,posx,posy,posz,0,0,0,0,0,0,0);
    SpawnPlayer(playerid);
    return 1;
}
Replace posx, posy, and posz with your desired position