[Pedido] associar nome a cor
#1

Oi Galera. Necessito urgentemente de uns toques de programaзгo, eu queria que o player ao entrar no server, fosse reconhecido seu nome e queria que fosse associada uma cor ao seu nome. Sei que isso tem a ver com o OnPlayerConnect, ja tentei algumas coisas mas nao ta dando, e nao estou percebendo :$ ajudem por favor

Код:
	GetPlayerName(playerid, name, len);
	if (name == "[O.P.S]Netinho");
	{
		SetPlayerColor(playerid, COLOR_YELLOW);
	}
isso foi o qui tentei fazer

cumps
Reply
#2

PHP код:
    GetPlayerName(playeridnamesizeof(name));
    if(!
strcmp(name"[O.P.S]Netinho"true))
    {
      
SetPlayerColor(playeridCOLOR_YELLOW);
    } 
Reply
#3

nao deu :$
Reply
#4

Quote:
Originally Posted by ProKillerpa
Посмотреть сообщение
PHP код:
    GetPlayerName(playeridnamesizeof(name));
    if(!
strcmp(name"[O.P.S]Netinho"true))
    {
      
SetPlayerColor(playeridCOLOR_YELLOW);
    } 
Nгo sei usar muito bem strcmp, mas aquele "!" estб certo ?
Reply
#5

Estб sim!

Reply
#6

como й que defino o "name" entao?
Reply
#7

PHP код:
static name[MAX_PLAYER_NAME]; 
Reply
#8

~ta feito obrigado
Reply
#9

Quote:
Originally Posted by Netinho_the_killer
Посмотреть сообщение
~ta feito obrigado
Estamos aqui para isso
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)