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