SA-MP Forums Archive
[DUDA] Como ago para que cambie... - 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: [DUDA] Como ago para que cambie... (/showthread.php?tid=480371)



[DUDA/PEDIDO] Como ago para que cambie el nombre de la lista [TAB] ? - yesidpte - 10.12.2013

Hola buenas a todos, hoy vengo apreguntarles, como esque se hace para que cambie el nombre en la lista al presionar ''TAB'', yo tenia un FS de AFK, qe cambiaba eso, pero lo perdi al formatiar mi PC y no selo pude sacar xxD!
Me podrian porfavor pasar los codigos para cambiarlo please


Respuesta: [DUDA] Como ago para que cambie... - Jejox - 10.12.2013

Tanto te cuesta buscar en ******?

Sistema AFK


Respuesta: [DUDA] Como ago para que cambie... - Adoniiz - 10.12.2013

puedes usar https://sampwiki.blast.hk/wiki/SetPlayerName
y https://sampwiki.blast.hk/wiki/Format para que puedas anticiparle el [AFK] al nombre.


Respuesta: [DUDA] Como ago para que cambie... - OTACON - 10.12.2013

https://sampwiki.blast.hk/wiki/SetPlayerName
https://sampforum.blast.hk/showthread.php?tid=381125


Respuesta: [DUDA] Como ago para que cambie... - yesidpte - 10.12.2013

Entenndieron mal, soloe ntendio 1 -___-
el sistema AFK, solo era para saber como se hacer para meterle otro cosa al nombre ._.
Gracias alque respondio Bien!
Ejemplo:[LVL1]Destructor
Algoa si, Solo Es Para Metrle El [LVL] -_______-
AYUDA!


Respuesta: [DUDA] Como ago para que cambie... - yesidpte - 10.12.2013

Mucas Gracias Por No Ayudar En nada A Loos 3 El Codigo Era Este:

new string[256];
new sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid, Nombre, sizeof(Nombre));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "[LVL-3]%s", sendername);
SetPlayerName(playerid,string);


Respuesta: [DUDA] Como ago para que cambie... - OTACON - 10.12.2013

Quote:
Originally Posted by yesidpte
Посмотреть сообщение
Mucas Gracias Por No Ayudar En nada A Loos 3 El Codigo Era Este:

new string[256];
new sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid, Nombre, sizeof(Nombre));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "[LVL-3]%s", sendername);
SetPlayerName(playerid,string);
¬¬ y que estas usando en ese codigo? -_- , los 2 utilimos te dimos la respuesta.
saludos.



Respuesta: [DUDA] Como ago para que cambie... - MillerUTL - 10.12.2013

Quote:
Originally Posted by yesidpte
Посмотреть сообщение
Entenndieron mal, soloe ntendio 1 -___-
el sistema AFK, solo era para saber como se hacer para meterle otro cosa al nombre ._.
Gracias alque respondio Bien!
Ejemplo:[LVL1]Destructor
Algoa si, Solo Es Para Metrle El [LVL] -_______-
AYUDA!
Al parecer si entendieron solo tienes que pensar, te lo vuelvo a poner:

Quote:
Originally Posted by Adoniiz
Посмотреть сообщение
puedes usar https://sampwiki.blast.hk/wiki/SetPlayerName
y https://sampwiki.blast.hk/wiki/Format para que puedas anticiparle el [AFK] al nombre.



Respuesta: [DUDA] Como ago para que cambie... - OTACON - 10.12.2013

pawn Код:
#include <a_samp>
#include <zcmd> //https://sampforum.blast.hk/showthread.php?tid=91354
#include <sscanf2> //https://sampforum.blast.hk/showthread.php?tid=120356

COMMAND:cambiarnombre(playerid, params[]){
    new nombre[MAX_PLAYER_NAME+1], data[30];
    if(sscanf(params, "rs[24]d", params[0], params[1], params[2])) return SendClientMessage(playerid,-1,"INFO: Escribe: /cambiarnombre [id player] [nnmbre] [level]");
    if(params[0]==INVALID_PLAYER_ID) return SendClientMessage(playerid,-1,"INFO: El jugador Ingresado no se id valido!.");
    if(!IsPlayerConnected(params[0])) return SendClientMessage(playerid,-1,"INFO: El jugador Ingresado no se encuentra conectado!.");
    format(data,sizeof(data)"[LVL-%d]%s",params[2],params[1]);
    SetPlayerName(params[0], data);
    return true;
}



Respuesta: [DUDA] Como ago para que cambie... - yesidpte - 10.12.2013

Si Si Si Gracias A TODOS... Ya Termine!