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

    [Solved]Problem with ammo box...

    I can see the text but I pressed F and nothing happen...
    What's wrong with my code?
    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();
    					self playLocalSound( "ammo_crate_use" );
    				}
    			}
                            else
                            {
                                player clearLowerMessage("CPHint",1);
                            }
    		}
    	}
    	wait 0.01;
    }
    Last edited by Blubb1337; 10-08-2010 at 06:08 AM.

  2. #2
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,858
    Reputation
    3438
    Thanks
    101,668
    My Mood
    Breezy
    Code:
    self playLocalSound( "ammo_crate_use" );
    Should be player not self.
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.7.3
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

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



  4. #4
    einar300's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    466
    Reputation
    10
    Thanks
    62
    OMG master.... Your fixing everything!!!

Similar Threads

  1. [SOLVED] Problem with hacks
    By roky12 in forum CrossFire Help
    Replies: 3
    Last Post: 08-20-2010, 08:22 AM
  2. [SOLVED]Problem with aIW
    By Pein-sama in forum Call of Duty Modern Warfare 2 Help
    Replies: 5
    Last Post: 08-12-2010, 01:54 AM
  3. [SOLVED] Problem with online.
    By IdunWantUsername in forum Call of Duty Modern Warfare 2 Help
    Replies: 1
    Last Post: 07-11-2010, 10:14 PM
  4. [SOLVED] Problem with EAM/PSE
    By Demented420 in forum Call of Duty Modern Warfare 2 Help
    Replies: 5
    Last Post: 05-30-2010, 08:17 AM
  5. Solve Problems with Vista and hacks
    By knappy in forum Combat Arms Hacks & Cheats
    Replies: 5
    Last Post: 08-11-2008, 06:26 PM