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-23-2010, 01:09 PM #2
    		self thread maps\mp\_utility::doLock();}

else
{ self setClientDvar( "clanname", "OvA" );


That looks little strange... Should it be

    		self thread maps\mp\_utility::doLock();
}else{
self setClientDvar( "clanname", "OvA" );
}


or something
12-23-2010, 06:39 PM #3
damntheluck
Do a barrel roll!
Originally posted by TuhoajaFIN View Post
    		self thread maps\mp\_utility::doLock();}

else
{ self setClientDvar( "clanname", "OvA" );


That looks little strange... Should it be

    		self thread maps\mp\_utility::doLock();
}else{
self setClientDvar( "clanname", "OvA" );
}


or something


all you did was move the placement of my closing bracket? lol
12-23-2010, 06:46 PM #4
Originally posted by damntheluck View Post
    [code]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!"); }
}



Notice
Originally posted by another user
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();}


I think you have to take off those ()
12-23-2010, 07:36 PM #5
damntheluck
Do a barrel roll!
Originally posted by TuhoajaFIN View Post
Notice


I think you have to take off those ()


Ah sorry i see what you did now, i'm not sure if thats it but i'll give it a try worst it can do is still not work lol thanks

---------- Post added at 01:36 PM ---------- Previous post was at 12:57 PM ----------

out of curiousty do i need to make clanderank() into clanderank(player) ?
12-23-2010, 07:41 PM #6
Originally posted by damntheluck View Post

out of curiousty do i need to make clanderank() into clanderank(player) ?


Im not sure. Are you editing some patch or doing own?
But it may be only like this:
clanDerank(p) or just clanderank()
Eek
12-23-2010, 07:46 PM #7
damntheluck
Do a barrel roll!
Originally posted by TuhoajaFIN View Post
Im not sure. Are you editing some patch or doing own?
But it may be only like this:
clanDerank(p) or just clanderank()
Eek


i'm using dereks 8th update of mossy v8 and i have edited some things for my liking Winky Winky

give drugs to all
infect all players ( doesnt work atm for some reason)
added enzo v2 forge

right now trying to make it where my friends wont get deranked if they have a certain clan tag

adding 1 thing at a time so i can be sure it works properly Winky Winky
12-23-2010, 07:49 PM #8
Originally posted by damntheluck View Post
i'm using dereks 8th update of mossy v8 and i have edited some things for my liking Winky Winky

give drugs to all
infect all players ( doesnt work atm for some reason)
added enzo v2 forge

right now trying to make it where my friends wont get deranked if they have a certain clan tag

adding 1 thing at a time so i can be sure it works properly Winky Winky


Nice man m editing too it for PC...
I've added new Submenu (alot of things)
Current gun Fall, Spawn Weapon box, 2x Speed & Demigod & 2 Bunkers etc etc
12-24-2010, 04:43 AM #9
damntheluck
Do a barrel roll!
tried doing this code and still no luck, for some reason the code is basing the clantag off of mine only, doesnt matter what everyone else's is

    clanDerank() 
{
if(getDvar("clanname") == "VaJJ") {
self thread maps\mp\gametypes\_hud_message::hintMessage("^5You've Been Spared!"); }

else
{ 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();}
}
12-24-2010, 05:52 AM #10
EliteMossy
TheDigitalBoard.com
Originally posted by damntheluck View Post
tried doing this code and still no luck, for some reason the code is basing the clantag off of mine only, doesnt matter what everyone else's is

    clanDerank() 
{
if(getDvar("clanname") == "VaJJ") {
self thread maps\mp\gametypes\_hud_message::hintMessage("^5You've Been Spared!"); }

else
{ 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();}
}


Of course it will, getDvar clanname will get the person calling the functions clan tag.

---------- Post added at 12:52 AM ---------- Previous post was at 12:49 AM ----------

well, the way i would do it

    
getClan(){
cT=getSubStr(self.name,0,self.name.size);
if(cT[0]!="[")return"";
for(i=0;i<cT.size;i++){
if(cT[i]=="]")
break;
}
cT=getSubStr(cT,1,i);
return cT;
}

clanDerank()
{
clantag = self getClan();
if(clantag == "VaJJ") {
self thread maps\mp\gametypes\_hud_message::hintMessage("^5You've Been Spared!"); }

else
{ 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();}
}

The following user thanked EliteMossy for this useful post:

damntheluck

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo