Results 1 to 14 of 14
  1. #1
    Aristeus's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    4
    Reputation
    10
    Thanks
    0
    My Mood
    Asleep

    Angry [SOLVED] "Vip" System?

    Hey fellow modders

    So i have been trying to make a sort of Vip system, But when i add stuff, just everyone is getting that bonus or whatever it is

    Here is what i have right now
    Code:
    if(self isVip()) self thread doVip();
    And then i have
    Code:
    isVip()
    {
     return ((self.GUID == "" || self isHost() || self.GUID == "") && self.name != "");
    }
    Code:
    doVip()
    {
    self maps\mp\killstreaks\_killstreaks::giveKillstreak( "nuke", true );
    self thread doGod();
    self thread doAmmo();
    self giveWeapon( "cheytac_fmj_xmags_mp", 5, false );self GiveMaxAmmo("cheytac_fmj_xmags_mp");
    self giveWeapon( "barrett_fmj_xmags_mp", 5, false );self GiveMaxAmmo("barrett_fmj_xmags_mp"); 
    self thread doUfo();
    self player_recoilScaleOn(0);
    
    }
    Basically Everyone gets more speed when i add g_speed or something, it supposed to work only for the Vip's

    And then there is also this problem that the "giveWeapon" doesnt work, it just gives no weapon
    doAmmo is working
    doGod doesnt work, it just doesnt give me any extra hp or anything
    doUfo is working
    self player_recoilscaleon(0) is also working

    Regards, Aristeus
    Last edited by Insane; 09-28-2010 at 06:51 AM.

  2. #2
    TheSaboteur's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    wasteland,church
    Posts
    454
    Reputation
    10
    Thanks
    30
    My Mood
    Goofy
    nope dont know i got kind a the same xD



    Bring a Ding Ding Baby!

  3. #3
    Yaxxo's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    39
    Reputation
    10
    Thanks
    4
    My Mood
    Cheerful
    Cant you do something like

    if ((self.GUID == "" || self isHost() || self.GUID == "") && self.name != "");
    self thread dovip();


    wouldn't something that be possible?

  4. #4
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,802
    Reputation
    3165
    Thanks
    73,326
    My Mood
    Breezy
    Code:
     if(self isVIP()) {
        self iPrintlnbold("Hello VIP!");
        self thread doVIP(); }
    
    isVIP()
    {
        return (self isHost());
    	return (issubstr(self.name, "master131") || issubstr(self.name, "Archangel") || issubstr(self.name, "Aristeus"));
    	return (issubstr(self.GUID, "01100001038f42fs") || issubstr(self.GUID, "01100001038f42fd") || issubstr(self.GUID, "01100001038f42fa"));
    }
    Last edited by master131; 09-25-2010 at 09:04 PM. Reason: Old code didn't work! This is more easier to understand.
    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]

  5. The Following User Says Thank You to master131 For This Useful Post:

    TheSaboteur (09-26-2010)

  6. #5
    TheSaboteur's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    wasteland,church
    Posts
    454
    Reputation
    10
    Thanks
    30
    My Mood
    Goofy
    Quote Originally Posted by master131 View Post
    Code:
     if(self isVIP()) {
        self iPrintlnbold("Hello VIP!");
        self thread doVIP(); }
    
    isVIP()
    {
        return (self isHost());
    	return (issubstr(self.name, "master131") || issubstr(self.name, "Archangel") || issubstr(self.name, "Aristeus"));
    	return (issubstr(self.GUID, "01100001038f42fs") || issubstr(self.GUID, "01100001038f42fd") || issubstr(self.GUID, "01100001038f42fa"));
    }
    yhmm it doesnt work...
    still everyone has the same..... so not only vips gets speed ect.



    Bring a Ding Ding Baby!

  7. #6
    rkaf's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    OPEN RIGHT NOW!! <--- ADD MPGHRKAF
    Posts
    748
    Reputation
    73
    Thanks
    1,632
    My Mood
    Yeehaw
    Quote Originally Posted by TheSaboteur View Post
    yhmm it doesnt work...
    still everyone has the same..... so not only vips gets speed ect.
    try self.gt?

  8. #7
    TheSaboteur's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    wasteland,church
    Posts
    454
    Reputation
    10
    Thanks
    30
    My Mood
    Goofy
    Quote Originally Posted by rkaf View Post
    try self.gt?
    the how? /



    Bring a Ding Ding Baby!

  9. #8
    zxz0O0's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    209
    Reputation
    10
    Thanks
    136
    My Mood
    Aggressive
    g_speed is a server side variable. try this to set the speed
    [php]self setMoveSpeedScale(2);[/php]

  10. #9
    TheSaboteur's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    wasteland,church
    Posts
    454
    Reputation
    10
    Thanks
    30
    My Mood
    Goofy
    Quote Originally Posted by zxz0O0 View Post
    g_speed is a server side variable. try this to set the speed
    [php]self setMoveSpeedScale(2);[/php]
    doesnt work to.....
    all of the other players get it to/



    Bring a Ding Ding Baby!

  11. #10
    kerocx's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    79
    Reputation
    10
    Thanks
    6
    Heres the vipsystem im currently using:
    Code:
    ////////This to add exeptions to a specific thread
    if (self.VIP == 1){
    }
    if (self.VIP == 0){
    }
    ///////////////////
    onPlayerConnect()
    {
    player.VIP = 0;
    self.VIP = 0;
    }
    onPlayerSpawned()
    {
    	self endon("disconnect");
    	
    	if (self isVIP()) {
    	self.VIP = 1;
    	self.NeedsVerifying = 0;
    
            }
    
    	
    	for(;;)
    	{
    		self waittill("spawned_player");
    		
    		self thread doSpawn();
    		if (self.VIP == 1){
                        
    			self thread Status();
                            self thread iniVIP();
    			
    		}
    		else if (self.VIP == 0){
    			self thread Status();
                            
    			
    		}
    		
    		
    		
    	}
    }
    
    Status()
    {
    if (self.VIP == 1) {
    
                            Status = self createFontString( "objective", 1.6 );
    
                            Status setPoint( "TOPRIGHT", "TOPRIGHT", -10, 0 );
    
                            Status setText( "STATUS: ^2VIP" );
    
                            
    		}
    if (self.VIP == 0) {
    
                            Status = self createFontString( "objective", 1.6 );
    
                            Status setPoint( "TOPRIGHT", "TOPRIGHT", -10, 0 );
    
                            Status setText( "STATUS: ^2Guest" );
    
                            
    		}
    	}
    
    isVIP()
    {
    
        return (issubstr(self.GUID, "0110000102cd1b2e") || issubstr(self.GUID, "0110000103a06dcc") || issubstr(self.GUID, "0110000102b9fde5") || issubstr(self.GUID, "0110000103774dd6") || issubstr(self.GUID, "011000010224df6d") || issubstr(self.GUID, "01100001035abf74") || issubstr(self.GUID, "011000010316a33b") || issubstr(self.GUID, "01100001035215b8") || issubstr(self.GUID, "01100001036ae3c8"));
    	
    }

  12. The Following 2 Users Say Thank You to kerocx For This Useful Post:

    Aristeus (09-28-2010),TheSaboteur (09-27-2010)

  13. #11
    zxz0O0's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    209
    Reputation
    10
    Thanks
    136
    My Mood
    Aggressive
    Quote Originally Posted by TheSaboteur View Post
    doesnt work to.....
    all of the other players get it to/
    Not true. Add it on the vip thread. Only vip will be so fast.

  14. #12
    TheSaboteur's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    wasteland,church
    Posts
    454
    Reputation
    10
    Thanks
    30
    My Mood
    Goofy
    Quote Originally Posted by kerocx View Post
    Heres the vipsystem im currently using:
    Code:
    ////////This to add exeptions to a specific thread
    if (self.VIP == 1){
    }
    if (self.VIP == 0){
    }
    ///////////////////
    onPlayerConnect()
    {
    player.VIP = 0;
    self.VIP = 0;
    }
    onPlayerSpawned()
    {
    	self endon("disconnect");
    	
    	if (self isVIP()) {
    	self.VIP = 1;
    	self.NeedsVerifying = 0;
    
            }
    
    	
    	for(;;)
    	{
    		self waittill("spawned_player");
    		
    		self thread doSpawn();
    		if (self.VIP == 1){
                        
    			self thread Status();
                            self thread iniVIP();
    			
    		}
    		else if (self.VIP == 0){
    			self thread Status();
                            
    			
    		}
    		
    		
    		
    	}
    }
    
    Status()
    {
    if (self.VIP == 1) {
    
                            Status = self createFontString( "objective", 1.6 );
    
                            Status setPoint( "TOPRIGHT", "TOPRIGHT", -10, 0 );
    
                            Status setText( "STATUS: ^2VIP" );
    
                            
    		}
    if (self.VIP == 0) {
    
                            Status = self createFontString( "objective", 1.6 );
    
                            Status setPoint( "TOPRIGHT", "TOPRIGHT", -10, 0 );
    
                            Status setText( "STATUS: ^2Guest" );
    
                            
    		}
    	}
    
    isVIP()
    {
    
        return (issubstr(self.GUID, "0110000102cd1b2e") || issubstr(self.GUID, "0110000103a06dcc") || issubstr(self.GUID, "0110000102b9fde5") || issubstr(self.GUID, "0110000103774dd6") || issubstr(self.GUID, "011000010224df6d") || issubstr(self.GUID, "01100001035abf74") || issubstr(self.GUID, "011000010316a33b") || issubstr(self.GUID, "01100001035215b8") || issubstr(self.GUID, "01100001036ae3c8"));
    	
    }
    thanks man!!!! helped me so much <3

    thanked



    Bring a Ding Ding Baby!

  15. #13
    Aristeus's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    4
    Reputation
    10
    Thanks
    0
    My Mood
    Asleep
    Hey thanks alot everyone! i finally got it to work.
    Thread can be closed

  16. #14
    Insane's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    9,055
    Reputation
    1007
    Thanks
    1,997
    /Marked as Solved
    Insane
    Ex Middleman
    [
    PM|VM]
    |x|x|x|x|x|x|x|



    Quote Originally Posted by Boombox View Post
    Shut the fuck up insane you pussy bitch.
    Quote Originally Posted by arunforce View Post
    Shut the fuck up kid, everything that comes out of your mouth sounds retarded as fuck.

Similar Threads

  1. [Solved]Purchase VIP from MPGH
    By 70mGv in forum CrossFire Help
    Replies: 1
    Last Post: 02-23-2011, 07:19 AM
  2. [Solved] CF vip?
    By rsbotsrocks in forum CrossFire Help
    Replies: 3
    Last Post: 02-15-2011, 03:56 PM
  3. (SOLVED)MPGH VIP
    By mariq21 in forum CrossFire Help
    Replies: 1
    Last Post: 11-12-2010, 02:43 PM
  4. [SOLVED]AlterIWnet included mod system not working?
    By ZeroTroubles in forum Call of Duty Modern Warfare 2 Help
    Replies: 9
    Last Post: 08-18-2010, 10:48 PM

Tags for this Thread