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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: pickup problem (
/showthread.php?tid=256820)
pickup problem -
CrazyBlob - 22.05.2011
im using incognitos streamer and when i go into the pickup in a vehicle it doesnt do anything??
heres my pickup code
Код:
public OnPlayerPickUpDynamicPickup(playerid, pickupid)
{
if(pickupid == pick1)
{
if(IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid,COLOR_YELLOW,"Ur In A Vehicle!");
}
else
{
SendClientMessage(playerid,COLOR_ORANGE,"{F3FF02}We Only {00FFEE}Service {F3FF02}Vehicles Here");
}
}
return 1;
}
please help
Re: pickup problem -
Jay. - 22.05.2011
Show the CreatePick up thing, would help
https://sampwiki.blast.hk/wiki/PickupTypes
Try 14, in a vehicle
Re: pickup problem -
Infamous - 22.05.2011
It sounds like the wrong pickup ID is being used. As mentioned above try using ID 14 for pickups that are ment to be initiated by a player inside a vehicle.
Re: pickup problem -
CrazyBlob - 22.05.2011
Quote:
Originally Posted by Funtime
|
thanks but the problem is it disappers afterwards i want it so you can enter it but it doesnt disappear on foot & in a vehicle
and the code is
Код:
pick1 = CreateDynamicPickup(1239, 23, 637.6107,1687.3420,6.9922, -1, -1, -1, 100.0);
Re: pickup problem -
Kyle - 22.05.2011
Make it so it destroys the pickup then recreate it.
Re: pickup problem -
CrazyBlob - 22.05.2011
Quote:
Originally Posted by KyleSmith
Make it so it destroys the pickup then recreate it.
|
i did that and it just is slow @ recreating etc so il just use a checkpoint ty nyway guys
Re: pickup problem -
Infamous - 22.05.2011
You could also add a zone under the pickup to detect vehicles, the pickup won't disapear and can still be used to check the onfoot actions.
Checkpoints just don't look very nice IMO.
Re: pickup problem -
CrazyBlob - 22.05.2011
Quote:
Originally Posted by Infamous
You could also add a zone under the pickup to detect vehicles, the pickup won't disapear and can still be used to check the onfoot actions.
Checkpoints just don't look very nice IMO.
|
dont worry ive used Checkpoints tbh i prefer them

ty nyway