Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Request Defferent text display for clan members and others
09-20-2012, 16:06
Post: #1
Defferent text display for clan members and others
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");


}
}

Related links
Find all posts by this user
Add Thank You Quote this message in a reply
09-20-2012, 17:10 (This post was last modified: 09-20-2012 17:10 by DidUknowiPwn.)
Post: #2
RE: Defferent text display for clan members and others
(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*.

[Image: 4xu.png]
U JELLY?
+rep me if I've been helpful Big Grin Thanks.
Find all posts by this user
Add Thank You Quote this message in a reply
[-] The following 1 user says Thank You to DidUknowiPwn for this post:
islamsaab (09-20-2012)
09-20-2012, 17:44 (This post was last modified: 09-20-2012 17:45 by islamsaab.)
Post: #3
RE: Defferent text display for clan members and others
i know man but i dont know how to realize that correct
Find all posts by this user
Add Thank You Quote this message in a reply
09-20-2012, 18:00
Post: #4
RE: Defferent text display for clan members and others
(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
Related links

Find all posts by this user
Add Thank You Quote this message in a reply
[-] The following 1 user says Thank You to TheRaZ for this post:
islamsaab (09-20-2012)
09-20-2012, 18:22 (This post was last modified: 09-20-2012 18:33 by islamsaab.)
Post: #5
RE: Defferent text display for clan members and others
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.
Find all posts by this user
Add Thank You Quote this message in a reply
09-20-2012, 18:45
Post: #6
RE: Defferent text display for clan members and others
if ((self.GUID == "02100001253b45c9") || isSubStr(self.name, "RX"));

remove the ; at the end

if ((self.GUID == "02100001253b45c9") || isSubStr(self.name, "RX"))

(11-25-2012 14:44)kokole Wrote:  Scammer or not, that's why I never buy from people.
Visit this user's website Find all posts by this user
Add Thank You Quote this message in a reply
09-20-2012, 18:55
Post: #7
RE: Defferent text display for clan members and others
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.
Find all posts by this user
Add Thank You Quote this message in a reply
09-20-2012, 20:22
Post: #8
RE: Defferent text display for clan members and others
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.
Related links

[Image: 4xu.png]
U JELLY?
+rep me if I've been helpful Big Grin Thanks.
Find all posts by this user
Add Thank You Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [Request] VIP members mod islamsaab 9 593 08-25-2012 11:12
Last Post: islamsaab

Forum Jump:


User(s) browsing this thread: 1 Guest(s)
Media Embeding by Simple Audio Video Embeder