How to make change name ?
#6

Код:
COMMAND:changename(playerid,params[])
{
    new OtherPlayer12, Msg12[170], Name12[24], Message12[150], OtherPlayerName12[24];
    SendAdminText(playerid,"/changename", params);
    if (APlayerData[playerid][PlayerLevel] < 5) return SendClientMessage(playerid, 0xFFFFFFFF, "[ERROR]: You don't have access!");
    else if(sscanf(params, "rs[170]", OtherPlayer12, Message12)) return SendClientMessage(playerid,0xFFFFFFFF, "SYNTAX: /changename <name/id> <newname>");
    GetPlayerName(playerid, Name12, sizeof(Name12));
    GetPlayerName(OtherPlayer12, OtherPlayerName12, sizeof(OtherPlayerName12));
    format(Msg12, sizeof(Msg12), "{FF6600}%s {FFFFFF}has changed {FF6600}%s {FFFFFF}his name to: {FF6600}%s", Name12, OtherPlayerName12, Message12);
    SendClientMessageToAll(0xFFFFFFFF, Msg12);
    SetPlayerName(OtherPlayer12, Message12);
    return 1;
}
Well, I can not help much seeming you did not go into detail about what you are using (zcmd, etc...) anyways hope this can help you. You will need to define the things in it and etc.
Reply


Messages In This Thread
How to make change name ? - by Broker - 12.04.2013, 09:00
Re: How to make change name ? - by Giroud12 - 12.04.2013, 09:19
Re: How to make change name ? - by Broker - 13.04.2013, 00:40
Re: How to make change name ? - by Giroud12 - 13.04.2013, 00:47
Re: How to make change name ? - by Broker - 13.04.2013, 00:47
Re: How to make change name ? - by JacobSanchez - 13.04.2013, 00:49
Re: How to make change name ? - by Giroud12 - 13.04.2013, 00:51

Forum Jump:


Users browsing this thread: 1 Guest(s)