Pickup types
#1

Should I use pickup type 1 for toll system? It triggers if picked in a vehicle?
Reply
#2

Read about wiki samp PickupTypes..
Reply
#3

Quote:
Originally Posted by Amunra
Посмотреть сообщение
I don't find a good one to work.. the one that trigger in a vehicle won't trigger the onplayerpickuppickup..
Reply
#4

PHP код:
public OnPlayerPickUpPickup(playeridpickupid)
{
    if(
pickupid == //Your Pickup id)
    
{
        if(
IsPlayerInAnyVehicle(playerid))
        {
            
//your code here
        
}
    }
    return 
1;

Just try,
Correct me if i wrong!
Reply
#5

@up
it won't work, because:
1. Every pickupid besides 13 can't be picked when player is in the vehicle
2. If pickupid is 13, player can pick it up in a vehicle, but code won't be executed
I guess you should use dynamic checkpoints.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)