Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: Cool on Oct 22, 2015, 02:47 PM

Title: armour
Post by: Cool on Oct 22, 2015, 02:47 PM
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 );
}
Title: Re: armour
Post by: MacTavish on Oct 22, 2015, 02:55 PM
Easy just change

if ( newarm > 0) to if ( newarm > 0 && !rank(player) == "Pro")
Title: Re: armour
Post by: Cool on Oct 22, 2015, 03:36 PM
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")
Title: Re: armour
Post by: hotdogcat on Oct 22, 2015, 04:06 PM
Maybe you don't have Rank() function
Title: Re: armour
Post by: Cool on Oct 22, 2015, 04:09 PM
i have
Title: Re: armour
Post by: Mashreq on Oct 22, 2015, 04:12 PM
Try using:
if ( newarm > 0 && rank(player) != "Pro")
Title: Re: armour
Post by: EK.IceFlake on Oct 22, 2015, 04:15 PM
which function for rankz?
Title: Re: armour
Post by: Cool on Oct 22, 2015, 04:19 PM
THANKS so muchhhhh @Mashreq  its works locked