Spawn dieing with 'stay within world boundaries.'
#1

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
Reply
#2

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

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

Or use SetSpawnInfo.
Reply
#5

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.
Reply
#6

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)