25.11.2010, 13:59
(
Последний раз редактировалось Larsey123IsMe; 25.11.2010 в 15:53.
)
I dont get it...
Something wrong with this?
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;
}