SA-MP Forums Archive
Spawn dieing with 'stay within world boundaries.' - 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: Spawn dieing with 'stay within world boundaries.' (/showthread.php?tid=430452)



Spawn dieing with 'stay within world boundaries.' - Kestro - 13.04.2013

I am working on a from-scratch-roleplay gamemode and it's gone good so far but when I log on, it saves the account data then log back on it kills me multiple times then comes up with 'stay within world boundaries.'

OnPlayerDeath:
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    SendClientMessage(playerid, COL_GREY, "NOTICE: You have been injured and have been immediately sent to the hospital.");
    SendClientMessage(playerid, COL_GREY, "(( OOC NOTICE: You have lost 30 minutes of your memory. To prevent Revenge Killing. ))");
    SetPlayerPos(playerid, 1172.0780,-1323.1689,15.4026);
    SpawnPlayer(playerid);
    SetPlayerHealth(playerid, 100);
    return 1;
}
If you need any other code, just ask


Re: Spawn dieing with 'stay within world boundaries.' - mrskull42 - 13.04.2013

Remove your SpawnPlayer(playerid); tell me what happens.


Re: Spawn dieing with 'stay within world boundaries.' - Scenario - 13.04.2013

Do you have any AddPlayerClass() lines under OnGameModeInit()? If not, add one.


Re: Spawn dieing with 'stay within world boundaries.' - MP2 - 14.04.2013

Or use SetSpawnInfo.


Re: Spawn dieing with 'stay within world boundaries.' - Kestro - 14.04.2013

Quote:
Originally Posted by mrskull42
Посмотреть сообщение
Remove your SpawnPlayer(playerid); tell me what happens.
I removed it - I went on the server, went off, turned the server off and on, went back on then It wouldn't let me spawn
EDIT: It did the same thing, but only killed me once.


Re: Spawn dieing with 'stay within world boundaries.' - Scenario - 14.04.2013

Quote:
Originally Posted by Kestro
Посмотреть сообщение
I removed it - I went on the server, went off, turned the server off and on, went back on then It wouldn't let me spawn
EDIT: It did the same thing, but only killed me once.
Why did you just ignore MP2 and I's posts? They are the ones with a solid answer.