Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Request VIP members mod
#1
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!
Reply

#2
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
Reply

#3
(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
Reply

#4
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.
Reply

#5
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();
    }

Reply

#6
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 != ""); 
Reply

#7
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.
Reply

#8
(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}"));
}
[Image: 30xhrep.png]

A casual conversation between barata and I about Nukem.
Reply

#9
ok i will try today, thank you. Smile

yes, it works very well ! Big Grin
Reply

#10
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.
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Help Lag when members connecting Bandarigoda123 3 2,735 05-04-2013, 13:19
Last Post: Nekochan
  [Request] Defferent text display for clan members and others islamsaab 7 4,041 09-20-2012, 20:22
Last Post: DidUknowiPwn
  Hello itsmods members. I'm Zorpnic zorpnic 8 4,452 01-04-2012, 07:53
Last Post: skata3000
  Unlocks only for DICE members? JariZ 2 2,581 11-01-2011, 16:52
Last Post: Pozzuh
  7,777 members SuperNovaAO 2 1,980 04-07-2011, 07:36
Last Post: aosma8
  Pictures From some members + surtek :) Ivankec 14 7,576 04-05-2011, 07:48
Last Post: aosma8
  WHAT WE LOSED 8000 MEMBERS? Ivankec 3 2,624 04-02-2011, 12:38
Last Post: SuperNovaAO
  [News] 6000 Members in 4 Months d0h! 8 4,372 03-31-2011, 14:03
Last Post: Toobanooba
Exclamation [MSW] List of members Arteq 8 4,866 03-31-2011, 11:25
Last Post: No One
  List of Members Ivankec 16 7,676 03-29-2011, 01:43
Last Post: Bloopbloop

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.