Author Topic: is this possible :/  (Read 2058 times)

0 Members and 1 Guest are viewing this topic.

Offline StoneHeart901

  • Street Thug
  • *
  • Posts: 1
    • View Profile
is this possible :/
« on: December 16, 2012, 04:44:57 pm »
hi I am Stone_Heart I want some help  :-\ that is this possible to
[pawn]public OnPickedUp(pickupid, playerid)
{
    if (GetPickupModelID(pickupid) == 407 || GetPickupModelID(pickupid) == 406) InfoProp(playerid,pickupid);
   return 1;
}[/pawn]
add more function this script is madara Warchief v1.0

Offline · KaTaNNa ·

  • Street Thug
  • *
  • Posts: 12
  • It's easy to talk about difficult mi.Lo is be me .
    • View Profile
Re: is this possible :/
« Reply #1 on: December 25, 2012, 05:28:42 pm »
If you want to add more functions in different pickups should use "pickupid" :

[pawn]public OnPickedUp(pickupid, playerid)
{
    if (pickupid == 13) {  //13 is the "id" of the pickup you should add where are the others ...
    //function
    }
    if (GetPickupModelID(pickupid) == 407 || GetPickupModelID(pickupid) == 406) InfoProp(playerid,pickupid);
   return 1;
}[/pawn]
If you think you do dificil.No back ... go ahead and face it! ;D