13.04.2013, 22:27
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:
If you need any other code, just ask
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;
}