View Single Post
  #1  
Old 05-21-2009, 10:07 PM
Struggler Struggler is offline
Zone Repulser =D
Struggler's Avatar
Join Date: May 2006
Posts: 54
Struggler is an unknown quantity at this point
Post Help with my script?

Hey, yeah, I'm trying to make a clan system, but cant get the adding down. You see, what it is susposed to do is add the tag weapon, add the clan string, and tell them they've been added. It does all but adding the string, can someone tell me how to add the string to a targeted player?

function onActionServerside(){
if(params[0] == "add"){
this.clan = clientr.clan;
temp.pl = findplayerbycommunityname(params[1]);
if (pl != NULL){
pl.addstring(clientr.clan,this.clan);
pl.addweapon("Public/Struggler/ClanTag");
pl.chat = "You have been added to clan: "@this.clan;
} else{
player.chat = "Cannot find player!";
}
}
}
//#CLIENTSIDE
function onPlayerChats(){
if (player.chat.starts("/addmember")){
triggerserver("gui",this.name,"add",player.chat.su bstring(11));
}
}
Reply With Quote