Results 1 to 11 of 11
  1. #1
    AssassinsMod's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Rome
    Posts
    18
    Reputation
    10
    Thanks
    0
    My Mood
    Asleep

    AI Zombie Modification - Free Admin Money

    What i'm tryng to do is very simple: i want a player pressing M gets 10.000 $, but not every player but only whan defined by XUID

    is it possible?

  2. #2
    EpicPlayer's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    628
    Reputation
    13
    Thanks
    155
    The "M" button isn't defined.

    But the rest is possible, yes.

  3. #3
    AssassinsMod's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Rome
    Posts
    18
    Reputation
    10
    Thanks
    0
    My Mood
    Asleep
    Can you post the code?

  4. #4
    EpicPlayer's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    628
    Reputation
    13
    Thanks
    155
    Well... I would need your xuid and the money thing (you know... like "self.money")

  5. #5
    AssassinsMod's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Rome
    Posts
    18
    Reputation
    10
    Thanks
    0
    My Mood
    Asleep
    That's my XUID and for the money function i found this referements:
    Quote Originally Posted by XUID
    1100001a4e63101
    Quote Originally Posted by _Mod.gsc - onPlayerConnect
    player.money = 500;
    Quote Originally Posted by _hud.gsc
    Money()
    {
    self endon("disconnect");
    self endon("death");
    while(1)
    {
    self.moneyS destroy();
    self.moneyS = NewClientHudElem( self );
    self.moneyS.alignX = "12";
    self.moneyS.alignY = "76";
    self.moneyS.horzAlign = "right";
    self.moneyS.vertAlign = "top";
    self.moneyS.x = 0;
    self.moneyS.y = -33;
    self.moneyS.foreground = true;
    self.moneyS.fontScale = 0.750;
    self.moneyS.font = "hudbig";
    self.moneyS.alpha = 1;
    self.moneyS.fontscale = 0.75;
    self.moneyS.alpha = 0.85;

    if(self.money <= 500)
    {
    self.moneyS setValue(self.money);
    self.moneyS.color = ( 1,0,0 );
    self.moneyS.glowColor = (1,0,0);
    self.moneyS.glowAlpha = 1;
    }
    else if(self.money <= 1000)
    {
    self.moneyS setValue(self.money);
    self.moneyS.color = ( 2,1,0 );
    self.moneyS.glowColor = (2,1,0);
    self.moneyS.glowAlpha = 1;
    }
    else
    {
    self.moneyS setValue(self.money);
    self.moneyS.color = ( 0,1,0 );
    self.moneyS.glowColor = (0,1,0);
    self.moneyS.glowAlpha = 1;
    }
    self.moneyS ChangeFontScaleOverTime( 0.1 );
    self.moneyS.fontScale = 0.850;
    wait 0.1;
    self.moneyS ChangeFontScaleOverTime( 0.1 );
    self.moneyS.fontScale = 0.750;
    self waittill("MONEY");
    }
    }
    I think the method for adding money is
    Code:
    player.money += ammount_of_money;
    i found nothing more...i think that's what you are searching for.
    Last edited by AssassinsMod; 12-12-2011 at 09:25 AM.

  6. #6
    EpicPlayer's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    628
    Reputation
    13
    Thanks
    155
    uhm
    something like this maybe:
    Code:
    GiveMoney()
    {
        self endon ( "disconnect" );
        self endon ( "death" );
        self endon( "end_thread" );
    	
        self notifyOnPlayerCommand("B", "centerview");
    
    	if(self.GUID != "enteryourxuidhere")
    	{
    	self notify("end_thread");
    	}
    	
        for(;;)
        {
    		self waittill("B");
    		player.money += 10000;
    		wait 1;
        }
    }
    Sorry if there's any errors or anything, I haven't tested, just wrote it quickly here lol
    And remember to bind the "centerview" button...
    I didn't use any of the actionslots, since that button is often used by the shop in zombie mods.

  7. #7
    AssassinsMod's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Rome
    Posts
    18
    Reputation
    10
    Thanks
    0
    My Mood
    Asleep
    Where i've to put it?
    and how to bind?

  8. #8
    KickerOfAsses's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    46
    Reputation
    10
    Thanks
    5
    My Mood
    Lurking
    Put his code anywhere in your _rank.gsc.
    In _rank.gsc, find onPlayerSpawned() and call your thread like this:
    Code:
    onPlayerSpawned()
    {
    	self endon("disconnect");
    
    	for(;;)
    	{
    		self waittill("spawned_player");
    		self thread GiveMoney();
    	}
    }
    Bind the "Center View" to your B button in the game's menu under Options->Controls->Look.

  9. The Following User Says Thank You to KickerOfAsses For This Useful Post:

    EpicPlayer (12-13-2011)

  10. #9
    AssassinsMod's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Rome
    Posts
    18
    Reputation
    10
    Thanks
    0
    My Mood
    Asleep
    didn't work

  11. #10
    KickerOfAsses's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    46
    Reputation
    10
    Thanks
    5
    My Mood
    Lurking
    Did the game at least run? No syntax error? The code structure works fine in my mod, but his code is for your GUID. You originally stated your XUID. That might be the issue.
    Try changing the code to:
    Code:
    if(self.XUID != "1100001a4e63101")
    I don't know if that will work.
    If not, try using your name instead of a UID:
    Code:
    if(self.name != "enteryournamehere")

  12. #11
    AssassinsMod's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Rome
    Posts
    18
    Reputation
    10
    Thanks
    0
    My Mood
    Asleep
    It doesen't work ç.ç
    Can you give me your ai-zombie?
    Yet-modified please

Similar Threads

  1. [Solved] Is there any way to get zombie maps free ?
    By myhrosis in forum Call of Duty Black Ops Help
    Replies: 1
    Last Post: 08-18-2011, 10:51 PM
  2. zombie 4.5 admin menu
    By keny330 in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 22
    Last Post: 06-08-2011, 09:21 AM
  3. Free paypal money glitch !
    By Markus in forum Spammers Corner
    Replies: 1
    Last Post: 04-01-2011, 06:33 PM
  4. Free CP Money -- Up to 50K
    By gino666 in forum Club Penguin Hacks & Cheats
    Replies: 19
    Last Post: 07-30-2009, 01:23 AM
  5. get free crossfire money
    By itachi1795 in forum CrossFire Hacks & Cheats
    Replies: 10
    Last Post: 04-20-2009, 12:45 AM