
05-21-2009, 10:07 PM
|
|
Zone Repulser =D
|
 |
Join Date: May 2006
Posts: 54
|
|
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));
}
} |
|
|
|