23.09.2015, 06:06
Yeah
Under OnPlayerDeath put this
At the end of OnPlayerSpawn put:
And under OnPlayerConnect
There might be some typing issues I wrote the code on my phone.
Quote:
new Float ![]() |
Quote:
GetPlayerPos(playerid, pLast[playerid][0], pLast[playerid][1], pLast[playerid][2]); pLastInt[playerid] = GetPlayerInterior(playerid); |
Quote:
if(pLast[playerid][0] != 0.0) { SetPlayerInterior(playerid, pLastInt[playerid]); SetPlayerPos(playerid, pLast[playerid] [0], pLast[playerid][1], pLast[playerid][2]); } |
Quote:
for(new i=0;i < 3;i++) plast[playerid][i] = 0.0; pLastInt[playerid] = 0; |