pickup problem
#1

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
Reply
#2

Show the CreatePick up thing, would help

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

Try 14, in a vehicle
Reply
#3

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.
Reply
#4

Quote:
Originally Posted by Funtime
Посмотреть сообщение
Show the CreatePick up thing, would help

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

Try 14, in a vehicle

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

Код:
new pick1;
Код:
pick1 = CreateDynamicPickup(1239, 23, 637.6107,1687.3420,6.9922, -1, -1, -1, 100.0);
Reply
#5

Make it so it destroys the pickup then recreate it.
Reply
#6

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
Reply
#7

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.
Reply
#8

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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)