Little problem again
#10

Well, i guess you made an thinking mistake, look:

Код:
PlayerInfo[playerid][POS_X],PlayerInfo[playerid][POS_Y],PlayerInfo[playerid][POS_Z]
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:

Код:
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]);
}
Greekz
Reply


Messages In This Thread
Little problem again - by Mya - 19.03.2015, 07:21
Re: [HELP]Little problem again :D - by CalvinC - 19.03.2015, 07:22
Re: [HELP]Little problem again :D - by Mya - 19.03.2015, 07:24
Re: [HELP]Little problem again :D - by lwilson - 19.03.2015, 07:43
Re: [HELP]Little problem again :D - by Mya - 19.03.2015, 07:46
AW: [HELP]Little problem again :D - by Kaliber - 19.03.2015, 07:57
Re: AW: [HELP]Little problem again :D - by Mya - 19.03.2015, 13:05
AW: Re: AW: [HELP]Little problem again :D - by Kaliber - 19.03.2015, 13:07
Re: AW: Re: AW: [HELP]Little problem again :D - by Mya - 19.03.2015, 13:09
AW: [HELP]Little problem again :D - by Kaliber - 19.03.2015, 13:24

Forum Jump:


Users browsing this thread: 1 Guest(s)