respawn at the place you died [HELP]
#6

Ontop of your gamemodeinit write this:

Код:
new Float:PosX[MAX_PLAYERS];
new Float:PosY[MAX_PLAYERS];
new Float:PosZ[MAX_PLAYERS];
new csaved[MAX_PLAYERS];
Onplayerdeath callback type this:
Код:
GetPlayerPos(playerid,PosX[playerid],PosY[playerid],PosZ[playerid]);
csaved[playerid] = 1;
Onplayerspawn:
Код:
if(csaved[playerid] == 1)
{
csaved[playerid] == 0;
SetPlayerPos(playerid,PosX[playerid],PosY[playerid],PosZ[playerid]);
}
EDIT: I might be doing this wrong, let me know after you test it.
Reply


Messages In This Thread
respawn at the place you died [HELP] - by ClavoC - 19.07.2012, 11:02
Re: respawn at the place you died [HELP] - by Andregood - 19.07.2012, 11:06
Re: respawn at the place you died [HELP] - by ClavoC - 19.07.2012, 11:07
Re: respawn at the place you died [HELP] - by Andregood - 19.07.2012, 11:10
Re: respawn at the place you died [HELP] - by ClavoC - 19.07.2012, 11:11
Re: respawn at the place you died [HELP] - by EV007 - 19.07.2012, 11:12
Re: respawn at the place you died [HELP] - by ClavoC - 19.07.2012, 11:18
Re: respawn at the place you died [HELP] - by EV007 - 19.07.2012, 11:20
Re: respawn at the place you died [HELP] - by ClavoC - 19.07.2012, 11:24
Re: respawn at the place you died [HELP] - by EV007 - 19.07.2012, 11:29

Forum Jump:


Users browsing this thread: 1 Guest(s)