pickup help - 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: pickup help (
/showthread.php?tid=293595)
pickup help -
boyan96 - 29.10.2011
how i can make when player go to pickup and he is with car to teleport the player with the car
Re: pickup help -
TomTroX - 29.10.2011
You must use the type of pickup 14.
Re: pickup help -
SmiT - 29.10.2011
pawn Код:
new _pickup;
public OnGameModeInit()
{
_pickup = CreatePickup( ... );
return true;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == _pickup)
{
SetVehiclePos( ... );
}
return true;
}
https://sampwiki.blast.hk/wiki/CreatePickup
https://sampwiki.blast.hk/wiki/SetVehiclePos
Re: pickup help -
boyan96 - 29.10.2011
Код HTML:
if(pickupid == pickup24)
{
if(IsPlayerInAnyVehicle(playerid))
SetVehiclePos(1, 2075.2351,804.5931,10.5433);
return true;
}
i make this but doesn't work any ideas
Re: pickup help -
TomTroX - 29.10.2011
pawn Код:
#include <a_samp>
new pickup;
public OnGameModeInit()
{
pickup = CreatePickup(pickupmodel, 14, 0.0, 0.0, 0.0);
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == pickup)
{
if(IsPlayerInAnyVehicle(playerid))
SetVehiclePos(GetPlayerVehicleID(playerid), 2075.2351,804.5931,10.5433);
}
return 1;
}
Here you are.
Re: pickup help -
boyan96 - 29.10.2011
doesn't work