[REQUEST] command /adminname
#1

command /adminname can make nick name admin duty before, like Kurnia_Rocki was /aduty is kurniarocki
Reply
#2

pawn Код:
COMMAND:aname(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_WHITE, "{ff0000}[ERROR]{ffffff} You are not allowed to use this command");
    new aNameValue[125];
    if(sscanf(params, "s", aNameValue)) return SendClientMessage(playerid, COLOR_WHITE, "/aname [Admin name]");
    myStrcpy(PlayerInfo[playerid][aName], aNameValue);
    new stringaName[250];
    format(stringaName, sizeof(stringaName), "%s your Administrator name is now registered as: %s", PlayerName(playerid), aNameValue);
    SendClientMessage(playerid, stringaName);
    return 1;
}
Something simple
Reply
#3

Could you perhaps re-phrase what you would like the command to do? Be Able to set a different name when you /aduty?
Reply
#4

Quote:
Originally Posted by adammal
Посмотреть сообщение
Could you perhaps re-phrase what you would like the command to do? Be Able to set a different name when you /aduty?
yes, if dome admin was /aduty his change
I want to change name it
Reply
#5

Quote:
Originally Posted by Brandon_More
Посмотреть сообщение
pawn Код:
COMMAND:aname(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_WHITE, "{ff0000}[ERROR]{ffffff} You are not allowed to use this command");
    new aNameValue[125];
    if(sscanf(params, "s", aNameValue)) return SendClientMessage(playerid, COLOR_WHITE, "/aname [Admin name]");
    myStrcpy(PlayerInfo[playerid][aName], aNameValue);
    new stringaName[250];
    format(stringaName, sizeof(stringaName), "%s your Administrator name is now registered as: %s", PlayerName(playerid), aNameValue);
    SendClientMessage(playerid, stringaName);
    return 1;
}
Something simple
how to make it use dcmd
Reply
#6

dcmd_aname(playerid, params[])
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)