Thread: [SOLVED]Ammobox

Results 1 to 5 of 5
  1. #1
    alistair4322's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    229
    Reputation
    14
    Thanks
    31
    My Mood
    Goofy

    [SOLVED]Ammobox

    Can anyone make a ammo box?
    Like the weapon box in Nemesis...But u get ammo
    I tried this for a thousand time but still not working.../

    Here's the non-working code...Can't see any text and any ammo resupply
    Code:
    CreateAbox(pos, angle)
    {
    	box = spawn("script_model", pos );
    	box setModel("com_bomb_objective");
    	box.angles = angle;
    	box Solid();
    	for(;;)
    	{		
    		foreach(player in level.players)
    		{
    			if(Distance(box.origin, player.origin) <= 50)
    			{
    				player setLowerMessage("CPHint","Press ^3[{+activate}]^7 to refill ammo!");
    				if(player UseButtonPressed())
    				{
    					maps\mp\killstreaks\_airdrop::refillAmmo();
    					player playLocalSound( "ammo_crate_use" );
    				}
    			}
                            else
                            {
                                player clearLowerMessage("CPHint",1);
                            }
    		}
    	}
    	wait 0.01;
    }

  2. #2
    spiritwo's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Colorado
    Posts
    709
    Reputation
    17
    Thanks
    76
    My Mood
    Happy
    Haven't you already posted this at least once before...?? >_>
    --
    "Life is tough. It's tougher if you're stupid."

    Spiritwo |






  3. #3
    alistair4322's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    229
    Reputation
    14
    Thanks
    31
    My Mood
    Goofy
    Quote Originally Posted by spiritwo View Post
    Haven't you already posted this at least once before...?? >_>
    YaYaYa...Someone marked that solved...
    But it isn't...none of master's code is working...

  4. #4
    zxz0O0's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    209
    Reputation
    10
    Thanks
    136
    My Mood
    Aggressive
    [php]player maps\mp\killstreaks\_airdrop::refillAmmo();[/php]
    and
    [php]self setLowerMessage("CPHint", "Press ^3[{+activate}]^7 to refill ammo!", undefined, undefined);[/php]
    Both worked for me.
    [YOUTUBE]Ja7-WnJcMcs[/YOUTUBE]

  5. #5
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,923
    Reputation
    161
    Thanks
    3,096
    /marked as solved



Similar Threads

  1. [Solved] Injector problem solved
    By NinjaKantana in forum CrossFire Help
    Replies: 1
    Last Post: 07-12-2011, 02:40 PM
  2. [Solved] my topic got closed but not solved!
    By Panda-kun in forum Call of Duty Black Ops Help
    Replies: 5
    Last Post: 06-15-2011, 06:28 PM
  3. [Solved] CAFlames and other hacks won't work... Solved
    By Hikatso in forum Combat Arms Help
    Replies: 17
    Last Post: 04-28-2011, 11:41 PM
  4. Problem Solved...
    By Dave84311 in forum News & Announcements
    Replies: 0
    Last Post: 04-02-2007, 04:22 PM
  5. this is how i solve stuff with my teachers
    By EleMentX in forum Spammers Corner
    Replies: 3
    Last Post: 12-09-2006, 05:20 PM