SA-MP Forums Archive
Crear Comando /Cambiarnombre - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: Crear Comando /Cambiarnombre (/showthread.php?tid=342790)



Crear Comando /Cambiarnombre - matias_villalba - 15.05.2012

Me Dejan el comando /cambiarnombre?
gracias


Respuesta: Crear Comando /Cambiarnombre - TiNcH010 - 15.05.2012

pawn Код:
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;
}



Respuesta: Crear Comando /Cambiarnombre - matias_villalba - 15.05.2012

Gracias !!


Respuesta: Crear Comando /Cambiarnombre - TheChaoz - 15.05.2012

Para realizar pedidos de scripts debes utilizar este topic.

Tema cerrado