Commands for Different Classes

Started by Alpays, May 05, 2020, 01:03 PM

Previous topic - Next topic

Alpays

For example I want players use  /abc command if they are in 4th class

DizzasTeR

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
    }
}

habi

function onPlayerCommand( player, cmd, text )
{
     if( cmd == "abc" )
     {


     }
}