[Ajuda] como colocar a Tag "Administrador(a)" em cima da cabeça do admin
#1

oi gente, tinha feito um topico igual este semana passada, n consegui, estou fazendo outtro, e tipo, n tem como coloca a tag na cabeça do admin, eu ja tentei, mais nao aparece... alguem me ajuda?

minhas variaveis:
pAdmin == 1 até 5
Reply
#2

@EDIT:
Me passa o cуdigo q tu ta usando .
Reply
#3

Aqui parça.... ( Exemplo eu uso esse ai, mais eu logo-relogo, e n aparece em cima do adm !

PHP код:
{
    if(
pAdmin[playerid] >= 4)
    {
        new
            
PlayerText3D:AdminTexto,
            
Float:PosX,
            
Float:PosY,
            
Float:PosZ;
        
GetPlayerPos(playeridPosXPosYPosZ);
        
AdminTexto CreatePlayer3DTextLabel(playerid"Administrador(a)"0x16EB43FFPosXPosYPosZ40.0);
        
Attach3DTextLabelToPlayer(AdminTextoplayerid0.00.00.7);
        return 
true;
    }
    return 
true;

Reply
#4

OnplayerConnect
Код:
if(pAdmin[playerid] >= 1) /* verificao level admin */
{
    new Text3D:label = CreatePlayer3DTextLabel("Administrador(a)", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
    Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
    return 1;
}
https://sampwiki.blast.hk/wiki/Attach3DTextLabelToPlayer
Reply
#5

Amigo, deu esses erros aqui :S

PHP код:
C:\Users\Jonathan\Desktop\New Virtual Life\pawno\include\antibot.inc(84) : warning 219local variable "pName" shadows a variable at a preceding level
C
:\Users\Jonathan\Desktop\New Virtual Life\gamemodes\NVLRPG.pwn(4138) : error 035argument type mismatch (argument 1)
C:\Users\Jonathan\Desktop\New Virtual Life\gamemodes\NVLRPG.pwn(4138) : warning 213tag mismatch
C
:\Users\Jonathan\Desktop\New Virtual Life\gamemodes\NVLRPG.pwn(4145) : error 035argument type mismatch (argument 1)
C:\Users\Jonathan\Desktop\New Virtual Life\gamemodes\NVLRPG.pwn(4145) : warning 213tag mismatch
C
:\Users\Jonathan\Desktop\New Virtual Life\gamemodes\NVLRPG.pwn(4152) : error 035argument type mismatch (argument 1)
C:\Users\Jonathan\Desktop\New Virtual Life\gamemodes\NVLRPG.pwn(4152) : warning 213tag mismatch
C
:\Users\Jonathan\Desktop\New Virtual Life\gamemodes\NVLRPG.pwn(7069) : warning 219local variable "pName" shadows a variable at a preceding level
C
:\Users\Jonathan\Desktop\New Virtual Life\gamemodes\NVLRPG.pwn(7073) : warning 211possibly unintended assignment
C
:\Users\Jonathan\Desktop\New Virtual Life\gamemodes\NVLRPG.pwn(12586) : warning 219local variable "pName" shadows a variable at a preceding level
C
:\Users\Jonathan\Desktop\New Virtual Life\gamemodes\NVLRPG.pwn(28789) : warning 219local variable "anim" shadows a variable at a preceding level
C
:\Users\Jonathan\Desktop\New Virtual Life\gamemodes\NVLRPG.pwn(28795) : warning 219local variable "anim" shadows a variable at a preceding level
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
3 Errors

Obs. Os ultimos 5 Warnings ja tava rs
Reply
#6

nгo sei entгo
Reply
#7

Esse erro aki veio que deu !

Quote:

C:\Users\Jonathan\Desktop\New Virtual Life\gamemodes\NVLRPG.pwn(413 : error 035: argument type mismatch (argument 1)
C:\Users\Jonathan\Desktop\New Virtual Life\gamemodes\NVLRPG.pwn(413 : warning 213: tag mismatch

Reply
#8

alguem?
Reply
#9

Mano, testei o cуdigo e deu certo, tem certeza que a linha 413 й esse cуdigo ?
Ou entгo que a variavel admin chama-se Admin ?
Reply
#10

cara tipo, eu to colocando em OnPlayerConnect (No finalzinho), é aki mesmo neh?
Reply


Forum Jump:


Users browsing this thread: 7 Guest(s)