setplayerpos - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: setplayerpos (
/showthread.php?tid=548546)
setplayerpos -
Airblog - 30.11.2014
Hi all
i want to create a biz spray
and i use SetPlayerPos
But my vehicle doesn't teleport in spray and just teleport myself
Plz Help
Re: setplayerpos -
AnthonyTimmers - 30.11.2014
Try this.
Код:
if(IsPlayerInAnyVehicle(playerid))
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
SetVehiclePos(GetPlayerVehicleID(playerid), X, Y, Z);
}
else
{
SendClientMessage(playerid, COLOR_RED, "ERROR: You need to be the driver!");
}
}
else
{
SetPlayerPos(playerid, X, Y, Z);
}
+Rep if it helped you
Re: setplayerpos -
Airblog - 30.11.2014
Quote:
Originally Posted by AnthonyTimmers
Try this.
Код:
if(IsPlayerInAnyVehicle(playerid))
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
SetVehiclePos(GetPlayerVehicleID(playerid), X, Y, Z);
}
else
{
SendClientMessage(playerid, COLOR_RED, "ERROR: You need to be the driver!");
}
}
else
{
SetPlayerPos(playerid, X, Y, Z);
}
+Rep if it helped you 
|
Tnx For Help its working +rep