13.09.2011, 23:11
So, if you /join when a event is started, then you go into a area. And if you die I want it so it returns the player to there last location. I'm not really sure how I would create this, my current code:
I put in a random location, but I want it so it returns them to there last location. Thanks for the help.
pawn Код:
public OnPlayerDeath(playerid)
{
if(PartyStarted == true)
SetPlayerPos(playerid, -2666.7739,637.4879,14);
SendClientMessage(playerid, COLOR_RED, "You have died in the event!");
return 1;
}