19.03.2015, 13:24
Well, i guess you made an thinking mistake, look:
To this coords the player gets ported when he spawns, but these coords are 0.0
So the player spawns at the farm (this coords are 0,0,0)
Actually you could do sth like:
Greekz
Код:
PlayerInfo[playerid][POS_X],PlayerInfo[playerid][POS_Y],PlayerInfo[playerid][POS_Z]
So the player spawns at the farm (this coords are 0,0,0)
Actually you could do sth like:
Код:
if(PlayerInfo[playerid][POS_X] == 0.0)
{
SetPlayerPos(playerid,1529.6,-1691.2,13.3); //Now he would be at the LSPD, instead of the farm
SetPlayerInterior(playerid, 0);
}
else
{
SetPlayerPos(playerid, PlayerInfo[playerid][POS_X], PlayerInfo[playerid][POS_Y], PlayerInfo[playerid][POS_Z]);
}

