Spawn Location
#2

enum playerdata
{
pRegistered,
pPos[3]
}

OnPlayerSpawn(playerid)
{
if(PlayerData[playerid][pRegistered] = 0)
{
SetPlayerPos(playerid, x, y, z); // pick these
}
if(PlayerData[playerid][pRegistered] = 1)
{
SetPlayerPos(playerid, PlayerData[playerid][pPos][0], PlayerData[playerid][pPos][1], PlayerData[playerid][pPos][2]);
}
return 1;
}

Under OnPlayerDisconnect add
GetPlayerPos(playerid, PlayerData[playerid][pPos][0], PlayerData[playerid][pPos][1], PlayerData[playerid][pPos][2]);
Reply


Messages In This Thread
Spawn Location - by Arxalan - 10.01.2015, 05:07
Re: Spawn Location - by Divergent - 10.01.2015, 05:14
Re: Spawn Location - by Arxalan - 10.01.2015, 05:52
Re: Spawn Location - by Glossy42O - 10.01.2015, 06:07
Re: Spawn Location - by Divergent - 10.01.2015, 06:11
Re: Spawn Location - by Arxalan - 10.01.2015, 06:17

Forum Jump:


Users browsing this thread: 1 Guest(s)