OnPlayerPickUpPickup
#9

PHP код:
public OnPlayerPickUpPickupplayeridpickupid ) {
  for ( new 
i=0i<MAX_COOKIESi++ ) {
    if ( 
pickupid == cookiePickups]) {
      
PlayerInfo[playerid][pCookie] += 1;
      
SendClientMessage(playeridCOLOR_LIGHTRED"* You picked up 1 cookie.");

      
// Add this vvv
      
DestroyPickuppickupid );
      
cookiePickups] = -1;

      return 
1;
    }
  }
  
SendClientMessage(playeridCOLOR_ERROR"* That was not a cookie...");
  return 
1;

Reply


Messages In This Thread
OnPlayerPickUpPickup - by Mikkel_RE - 01.11.2015, 12:34
Re: OnPlayerPickUpPickup - by prineside - 01.11.2015, 13:07
Re: OnPlayerPickUpPickup - by Mikkel_RE - 01.11.2015, 13:13
Re: OnPlayerPickUpPickup - by JaKe Elite - 01.11.2015, 13:15
Re: OnPlayerPickUpPickup - by Mikkel_RE - 01.11.2015, 13:18
Re: OnPlayerPickUpPickup - by prineside - 01.11.2015, 13:25
Re: OnPlayerPickUpPickup - by Mikkel_RE - 01.11.2015, 14:03
Re: OnPlayerPickUpPickup - by Mikkel_RE - 01.11.2015, 14:18
Re: OnPlayerPickUpPickup - by prineside - 01.11.2015, 14:23

Forum Jump:


Users browsing this thread: 1 Guest(s)