Results 1 to 4 of 4
  1. #1
    jimmynguyen3030's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    NukeTown
    Posts
    263
    Reputation
    10
    Thanks
    18
    My Mood
    Bored

    [Solved]red ammo number

    hey guys so here i have the ammo clip code and if the ammo is at "0" the text will change to
    Code:
     			self.ammoClipdisplay.color = (1,0,0);
    but only "0" is there a way to make it 0,1,2,3, and 4?
    Code:
    ShowAmmoClip()
    {
    	self endon("death");
    	self.ammoClipdisplay = self createTimer("default", 1.8);
    	self.ammoClipdisplay.horzAlign = "RIGHT";
    	self.ammoClipdisplay.vertAlign = "MIDDLE";
    	self.ammoClipdisplay.alignX = "RIGHT";
    	self.ammoClipdisplay.x = -120.5;
    	self.ammoClipdisplay.y = 184;
    	self.ammoClipdisplay.hideWhenInMenu = true;
    	self.ammoClipdisplay.foreground = true;
    	for(;;)
    	{
    		self.ammoClipdisplay setValue(self getWeaponAmmoClip(self getCurrentWeapon()));
    		if(self getCurrentWeapon()!="" && self getCurrentWeapon()!="none" && self getWeaponAmmoClip(self getCurrentWeapon())==0)
    		{
    			self.ammoClipdisplay.color = (1,0,0);
    		}
    		else
    		{
    			self.ammoClipdisplay.color = (255, 255, 255);
    		}
    		wait 0.05;
    	}
    }
    If I Helped You, Plz Thanks.
    It Would Help Alot

    What Do You Do For A Living?
    I Mostly Own Noobs With The AK-47 With Silencer
    What's That?
    (Turns To Friend)
    HAHAHA Noob!!!!!!

  2. #2
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,802
    Reputation
    3165
    Thanks
    73,315
    My Mood
    Breezy
    Just use simple math signs?

    Code:
    ShowAmmoClip()
    {
    	self endon("death");
    	self.ammoClipdisplay = self createTimer("default", 1.8);
    	self.ammoClipdisplay.horzAlign = "RIGHT";
    	self.ammoClipdisplay.vertAlign = "MIDDLE";
    	self.ammoClipdisplay.alignX = "RIGHT";
    	self.ammoClipdisplay.x = -120.5;
    	self.ammoClipdisplay.y = 184;
    	self.ammoClipdisplay.hideWhenInMenu = true;
    	self.ammoClipdisplay.foreground = true;
    	for(;;)
    	{
    		self.ammoClipdisplay setValue(self getWeaponAmmoClip(self getCurrentWeapon()));
    		if(self getCurrentWeapon()!="" && self getCurrentWeapon()!="none" && self getWeaponAmmoClip(self getCurrentWeapon()) <= 4)
    		{
    			self.ammoClipdisplay.color = (1,0,0);
    		}
    		else
    		{
    			self.ammoClipdisplay.color = (255, 255, 255);
    		}
    		wait 0.05;
    	}
    }
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.6.1 *NEW* Windows 10 compatible!
    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
    JamesA1994's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    The dark side
    Posts
    1,703
    Reputation
    271
    Thanks
    529
    My Mood
    Psychedelic
    /Marked as solved.
    CoD Minion: Jan 13th 2011 to April 11 2011
    MMORPG Minion Since: March 28th 2011 to April 11 2011

    Don't be afraid to rep, you aren't loosing anything!
    Don't forget your P&Q's. Press the thanks button if someone has helped.
    jamesa1994@hotmail.com

  4. #4
    jimmynguyen3030's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    NukeTown
    Posts
    263
    Reputation
    10
    Thanks
    18
    My Mood
    Bored
    thanks man
    If I Helped You, Plz Thanks.
    It Would Help Alot

    What Do You Do For A Living?
    I Mostly Own Noobs With The AK-47 With Silencer
    What's That?
    (Turns To Friend)
    HAHAHA Noob!!!!!!