Change Name Cmd
#6

PHP Code:
CMD:setname(playerid,params[])
{
    if(
IsPlayerAdmin(playerid))
    {
        new 
idname[24], str[130], newname;
        if(
sscanf(params"udd"id,name,newname)) return SendClientMessage(playerid,red,"/SetName [Playerid/Name] [New Name]");
        
GetPlayerName(id,name,24);
        
format(str,130,"You Changed %s (%d)'s Name to $%d",name,id,newname);
        
SendClientMessage(playerid,lightblue,str);
        
format(str,130"Admin Changed Your Name to $%d",newname);
        
SendClientMessage(playerid,lightblue,str);
        
SetPlayerName(id,name);
                      
PlayerInfo[id][pAdminLevel] = name// if caused an error check your player info
    
} else return SendClientMessage(playerid,red,"Your are not autorised to use this cmd);
    return 1;

Reply


Messages In This Thread
Change Name Cmd - by Blackazur - 16.10.2012, 19:10
Re: Change Name Cmd - by Shockey HD - 16.10.2012, 20:12
AW: Change Name Cmd - by Blackazur - 17.10.2012, 15:39
Re: Change Name Cmd - by Anthony © - 17.10.2012, 16:28
AW: Change Name Cmd - by Blackazur - 17.10.2012, 20:09
Re : Change Name Cmd - by yusei - 17.10.2012, 20:33
AW: Change Name Cmd - by Blackazur - 18.10.2012, 13:47
Re: Change Name Cmd - by gtakillerIV - 18.10.2012, 14:02
Re: Change Name Cmd - by Jarnu - 18.10.2012, 14:10
AW: Re: Change Name Cmd - by Blackazur - 18.10.2012, 17:37

Forum Jump:


Users browsing this thread: 1 Guest(s)