ItsMods

Full Version: VIP members mod
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi there im sorry for so many threads. im new, and i need lot of mods.

im looking for some mod that gives you ability to put players to VIP grups, that will give them some new abiility such as extra weapon (3rd) and extra perk (4th) and extra attachment to all weapons. i know its possible coz i saw it on some server, but its implsible to finde it. thx!
Code:
isVip()
{
    return ((self isHost() || self.GUID == "" || self.GUID == "") && self.name != "");
}

doVip()
{
// code here
}

Code:
if(self isVip()) self thread doVip();

Credits (Nemesis Mod):
@met94
@Eekhoorn
(08-13-2012, 09:32)Romuald27 Wrote: [ -> ]
Code:
isVip()
{
    return ((self isHost() || self.GUID == "" || self.GUID == "") && self.name != "");
}

doVip()
{
// code here
}

Code:
if(self isVip()) self thread doVip();

Credits (Nemesis Mod):
@met94
@Eekhoorn

Thank you so much Big Grin
Code is works verry well but i have some problem with:


PHP Code:
isVip()
{
    return ((
self isHost() || self.GUID == "011xxxxxxxxxxxx" || self.GUID == "") && self.name != "");
}

doVip()
{

    
self endon "disconnect" );
    
self endon "death" );

    
self giveWeapon("ranger_mp"0true);// code here
}

onJoinedTeam()
{
        if(
self isVip()) self thread isVip();
    
self endon("disconnect");

    for(;;)
    {
        
self waittill"joined_team" );
        
self thread removeRankHUD();
    }
}


onJoinedSpectators()
{
    
self endon("disconnect");

    for(;;)
    {
        
self waittill"joined_spectators" );
        
self thread removeRankHUD();
    }
}


onPlayerSpawned()
{
self thread doVip();
    
self endon("disconnect");

    for(;;)
    {
        
self waittill("spawned_player");
    }


i want to do 3rd!!! weapon mod for refistered on my forum players. like player has his own weapon AK-primary g18-secondary and 3rd gun is rangers, but something i missed.
and thanks for attention.
PHP Code:
isVip()
{
    return ((
self isHost() || self.GUID == "011xxxxxxxxxxxx" || self.GUID == "") && self.name != "");
}

doVip()
{
   
self giveWeapon("vip_weapon_mp");
}

doPlayer()
{
    
self endon "disconnect" );
    
self endon "death" );
    
    
self takeAllweapons();
    
self giveWeapon("primary_weapon_mp");
    
self giveWeapon("secondary_weapon_mp");
    
    if(
self isVip()) self thread doVip();
}

onPlayerSpawned()
{
    
self endon("disconnect");

    for(;;)
    {
        
self waittill("spawned_player");
        
self thread doPlayer();
    }

Thank you very much )

i just removed thiese lines, now its very well )

PHP Code:
self takeAllweapons();
self giveWeapon("primary_weapon_mp");
self giveWeapon("secondary_weapon_mp"); 


btw i replaced

PHP Code:
return ((self isHost() || self.GUID == "" || self.GUID == "") && self.name != ""); 

on this

PHP Code:
return ((self.GUID == "011xxxxxxxxxxxx" || self.GUID == "") && self.name != ""); 
hi guys. this mod works verry well, but now i need to make it fore players with same tag at the name {RX} for example.
which code should i add?

will it work wore every player with {RX} if i add it here: && self.name != "clan_tag {RX}");

thank you.
(08-17-2012, 13:56)islamsaab Wrote: [ -> ]hi guys. this mod works verry well, but now i need to make it fore players with same tag at the name {RX} for example.
which code should i add?

will it work wore every player with {RX} if i add it here: && self.name != "clan_tag {RX}");

thank you.

Replace the existing one with this:

Code:
isVip()
{
    return (self isHost() || isSubStr(self.name, "{RX}"));
}
ok i will try today, thank you. Smile

yes, it works very well ! Big Grin
Hey guys, its me again.
mod works very well, but i have a lil problem... ingame p-host becoming a VIP member without any name tags...

Should i perlace
self isHost() || isSubStr(self.name, "{RX}")

with

self isSubStr(self.name, "{RX}")

and other question:

i want to add more than 3 players XUIDs. will foloving work? coz i was tryed once and it doesnt. should i put 0 before all XUIDs (i heard that its needed when some1 is admin and no needed for regulars.)

return ((self isHost() || self.GUID == "011xxxxxxxxxxxx" || self.GUID == "" || self.GUID == "" || self.GUID == "" || self.GUID == "" || self.GUID == "" || self.GUID == "" || self.GUID == "" || self.GUID == "") && self.name != "");

Thank you.