armour

Started by Cool, Oct 22, 2015, 02:47 PM

Previous topic - Next topic

Cool

i have that anti armour system but i want thats system dont kick  if a rank name pro

function onPlayerArmourChange( player, oldarm, newarm )
{
try {
     if ( newarm > 0)
{
Message(RED+"--> Auto-Kicking [ " + player.Name + " ] ,  Reason : [ Armour Hack Detected ] ");
EchoMessage(ICOL_RED+">> Auto-Kicking [ " + player.Name + " ] ,  Reason : [ Armour Hack Detected ] ");
cKick( player );
}
  }
catch(e) print( "newarm Error: " + e );
}

MacTavish

Easy just change

if ( newarm > 0) to if ( newarm > 0 && !rank(player) == "Pro")

Grand Hunting Project
Join #SLC, #KAKAN, #Doom, #GHP @LUnet

Retired VC:MP Player/Scripter :P

Cool

Thanks its will works if dont works i will tell you
[mergedate]1445526098[/mergedate]
not works no error when i remove this ten starts working
&& !Rank(player) == "pro")

hotdogcat

Maybe you don't have Rank() function


Credits to Bart.

Cool


Mashreq

Try using:
if ( newarm > 0 && rank(player) != "Pro")

EK.IceFlake

which function for rankz?

Cool

THANKS so muchhhhh @Mashreq  its works locked