/setname command help
#9

pawn Код:
CMD:setname(playerid,params[])
{
    if(Info[playerid][Level] >= 2 || IsPlayerAdmin(playerid))
    {
        new id, name[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);
    } else return SendClientMessage(playerid,red,"Your Level Is Not High Enough To Use This Command");
    return 1;
}
Reply


Messages In This Thread
/setname command help - by CoNvErTeR - 18.07.2011, 11:41
Re: /setname command help - by SmileyForCheat - 18.07.2011, 11:42
Re: /setname command help - by CoNvErTeR - 18.07.2011, 11:44
Re: /setname command help - by Venice - 18.07.2011, 11:44
Re: /setname command help - by CoNvErTeR - 18.07.2011, 11:48
Re: /setname command help - by SmileyForCheat - 18.07.2011, 11:57
Re: /setname command help - by CoNvErTeR - 18.07.2011, 12:04
Re: /setname command help - by SmileyForCheat - 18.07.2011, 12:07
Re: /setname command help - by Laronic - 18.07.2011, 12:10
Re: /setname command help - by CoNvErTeR - 18.07.2011, 12:36

Forum Jump:


Users browsing this thread: 1 Guest(s)