Hm i can't seem to get the script to work. I made sure i have a high enough staff level and i even swapper that part out for my account name to see if that would work, but still no luck
PHP Code:
function onCreated(){
findplayer("papajchris").addweapon("Personal/papajchris/Staff");
}
function onActionServerSide(tokens){
if (tokens[0] == "/kill") {
if (player.account == "papajchris") {
temp.pl = findPlayerByCommunityName(tokens[1]);
temp.pl.hearts = 0;
temp.pl.chat = player.account SPC "killed you!";
player.chat = "You killed" SPC temp.pl SPC "!";
} else {
player.chat = "Not authorized!";
}
}
}
//#CLIENTSIDE
function onPlayerChats() {
if(tokens[0] == "/kill") {
temp.tokens = player.chat.tokenize();
triggerServer("gui", this.name, tokens);
}
}