SPAwn pLaCe
#5

Yeah

Quote:

new FloatLast[MAX_PLAYERS][3],pLastInt[playerid];

Under OnPlayerDeath put this
Quote:

GetPlayerPos(playerid, pLast[playerid][0], pLast[playerid][1], pLast[playerid][2]);
pLastInt[playerid] = GetPlayerInterior(playerid);

At the end of OnPlayerSpawn put:
Quote:

if(pLast[playerid][0] != 0.0)
{
SetPlayerInterior(playerid, pLastInt[playerid]);
SetPlayerPos(playerid, pLast[playerid] [0], pLast[playerid][1], pLast[playerid][2]);
}

And under OnPlayerConnect
Quote:

for(new i=0;i < 3;i++)
plast[playerid][i] = 0.0;
pLastInt[playerid] = 0;

There might be some typing issues I wrote the code on my phone.
Reply


Messages In This Thread
SPAwn pLaCe - by sayaunta - 23.09.2015, 04:01
Re: SPAwn pLaCe - by Aly - 23.09.2015, 04:32
Re: SPAwn pLaCe - by sayaunta - 23.09.2015, 05:07
Re: SPAwn pLaCe - by sayaunta - 23.09.2015, 05:11
Re: SPAwn pLaCe - by Aly - 23.09.2015, 06:06
Re: SPAwn pLaCe - by sayaunta - 23.09.2015, 06:17

Forum Jump:


Users browsing this thread: 1 Guest(s)