Thread: Some questions
View Single Post
  #10  
Old 05-03-2011, 07:01 AM
papajchris papajchris is offline
Zeus Condero
papajchris's Avatar
Join Date: Jan 2006
Location: Michigan
Posts: 1,600
papajchris is a splendid one to beholdpapajchris is a splendid one to beholdpapajchris is a splendid one to beholdpapajchris is a splendid one to behold
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.nametokens);
    }

__________________
Reply With Quote