Avoiding "!" Prefix

Started by soulshaker, Sep 07, 2015, 12:24 PM

Previous topic - Next topic

KAKAN

I merged them, can;t u see?
oh no

EK.IceFlake

function onPlayerCommand(player, command, text)
{
 if (command == "c") return onPlayerCCommand(player, split(text, ' ')[0], split(text, ' ').remove(0));
}
function onPlayerCCommand(player, command, textarray)
{
 if (command == "kill") player.Health = 0;
}
Note: the last parameter of onPlayerCCommand is an array not string
Also it isn't tested

KAKAN

Ahh, yopu can do it through onPlayerChat XD
oh no