Angry[SOLVED] "Vip" System?

Posts 114 of 14 · Page 1 of 1
[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
nope dont know i got kind a the same xD
Cant you do something like

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


wouldn't something that be possible?
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"));
}
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.
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?
Quote Originally Posted by rkaf View Post
try self.gt?
the how? /
g_speed is a server side variable. try this to set the speed
[php]self setMoveSpeedScale(2);[/php]
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/
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.
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"));
	
}
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
Hey thanks alot everyone! i finally got it to work.
Thread can be closed
/Marked as Solved
Posts 114 of 14 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

Need help?