/changename /clearchat cmds
#10

Quote:
Originally Posted by Notis123
Посмотреть сообщение
OMFG then every play would change another player name without being admin duuuuuuuuuh
Mastermids those days
No he want it for admins only as Normal people do.
I know a few server's that allows every player to change their name thats why I'm asking.

pawn Код:
CMD:changename(playerid, params[])
{
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,-1,"You are not an admin!");
    new pID, pOldName[MAX_PLAYER_NAME], pNewName[MAX_PLAYER_NAME], string[128];
    if(sscanf(params, "us[24]", pID, pNewName)) return SendClientMessage(playerid,-1, "Usage: /changename ID NewName");
    GetPlayerName(pID,pOldName,sizeof(pOldName));
    SetPlayerName(pID,pNewName);
    format(string, sizeof(string), "You have set %s(%d) name to: %s", pOldName, pID, pNewName);
    SendClientMessage(playerid, -1, string);
    return 1;
}
Notice: The code above is not tested but it should work.
Reply


Messages In This Thread
/changename /clearchat cmds - by diego_p11 - 29.12.2011, 21:22
Re: /changename /clearchat cmds - by Notis123 - 29.12.2011, 21:44
Re: /changename /clearchat cmds - by SpiderWalk - 29.12.2011, 21:47
Re: /changename /clearchat cmds - by Notis123 - 29.12.2011, 21:51
Re: /changename /clearchat cmds - by SpiderWalk - 29.12.2011, 21:52
Re: /changename /clearchat cmds - by Notis123 - 29.12.2011, 21:56
Re: /changename /clearchat cmds - by Fj0rtizFredde - 29.12.2011, 21:56
Re: /changename /clearchat cmds - by Notis123 - 29.12.2011, 21:58
Re: /changename /clearchat cmds - by SpiderWalk - 29.12.2011, 22:01
Re: /changename /clearchat cmds - by Fj0rtizFredde - 29.12.2011, 22:14

Forum Jump:


Users browsing this thread: 1 Guest(s)