Larsey123IsMe
Unregistered
Quote:
Originally Posted by Jeffry
Will you want the pickup to be created after 15 mins again, so you have to use:
pawn Код:
//Health~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ if( pickupid == HealthPickup) { if(IsPlayerAdmin(playerid)==1) { SetPlayerHealth(playerid, 100); DestroyPickup(HealthPickup); //The pickup (Health) should show after 15 min SetTimer("AddPickupAgain", 90000, false); 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!"); }
and:
pawn Код:
forward AddPickupAgain(); public AddPickupAgain() { //HealthPickup=CreatePickup ... return 1; }
I hope you got it now. 
|
<3 i got it <3
But the 90000 = Secounds? :S
pawn Код:
SetTimer("AddPickupAgain", 90000, false);