Crear Comando /Cambiarnombre
#1

Me Dejan el comando /cambiarnombre?
gracias
Reply
#2

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;
}
Reply
#3

Gracias !!
Reply
#4

Para realizar pedidos de scripts debes utilizar este topic.

Tema cerrado
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)