PickUp Problem - 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 Problem (
/showthread.php?tid=366992)
PickUp Problem -
CROSS_Hunter - 08.08.2012
i created a pickup but when i stand in it nothing happens from what i have written shall happen
pawn Код:
//under OnGameModeInit
pbdm = AddStaticPickup(1313,1,-1881.514892, 823.235290, 35.176628, 0);
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == pbdm)
{
SetPlayerPos(playerid,58.0719,1551.2244,12.7500);
return 1;
}
return 1;
}
please help
Re: PickUp Problem -
Cjgogo - 08.08.2012
Use CreatePickUp not AddStaticPickUp
Re: PickUp Problem -
CROSS_Hunter - 08.08.2012
Quote:
Originally Posted by Cjgogo
Use CreatePickUp not AddStaticPickUp
|
i will see
Respuesta: PickUp Problem -
[DOG]irinel1996 - 08.08.2012
Change to:
pawn Код:
CreatePickup(1313,2,-1881.514892, 823.235290, 35.176628, 0);
Also, pickup spawn type 1 isn't pickupable.
Take a look:
https://sampwiki.blast.hk/wiki/PickupTypes
Best regards!