SA-MP Forums Archive
pickup prob - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: pickup prob (/showthread.php?tid=189389)



pickup prob - dark_clown - 11.11.2010

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);
    }
    }



Re: pickup prob - rs.pect - 11.11.2010

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

In second CreatePickup's param, use 14.


Re: pickup prob - dark_clown - 11.11.2010

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);
    }



Re: pickup prob - rs.pect - 11.11.2010

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);
}