Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SCRIPT "WeaponAmmoHalf" (void)
- {
- int blink = 0;
- Delay(45*35);
- for(int i = 0; i < 6; i++)
- {
- ActivatorSound("items/runout",69);
- if(blink == 0){
- TakeInventory("weapon_ammopowerup",999);
- blink = 1;
- }
- else{
- GiveInventory("weapon_ammopowerup",1);
- blink = 0;
- }
- Delay(1*35);
- }
- TakeInventory("weapon_ammopowerup",999);
- Terminate;
- }
- int save_counter = 0;
- SCRIPT "SpareAmmo" (void)
- {
- if(CheckInventory("weapon_ammopowerup") > 0){
- if(save_counter == 0){
- save_counter = 1;
- SetResultValue(1);
- }
- else{
- save_counter = 0;
- SetResultValue(0);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement