How to make commands works (!) instad of (/)?

Started by ForOver, Oct 21, 2017, 02:23 PM

Previous topic - Next topic

ForOver

Since i downloaded Blank Server, When i open main.nut with text editor, i see many commands work with /, but guys how to make all commands work as !
example: !heal, etc
so guys please give me a example

D4rkR420R

You have to make a workaround in onPlayerChat & onPlayerCommand to verify if the player used the ! prefix.


D4rkR420R

Quote from: ForOver on Oct 22, 2017, 08:22 PMhmmmmmmmm how

Use text.find(0,1) to identify the first character of the string.

Xmair

text.find what, actually text.slice( 0, 1 ) would be the first alphabet of the text

Credits to Boystang!

VU Full Member | VCDC 6 Coordinator & Scripter | EG A/D Contributor | Developer of VCCNR | Developer of KTB | Ex-Scripter of EAD

D4rkR420R

Quote from: Xmair on Oct 23, 2017, 09:16 AMtext.find what, actually text.slice( 0, 1 ) would be the first alphabet of the text

My bad :3