[DUDA] Como ago para que cambie...
#1

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
Reply
#2

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

Sistema AFK
Reply
#3

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

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

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!
Reply
#6

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);
Reply
#7

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.
Reply
#8

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.
Reply
#9

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)