31.08.2011, 20:30
pawn Код:
if(strcmp(cmd, "/nombre", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new tmp[128];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, 0xB4B5B7FF, "Usa: /Nombre [nombre]");
return 1;
}
SetPlayerName(playerid, tmp);
new strmsg[128];
format(strmsg,128,"Nombre cambiado satistactoriamente a {FFFFFF}%s",tmp);
SendClientMessage(playerid, 0xFF8C00FF, strmsg);
}
return 1;
}