15.05.2012, 03:18
Me Dejan el comando /cambiarnombre?
gracias
gracias
if(strcmp(cmd, "/cambiarnombre", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new tmp[128];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, 0xB4B5B7FF, "Usa: /CambiarNombre [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;
}