[Ajuda] Errozinho aqui....
#1

mostra em cima da cabeзa dos player q й adm nao й sу dos admin

eu quero que mostre sу em cima da cabeзa do admin
pawn Код:
if(Informacoes[playerid][PlayerAdmin] < 3)
    {
    new Text3D:label = Create3DTextLabel("Olб sou admin do servidor \nPosso ajudar ?!", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
    Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
    }

public completa
Код:
public OnPlayerConnect(playerid)
{
    PlayAudioStreamForPlayer(playerid, "https://dl.dropbox.com/u/93019797/1.mp3.mp3");
    TextDrawShowForPlayer(playerid,drift);     //quando o player se conectar no server apareзerб as text drawns
    TextDrawShowForPlayer(playerid,dm);
    TextDrawShowForPlayer(playerid, Textdraw0);
    TextDrawShowForPlayer(playerid, Textdraw1);
    JaConvidou[playerid] = 0;
	EmSexo[playerid] = 0;
    SendDeathMessage(playerid, INVALID_PLAYER_ID, 200);
    GameTextForPlayer(playerid,"~b~Bem Vindo",5000,5); // MENSAGEM AO ENTRAR QUE NEM TEXTDRAW
	SendClientMessage(playerid, 0xFFFF00AA, ">> Seja Bem Vindo Ao Server<<"); // MENSAGEM AO ENTRAR
	if(Informacoes[playerid][PlayerAdmin] < 3)
	{
    new Text3D:label = Create3DTextLabel("Olб sou admin do servidor \nPosso ajudar ?!", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
    Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
    }
	new string[40];
	new pName[25];
	GetPlayerName(playerid, pName, sizeof(pName));
	format(string, sizeof(string), "%s Entrou no Servidor!", pName); // mensagem se alguem entrar
	SendClientMessageToAll(0xAAAAAAAA, string); // COR
	if(Informacoes[playerid][PlayerBanido] == 1) return Mensagem(playerid, RED, "Banido do Servidor Temporariбmente, Bye!"), Kick(playerid);
	if(DOF2_FileExists(PlayerArchive(playerid)))
	{
	    ShowPlayerDialog(playerid, LoginCase, DIALOG_STYLE_INPUT,"Logando no Servidor", "Bem Vindo Novamente\nLogue-se com Sua Senha do Registro","Logar","Cancelar");
 	}
 	else
 	{
 	    ShowPlayerDialog(playerid, RegisterCase, DIALOG_STYLE_INPUT,"Registrando no Servidor", "Bem Vindo ao Servidor\nDigite sua Senha Abaixo Para Registrar-se","Registrar","Cancelar");
 	}
	return 1;
}
Reply
#2

pawn Код:
if(Informacoes[playerid][PlayerAdmin] > 0)
Reply
#3

pawn Код:
if(Informacoes[playerid][PlayerAdmin] > 0)
Reply
#4

Quote:
Originally Posted by Don_Speed
Посмотреть сообщение
pawn Код:
if(Informacoes[playerid][PlayerAdmin] > 0)
irei testar obrigado
Reply
#5

https://sampforum.blast.hk/showthread.php?tid=362568

Praticamente mesma coisa '-'
Reply
#6

hehe gente o erro continua

pawn Код:
if(Informacoes[playerid][PlayerAdmin] > 0)
    {
    new Text3D:label = Create3DTextLabel("{0xFFFF00AA}Olб sou admin do servidor \nPosso ajudar ?!", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
    Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
    }
agora nao aparece na cabeзa de ninguem nem de player nem de admin
Reply
#7

pawn Код:
//topo
new Text3D:label[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
    label[playerid] = Create3DTextLabel("Olб sou admin do Servidor\nPosso ajudar ?", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
    return 1;
}

public OnPlayerUpdate(playerid)
{
    if(Informacoes[playerid][PlayerAdmin] >= 1)
    {
        Attach3DTextLabelToPlayer(label[playerid], playerid,  0.0, 0.0, 2.0);
    }
    return 1;
}
This forum requires that you wait 120 seconds between posts. Please try again in 46 seconds.
Reply
#8

Tenta assim
pawn Код:
//OnPlayerSpawn
SetTimer ( " DonSpeed " , 1000 , true ) ;
//Final do GM
forward DonSpeed(playerid);
public DonSpeed(playerid)
{
    if(Informacoes[playerid][PlayerAdmin] < 3)
    {
       new Text3D:label = Create3DTextLabel("Olб sou admin do servidor \nPosso ajudar ?!", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
       Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
    }
    else
    {
       Delete3DTextLabel ( playerid ) ;
       DeletePlayer3DTextLabel ( playerid ) ;
    }
    return true;
}
Reply
#9

Quote:
Originally Posted by Don_Speed
Посмотреть сообщение
Tenta assim
pawn Код:
//OnPlayerSpawn
SetTimer ( " DonSpeed " , 1000 , true ) ;
//Final do GM
forward DonSpeed(playerid);
public DonSpeed(playerid)
{
    if(Informacoes[playerid][PlayerAdmin] < 3)
    {
       new Text3D:label = Create3DTextLabel("Olб sou admin do servidor \nPosso ajudar ?!", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
       Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
    }
    else
    {
       Delete3DTextLabel ( playerid ) ;
       DeletePlayer3DTextLabel ( playerid ) ;
    }
    return true;
}
obrigado a todos que ajudaram consegui vlw's
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)