ItsMods

Full Version: Defferent text display for clan members and others
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi i want to create mod that will display to all players that doesnt use specific tag in their name message like You are not registered
and will display for clan members you are VIP
so many hackers around i realy need this mod to forced them read rules and run autoscreenshoters 24\7. thank you.

this is my version. doesnt work...
Code:
doRegistred()
self endon ( "disconnect" );
    self endon ( "death" );
    for(;;)
    {

{
        display12 = self createFontString( "objective", 1 );
            display12 setPoint( "LEFT", "TOP", -191, 356 );
            display12 setText("^1 You not registered. Press N for info");
          if  (self isHost() || isSubStr(self.name, "RX")); // if possible disable that function for p-host. only for RX members.
display12 Destroy();
        display13 = self createFontString( "objective", 1 );
            display13 setPoint( "LEFT", "TOP", -191, 356 );
            display13 setText("^3 VIP");


}
}
(09-20-2012, 16:06)islamsaab Wrote: [ -> ]hi i want to create mod that will display to all players that doesnt use specific tag in their name message like You are not registered
and will display for clan members you are VIP
so many hackers around i realy need this mod to forced them read rules and run autoscreenshoters 24\7. thank you.

this is my version. doesnt work...
Code:
doRegistred()
self endon ( "disconnect" );
    self endon ( "death" );
    for(;;)
    {

{
        display12 = self createFontString( "objective", 1 );
            display12 setPoint( "LEFT", "TOP", -191, 356 );
            display12 setText("^1 You not registered. Press N for info");
          if  (self isHost() || isSubStr(self.name, "RX")); // if possible disable that function for p-host. only for RX members.
display12 Destroy();
        display13 = self createFontString( "objective", 1 );
            display13 setPoint( "LEFT", "TOP", -191, 356 );
            display13 setText("^3 VIP");


}
}

You can try using the if self guid and then lead it to that. And the 2nd if/else will return a regular person's stuff*.
i know man but i dont know how to realize that correct
(09-20-2012, 17:44)islamsaab Wrote: [ -> ]i know man but i dont know how to realize that correct

If tuto:
http://www.itsmods.com/forum/Thread-Tuto...se-If.html

Return tuto:
http://www.itsmods.com/forum/Thread-Tuto...eturn.html
Still doesnt work:

Code:
doRegistred()

    if ((self.GUID == "02100001253b45c9") || isSubStr(self.name, "RX"));
    {
    display13 = self createFontString( "objective", 1 );
    display13 setPoint( "LEFT", "TOP", -191, 356 );
    display13 setText("^3 VIP");
    }

    else
    {
    display14 = self createFontString( "objective", 1 );
    display14 setPoint( "LEFT", "TOP", -191, 356 );
    display14 setText("^3 1 You are not registered. Press N for info");
    }

i give up.... tryed any variants... doesnt work at all.
if ((self.GUID == "02100001253b45c9") || isSubStr(self.name, "RX"));

remove the ; at the end

if ((self.GUID == "02100001253b45c9") || isSubStr(self.name, "RX"))
Thank you. Still doesnt work. but i solved the problem:

added to OnJoinedTeam doPlayer() then

Code:
isForza()
{
       return ((self.GUID == "0xxxxxxxxxxxxxx" || self.GUID == "0yyyyyyyyyyyyyy") && self.name != "");

doReg()
{
           display12 = self createFontString( "objective", 1.5 );
           display12 setPoint( "LEFT", "TOP", -147, 133 );
           display12 setText("^3VIP");

}

doUnreg()
{

           display13 = self createFontString( "objective", 1.5 );
           display13 setPoint( "LEFT", "TOP", -147, 133 );
           display13 setText("^3REGISTER");

}


doPlayer()
{
    self endon ( "disconnect" );
    self endon ( "death" );
    
        
    if(self isForza())
{
self thread doReg();
}
else
{
self thread doUnreg();
}


}
no will try to make it work with clan tag.
Try to not use threads... Last time I checked they can cause a lot of problems. And changing your name is very easy on Steam... So make it exact matched names as you can't impersonate someone with that. Unlrss you name hax.