31.10.2016, 11:43
Nvm.
OnPlayerEnterExistPickup(playerid, [ur pickupid number]);
OnPlayerEnterExistPickup(playerid, 1);
// When I create my house pickups:
HousePickups[index][PickupID] = CreatePickup(...
OnPlayerPickUpPickup(playerid, pickupid) {
for(new i = 0; i < sizeof(HousePickups); i++) {
if(pickupid == HousePickups[i][PickupID]) {
CallLocalFunction("OnPlayerEnterHousePickup", "iii", playerid, i, pickupid);
break;
}
}
return 1;
}
forward OnPlayerEnterHousePickup(playerid, index, pickupid);
public OnPlayerEnterHousePickup(playerid, index, pickupid) return 1;
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 код:
|