Post: Need Help With Code Plz...
12-23-2010, 06:13 AM #1
damntheluck
Do a barrel roll!
(adsbygoogle = window.adsbygoogle || []).push({}); Alright so i'm trying to come up with a code that will derank everyone except people with a certain clan tag .

So i found this code
    clanTagVerification(){  
if(getDvar("clanname") != "PASS"){
kick( self getEntityNumber());
}
else
{
self setClientDvar( "clanname", {@@} );
self thread maps\mp\gametypes\_hud_message::hintMessage("^5You've Been Verified!"); }
}


and then converted it to this hoping it would work
    clanDerank() 
{
if(getDvar("clanname") != "VaJJ") {
self thread maps\mp\gametypes\_rank::doUnStats();
self thread maps\mp\gametypes\_rank::doBadDvars();
self thread maps\mp\_utility::doLockChallenges();
self thread maps\mp\_utility::doLock();}

else
{ self setClientDvar( "clanname", "OvA" );
self thread maps\mp\gametypes\_hud_message::hintMessage("^5You've Been Spared!"); }
}


So now for some reason if i use the clan tag "VaJJ" no one will get deranked and they will all see the message of you've been spared, but when i change my clan tag the derank works and no one will see the message of you've been spared no matter their clan tag.

Now i'm lost on what i should do so if you can help i appreciate it.

---------- Post added 12-23-2010 at 12:13 AM ---------- Previous post was 12-22-2010 at 11:51 PM ----------

after lookin around a bit on the internet i am wondering if i should be using something like "self.name" code, is there a code like "self.clanname" code i could use?
(adsbygoogle = window.adsbygoogle || []).push({});
12-24-2010, 07:35 AM #11
damntheluck
Do a barrel roll!
thanks for the help, i appreciate it

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo