SA-MP Forums Archive
[ayuda] Necesito ayuda [porfavor] - 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: [ayuda] Necesito ayuda [porfavor] (/showthread.php?tid=229548)



[ayuda] Necesito ayuda [porfavor] - crosas1234 - 21.02.2011

HOLA


Pues quisiera ver si alguien me ayuda o tiene lo que necesito pues como soy el dueсo de un sv quisiera que en mi nick dijiera[admin dueсo]******** <----- el nombre y [admin scripter] etc..


y yo soy un noob con esto de pawno no se nada ya que algunos de ustedes son expertos les pido ayuda


Respuesta: [ayuda] Necesito ayuda [porfavor] - Lunnatiicz - 21.02.2011

Tan sуlo cuando vallas a entrar al servidor cambiate el nombre, es mejor no crees?


Re: [ayuda] Necesito ayuda [porfavor] - murdoxix - 22.02.2011

Pero para que quieres que diga eso? Quedarнa muy largo el nombre, pone un comando /admins o algo asн que diga todos los admins con sus respectivos level de admin.


Respuesta: [ayuda] Necesito ayuda [porfavor] - Lunnatiicz - 22.02.2011

Tendrб sus razones, quizбs quiere que sepan que el es el creador, puedes utilizar un comando como /crйditos para mostrar el creador, asн de simple, y mezclate entre todos (':


Respuesta: [ayuda] Necesito ayuda [porfavor] - TheChaoz - 23.02.2011

bueno yo te voy a dar lo que pedis en codigo, pero el nick tiene que ser identico con mayusculas/minusculas o fallara.

pawn Код:
public OnPlayerConnect(playerid)
{
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, MAX_PLAYER_NAME);
    if(!srcmp(name, "tu_nick", false)){
        new str[MAX_PLAYER_NAME+13];
        format(str, sizeof(str), "[admin dueсo]%s", name);
        SetPlayerName(playerid, str);
    }
    return 1;
}



Respuesta: [ayuda] Necesito ayuda [porfavor] - Lunnatiicz - 10.03.2011

Creo que Chaoz te ah dado la soluciуn e.e


Respuesta: [ayuda] Necesito ayuda [porfavor] - TheChaoz - 11.03.2011

Quote:
Originally Posted by Lunnatiicz
Посмотреть сообщение
Creo que Chaoz te ah dado la soluciуn e.e
no revivas post locura.


Respuesta: [ayuda] Necesito ayuda [porfavor] - Lunnatiicz - 11.03.2011

Quote:
Originally Posted by the_chaoz
Посмотреть сообщение
no revivas post locura.
Asdsa ni cuenta de la fecha, el sujeto me pidio que lo ayudarб por mp y vi que habнas respondido LOL

Sorry xD Saludos!


Respuesta: [ayuda] Necesito ayuda [porfavor] - leaNN! - 11.03.2011

Chaoz, tu codigo no funcionara ya que no se puede tener espacios en el nombre.
O eso creo xD

Acabo de notar un error en el codigo. Pusiste "srcmp" en vez de "strcmp".

pawn Код:
public OnPlayerConnect(playerid)
{
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, MAX_PLAYER_NAME);
    if(!strcmp(name, "tu_nick", false)){
        new str[MAX_PLAYER_NAME+13];
        format(str, sizeof(str), "[admin.dueсo]%s", name);
        SetPlayerName(playerid, str);
    }
    return 1;
}
Asi si funcionara.
PD: Reemplaze el " " por un ".", ya que no estaba seguro de que funcionase de la otra forma.


Respuesta: [ayuda] Necesito ayuda [porfavor] - SuperMarioRol - 11.03.2011

Mejor un guiуn, їNo?