10.10.2010, 14:43
pawn Код:
if(!strcmp("/changename", cmdtext, true, 11))
{
if(!cmdtext[11])return SendClientMessage(playerid, 0xFF0000FF, "USAGE: /changename [name]");
new str[128];
new getplayer[128];
GetPlayerName(playerid, str, sizeof(str));
format(str, sizeof(str), "[Name Change] %s Has change his name to %d", playerid, str);
SendClientMessageToAll(COLOR_ALERT, str);
SetPlayerName(playerid, getplayer);
return 1;
}