Always spawn falling.
#5

Set the player's position in OnPlayerSpawn and if the player registers, let him spawn somewhere else:
pawn Код:
// OnPlayerConnect:
pInfo[playerid][Posx] = 0.0;
pInfo[playerid][Posy] = 0.0;
pInfo[playerid][Posz] = 0.0;
// NOTE: reset the rest of the data too

// OnPlayerSpawn:
if (!pInfo[playerid][Posx] && !pInfo[playerid][Posy] && !pInfo[playerid][Posz])
{
    SetPlayerPos(playerid, x, y, z); // Edit this line so if the player registers, they'll spawn to a public place
}
else SetPlayerPos(playerid, pInfo[playerid][Posx], pInfo[playerid][Posy], pInfo[playerid][Posz]);
// else to their saved position
Reply


Messages In This Thread
Always spawn falling. - by Kratory - 12.05.2014, 15:52
Re: Always spawn falling. - by DiGiTaL_AnGeL - 12.05.2014, 17:01
Re: Always spawn falling. - by Konstantinos - 12.05.2014, 17:05
Re: Always spawn falling. - by Kratory - 13.05.2014, 13:15
Re: Always spawn falling. - by Konstantinos - 13.05.2014, 13:29
Re: Always spawn falling. - by Kratory - 13.05.2014, 13:44
Re: Always spawn falling. - by Konstantinos - 13.05.2014, 13:52
Re: Always spawn falling. - by Kratory - 13.05.2014, 14:13
Re: Always spawn falling. - by Konstantinos - 13.05.2014, 14:14
Re: Always spawn falling. - by Kratory - 13.05.2014, 14:16

Forum Jump:


Users browsing this thread: 2 Guest(s)