[Help]Spawning at All Saints Hospital After Death - 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: [Help]Spawning at All Saints Hospital After Death (
/showthread.php?tid=113824)
[Help]Spawning at All Saints Hospital After Death -
`Robo - 16.12.2009
Here's my death and spawn codes, can someone edit it to make it only spawn at all saints on death?
http://pastebin.com/m1519e467
Re: [Help]Spawning at All Saints Hospital After Death -
DiddyBop - 16.12.2009
Not sure if this is the best way... but..
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
if(killerid == INVALID_PLAYER_ID)
{
SendDeathMessage(INVALID_PLAYER_ID,playerid,reason);
}
else
{
SendDeathMessage(killerid,playerid,reason);
SetPlayerPos(playerid, x, y, z); // Of the hospital. maybe you gotta put a delay timer.. but thats a general idea....
}
return 1;
}