[Ajuda] Como colocar a Tag "Administrador" em cima da cabeзa do admin
#1

Bom Dia/Tarde/Noite galera do forum... Tudo bem? Espero que sim. Galera tipo, eu queria colocar tipo um Text Draw em cima da cabeзa do admin(Acho q й uma profissгo algo assim q sу admin tem) , mais sу na cabeзa do admin, ai mostra q ele й administrador... espero que me ajudem.
(Ajudou = +Rep) (Tentou ajudar = +Rep) Obrigado.
Reply
#2

pawn Код:
public OnPlayerConnect(playerid)
{
    if(pAdmin[playerid] > 1)
    {
        new
            PlayerText3D:AdminTexto,
            Float:PosX,
            Float:PosY,
            Float:PosZ;

        GetPlayerPos(playerid, PosX, PosY, PosZ);
        AdminTexto = CreatePlayer3DTextLabel(playerid, "Administrador", 0xFFF000AA, PosX, PosY, PosZ, 40.0);
        Attach3DTextLabelToPlayer(AdminTexto, playerid, 0.0, 0.0, 0.7);

        return true;
    }
    return true;
}
Reply
#3

Olб Array, obrigado por dar atenзгo na minha ajuda . Eu tentei , coloquei mais ai o pawn parou de funcionar...
Mais esse ai o TextDraw "Administrador(a)" vai ficar na cabeзa no admin neh?

Minha variбvel:
PHP код:
if(pAdmin[playerid] == || pAdmin[playerid] == || pAdmin[playerid] == || pAdmin[playerid] == || pAdmin[playerid] == 5)
        { 
Reply
#4

Й sim.
Reply
#5

Tenta sу arrumar o Code do Array
pawn Код:
public OnPlayerConnect(playerid)
{
    if(pAdmin[playerid] > 1)
    {
        new
            AdminTexto,
            Float:PosX,
            Float:PosY,
            Float:PosZ;

        GetPlayerPos(playerid, PosX, PosY, PosZ);
        AdminTexto = CreatePlayer3DTextLabel(playerid, "Administrador", 0xFFF000AA, PosX, PosY, PosZ, 40.0);
        Attach3DTextLabelToPlayer(AdminTexto, playerid, 0.0, 0.0, 0.7);

        return true;
    }
    return true;
}
Reply
#6

Quote:
Originally Posted by -Don Corleone
Посмотреть сообщение
Tenta sу arrumar o Code do Array
pawn Код:
public OnPlayerConnect(playerid)
{
    if(pAdmin[playerid] > 1)
    {
        new
            AdminTexto,
            Float:PosX,
            Float:PosY,
            Float:PosZ;

        GetPlayerPos(playerid, PosX, PosY, PosZ);
        AdminTexto = CreatePlayer3DTextLabel(playerid, "Administrador", 0xFFF000AA, PosX, PosY, PosZ, 40.0);
        Attach3DTextLabelToPlayer(AdminTexto, playerid, 0.0, 0.0, 0.7);

        return true;
    }
    return true;
}
pawn Код:
if(pAdmin[playerid] >= 1 || pAdmin[playerid] <= 5)
Reply
#7

pawn Код:
new AdminTexto[MAX_PLAYERS];

    { Usa quando o jogador logar no servidor & destrуi quando ele sair do servidor  }
   
    if(pAdmin[playerid])
    {
        new
            Float:PosX,
            Float:PosY,
            Float:PosZ;

        GetPlayerPos(playerid, PosX, PosY, PosZ);
        AdminTexto[playerid] = CreatePlayer3DTextLabel(playerid, "Administrador", 0xFFF000AA, PosX, PosY, PosZ, 40.0);
        Attach3DTextLabelToPlayer(AdminTexto[playerid], playerid, 0.0, 0.0, 0.7);

    }
Reply
#8

Obrigado a todoss, fiquei feliz de vcs tentarem,me ajudar . Entao vo pra escola agora cedo, qndo eu volta ai eu texto e posto aki se deu ou n todos vao ganhar +rep por ajuda obrigado mesmo
Reply
#9

Deu esses errinhos :S

Quote:

C:\Users\Jonathan\Desktop\(84) : warning 219: local variable "pName" shadows a variable at a preceding level
C:\Users\Jonathan\Desktop\New Virtual Life\gamemodes\NVLRPG.pwn(3702) : error 055: start of function body without function header
C:\Users\Jonathan\Desktop\(3703) : error 010: invalid function or declaration
C:\Users\Jonathan\Desktop\(3710) : error 021: symbol already defined: "GetPlayerPos"
C:\Users\Jonathan\Desktop\(3714) : error 054: unmatched closing brace ("}")
C:\Users\Jonathan\Desktop\New Virtual Life\gamemodes\NVLRPG.pwn(7044) : warning 219: local variable "pName" shadows a variable at a preceding level
C:\Users\Jonathan\Desktop\(12560) : warning 219: local variable "pName" shadows a variable at a preceding level
C:\Users\Jonathan\Desktop\(2874 : warning 219: local variable "anim" shadows a variable at a preceding level
C:\Users\Jonathan\Desktop\New Virtual Life\gamemodes\NVLRPG.pwn(28754) : warning 219: local variable "anim" shadows a variable at a preceding level
C:\Users\Jonathan\Desktop\(2993 : warning 203: symbol is never used: "PosX"
C:\Users\Jonathan\Desktop\(2993 : warning 203: symbol is never used: "PosY"
C:\Users\Jonathan\Desktop\(2993 : warning 203: symbol is never used: "PosZ"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

alguem me ajuda?
Reply
#10

Quote:

if(pAdmin[playerid] >= 1 || pAdmin[playerid] <= 5)

Hгa? '-' "pAdmin[playerid] >= 1" jб basta nй fi? e "<= 5" darб direito a todos os usuбrios...

ON TOPIC: Vocк deve ter esquecido de abrir/fechar alguma chave...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)