[HELP] DestroyPickup(pickup);
#5

I dont get it...


Something wrong with this?
pawn Код:
forward DestroyPickups();
pawn Код:
//Health~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    if( pickupid == HealthPickup){
        if(IsPlayerAdmin(playerid)==1){
      SetPlayerHealth(playerid, 100);
      SetTimer("DestroyPickups", 5000, false); //Pickus should come back after 5 secounds
      PlayerPlaySound(playerid, 1150, 0.0, 0.0, 0.0);
      SendClientMessage(playerid,COLOR_ORANGERED,"You picked up Health!");
        }
        else return SendClientMessage(playerid,COLOR_RED,"This Health restore is just for ARMY!");
    }
pawn Код:
public DestroyPickups()
{
    DestroyPickup(HealthPickup);
    return 1;
}
Reply


Messages In This Thread
[HELP] DestroyPickup(pickup); - by Larsey123IsMe - 25.11.2010, 13:43
Re: [HELP] DestroyPickup(pickup); - by ColdXX - 25.11.2010, 13:46
Re: [HELP] DestroyPickup(pickup); - by Sconosciuto - 25.11.2010, 13:48
Re: [HELP] DestroyPickup(pickup); - by Larsey123IsMe - 25.11.2010, 13:50
Re: [HELP] DestroyPickup(pickup); - by Larsey123IsMe - 25.11.2010, 13:59
Re: [HELP] DestroyPickup(pickup); - by Larsey123IsMe - 25.11.2010, 16:05
Re: [HELP] DestroyPickup(pickup); - by Jeffry - 25.11.2010, 16:12
Re: [HELP] DestroyPickup(pickup); - by Larsey123IsMe - 25.11.2010, 16:33
Re: [HELP] DestroyPickup(pickup); - by Jeffry - 25.11.2010, 16:40
Re: [HELP] DestroyPickup(pickup); - by Jeffry - 25.11.2010, 16:45
Re: [HELP] DestroyPickup(pickup); - by Sconosciuto - 26.11.2010, 11:27

Forum Jump:


Users browsing this thread: 1 Guest(s)