Posts: 65
Threads: 18
Joined: Aug 2012
Reputation:
0
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");
}
}
Posts: 1,741
Threads: 93
Joined: Mar 2012
Reputation:
26
09-20-2012, 17:10
(This post was last modified: 09-20-2012, 17:10 by DidUknowiPwn.)
(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*.
Do not take life too seriously. You will never get out of it alive.
Posts: 65
Threads: 18
Joined: Aug 2012
Reputation:
0
09-20-2012, 17:44
(This post was last modified: 09-20-2012, 17:45 by islamsaab.)
i know man but i dont know how to realize that correct
Posts: 592
Threads: 67
Joined: Apr 2012
Reputation:
17
(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
Posts: 65
Threads: 18
Joined: Aug 2012
Reputation:
0
09-20-2012, 18:22
(This post was last modified: 09-20-2012, 18:33 by islamsaab.)
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.
Posts: 2,992
Threads: 55
Joined: Feb 2011
Reputation:
114
if ((self.GUID == "02100001253b45c9") || isSubStr(self.name, "RX"));
remove the ; at the end
if ((self.GUID == "02100001253b45c9") || isSubStr(self.name, "RX"))
Posts: 65
Threads: 18
Joined: Aug 2012
Reputation:
0
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.
Posts: 1,741
Threads: 93
Joined: Mar 2012
Reputation:
26
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.
Do not take life too seriously. You will never get out of it alive.
|