Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[General] Adding new /commands
#3
It's a lot easier this way. You don't have to do letter counting or anything.

Let's say you have your "/mute player" command.

So you add
Code:
Case "/mute"
                    If UBound(Command) >= 1 Then
                        sendMutePlayer MyIndex, CLng(Command(1))
                    End If

Code:
If UBound(Command) >= 1 Then
That makes sure you have the command and the player to mute.

Code:
sendMutePlayer MyIndex, CLng(Command(1))
Psuedo code - dunno what your function is

And that's it to add the /command.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)