How can i make a custom pickupcallback?
#5

Quote:
Originally Posted by Threshold
Посмотреть сообщение
It really depends on what you mean by functionality. If you mean houses, teleports etc. then it's pretty easy to accomplish what you want. For example, if I had house pickups and I used an array called 'HousePickups':

PHP код:
// When I create my house pickups:
HousePickups[index][PickupID] = CreatePickup(...
OnPlayerPickUpPickup(playeridpickupid) {
    for(new 
0sizeof(HousePickups); i++) {
        if(
pickupid == HousePickups[i][PickupID]) {
            
CallLocalFunction("OnPlayerEnterHousePickup""iii"playeridipickupid);
            break;
        }
    }
    return 
1;
}
forward OnPlayerEnterHousePickup(playeridindexpickupid);
public 
OnPlayerEnterHousePickup(playeridindexpickupid) return 1
Again, this is a short example written on a phone, but are you referring to something like this example?
Hmm I guess yes Thanks Threshold!
Reply


Messages In This Thread
How can i make a custom pickupcallback? - by vassilis - 31.10.2016, 11:43
Re: How can i make a custom pickupcallback? - by StrikerZ - 31.10.2016, 11:48
Re: How can i make a custom pickupcallback? - by vassilis - 31.10.2016, 11:58
Re: How can i make a custom pickupcallback? - by Threshold - 31.10.2016, 12:06
Re: How can i make a custom pickupcallback? - by vassilis - 31.10.2016, 12:11
Re: How can i make a custom pickupcallback? - by vassilis - 31.10.2016, 12:45

Forum Jump:


Users browsing this thread: 1 Guest(s)