setplayerpos
#1

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
Reply
#2

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
Reply
#3

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)