Pickup pickupable with vehicle? - 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 pickupable with vehicle? (
/showthread.php?tid=370180)
Pickup pickupable with vehicle? -
ValentinLaw - 19.08.2012
So I have this command:
nos = CreatePickup(1018, 14, 4596.5996,-3723.7300,12.0558, -1);
Quote:
14 = Pickupable, but only when in a vehicle.
|
But when I use this on a custom made map it falls [B}THROUGH[/b] the map :/
I want it to be always there pickupable by everyone INSIDE a vehicle, and the pickup doesn't respawn.
Any help
?
Re: Pickup pickupable with vehicle? -
avivelkayam - 19.08.2012
Hello!
if i understand you, you want the pickup dont respawn after you take him
you can do it in OnPlayerPickupPickup
and if you want that the pickup can puckable only in vehicle you can use
IsPlayerInAnyVehicle
example:
Код:
nos = CreatePickup(1018, 1, 4596.5996,-3723.7300,12.0558, -1);
OnPlayerPickupPickup(playerid, pickupid)
{
if(pickupid == nos && IsPlayerInAnyVehicle(playerid))
{
// Whats the pickup do
}
}
Re: Pickup pickupable with vehicle? -
ValentinLaw - 19.08.2012
Hello,
I tested the code you stated yet it didn't work...
Any other possibilities?