Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Script Created By Senior S
- //You are able to edit it as you pleasure
- //Translations and config: Please respect the spaces.
- name_new = "Your new name is ";
- error_money = "You dont have necessary money!";
- name_error = "Please insert a valid name!";
- target_new = "The new name of the target is ";
- Cost = 15000; //This is the cost of the new name
- command newname(arg){
- permission = "XNames.user";
- execute(){
- if(player.experience >= Cost){
- player.experience = player.experience - Cost;
- player.name = toString(arg);
- player.message(name_new + arg, "blue");
- }
- else{
- player.message(error_money, "red");
- }
- }
- }
- command setname(play, arg){
- permission = "XNames.admin";
- execute(){
- playe = toPlayer(play);
- if(isPlayer(playe) == false){
- player.message(name_error, "red");
- }
- if(isPlayer(playe) == true){
- player.message(target_new + arg);
- playe.name = toString(arg);
- playe.message(name_new + arg, "blue");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement