Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: Alpays on May 05, 2020, 01:03 PM

Title: Commands for Different Classes
Post by: Alpays on May 05, 2020, 01:03 PM
For example I want players use  /abc command if they are in 4th class
Title: Re: Commands for Different Classes
Post by: DizzasTeR on May 05, 2020, 03:25 PM
You check the player's class in the command
if(command == "abc") {
    if(player.Class == 4) {
        // They have class 4, do what the command has to do now
    }
}
Title: Re: Commands for Different Classes
Post by: habi on May 05, 2020, 04:09 PM
function onPlayerCommand( player, cmd, text )
{
     if( cmd == "abc" )
     {


     }
}