Teleport-Car wont come
#7

Quote:
Originally Posted by MP2
Посмотреть сообщение
https://sampwiki.blast.hk/wiki/GetPlayerState
https://sampwiki.blast.hk/wiki/GetPlayerVehicleID
https://sampwiki.blast.hk/wiki/SetVehiclePos

[XST]O_x, your example isn't great. Here's a better solution:

pawn Код:
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) SetPlayerPos(playerid, x, y, z);
else SetVehiclePos(GetPlayerVehicleID(playerid), x, y, z);
My example isn't great indeed, but your example will send the player to X Y Z if he's a driver, else, it will send the vehicle to X Y Z.
Reply


Messages In This Thread
Teleport-Car wont come - by RubM - 26.01.2012, 16:27
Re: Teleport-Car wont come - by T0pAz - 26.01.2012, 16:30
Re: Teleport-Car wont come - by RubM - 26.01.2012, 16:32
Re: Teleport-Car wont come - by [XST]O_x - 26.01.2012, 16:35
Re: Teleport-Car wont come - by MP2 - 26.01.2012, 16:35
Re: Teleport-Car wont come - by RubM - 26.01.2012, 16:37
Re: Teleport-Car wont come - by [XST]O_x - 26.01.2012, 16:39
Re: Teleport-Car wont come - by Twix[KDZ] - 26.01.2012, 16:39
Re: Teleport-Car wont come - by MP2 - 26.01.2012, 16:42
Re: Teleport-Car wont come - by [XST]O_x - 26.01.2012, 16:45

Forum Jump:


Users browsing this thread: 1 Guest(s)