Player spawns where he died script help?
#1

I'm not putting this in the request topic because I don't want someone to make me the whole script. If anyone knows of a script like this someone already made I couldn't find one so if you could link to it that would be nice. If not, could you please tell me how I might go about this? I don't really know where to start with it. I'm a pretty good scripter so if someone could just give me a few pointers I could probably do it. Thanks for any help you can give!
Reply
#2

At the top of your script.
new FloateathPosition[MAX_PLAYERS][3];

Under OnPlayerDeath
GetPlayerPos(playerid,DeathPosition[playerid][0],DeathPosition[playerid][1],DeathPosition[playerid][2]);

Under OnPlayerSpawn
if(DeathPosition[playerid][0] != 0)SetPlayerPos(playerid,DeathPosition[playerid][0],DeathPosition[playerid][1],DeathPosition[playerid][2]);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)