pickup prob
#1

hum if a player is in a car the pickup wont do nothing to him
but if he isnt it teles any way to make if he is in a car it teleports?
i think its impossible to do so, but if there is a way can anyone tell me?
pawn Код:
if(pickupid == looppickup)
    {
    if(IsPlayerInAnyVehicle(playerid))
    {
        SetVehiclePos(GetVehicleModel(playerid),2206.0432,-2413.4558,182.6460);
    }
    else
    {
    SetPlayerPos(playerid,2206.0432,-2413.4558,182.6460);
    }
    }
Reply
#2

https://sampwiki.blast.hk/wiki/Pickup_help

In second CreatePickup's param, use 14.
Reply
#3

ok i done soobut when he picks up with a car
it dosnt do nothing
pawn Код:
looppickup = CreatePickup(1239, 14, 2195.9304,-2412.4470,192.3213);
pawn Код:
if(pickupid == looppickup)
    {
    SetVehiclePos(playerid,2206.0432,-2413.4558,182.6460);
    }
Reply
#4

pawn Код:
if(pickupid == looppickup)
    {
    SetVehiclePos(playerid,2206.0432,-2413.4558,182.6460);
    }
No!

pawn Код:
if(pickupid == looppickup)
{
    SetVehiclePos(GetPlayerVehicleID(playerid), 2206.0432, -2413.4558, 182.6460);
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)