[PEDIDO] tipo de conta do player em cima da cabeзa dele
#1

nao sei explica mto bem mais quero um fs sei la que apareзa o tipo de conta do player em cima da cabeзa dele exmplo VIP , normal , Administrador
obg
Reply
#2

Pesquisar nгo mata! https://sampwiki.blast.hk/wiki/Attach3DTextLabelToPlayer
Reply
#3

mais e so issu msm ?
Reply
#4

pesquisar nao mata o problema e saber colocar la do jeito que eli quer
Reply
#5

Simples...

Se for VIP.
pawn Code:
new Text3D:VIP[MAX_PLAYERS];
 
public OnPlayerConnect(playerid)
{
    if(PlayerInfo[i][pVIP] >=1)//Depende do seu GM o pVIP. Se usas o The Godfather, vai estar pDonaterRank
    {
    label[playerid] = Create3DTextLabel("VIP",0x008080FF,30.0,40.0,50.0,40.0,0);
    Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7);
    return 1;
    }
}
 
public OnPlayerDisconnect(playerid, reason)
{
    Delete3DTextLabel(VIP[playerid]);
    return 1;
}
Se for Normal.....
pawn Code:
new Text3D:Normal[MAX_PLAYERS];
 
public OnPlayerConnect(playerid)
{
    if(PlayerInfo[i][pVIP] == 0)
    {
    label[playerid] = Create3DTextLabel("Normal",0x008080FF,30.0,40.0,50.0,40.0,0);
    Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7);
    return 1;
    }
}
 
public OnPlayerDisconnect(playerid, reason)
{
    Delete3DTextLabel(Normal[playerid]);
    return 1;
}
Se for Administrador....
pawn Code:
new Text3D:Administrador[MAX_PLAYERS];
 
public OnPlayerConnect(playerid)
{
    if(PlayerInfo[i][pAdmin] >=1)//Depende do seu GM o tambйm.
    {
    label[playerid] = Create3DTextLabel("Administrador",0x008080FF,30.0,40.0,50.0,40.0,0);
    Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7);
    return 1;
    }
}
 
public OnPlayerDisconnect(playerid, reason)
{
    Delete3DTextLabel(Administrador[playerid]);
    return 1;
}
Eu nгo testei....
Reply
#6

No admin podia usar:
if (IsPlayerAdmin(playerid))
{ ....
Reply
#7

No caso, o Marco fez errado.

Code:
new Text3D:Normal[MAX_PLAYERS];
 
public OnPlayerConnect(playerid)
{
    if(PlayerInfo[i][pVIP] == 0)
    {
    Normal[playerid] = Create3DTextLabel("Normal",0x008080FF,30.0,40.0,50.0,40.0,0);
    Attach3DTextLabelToPlayer(Normal[playerid], playerid, 0.0, 0.0, 0.7);
    return 1;
    }
}
 
public OnPlayerDisconnect(playerid, reason)
{
    Delete3DTextLabel(Normal[playerid]);
    return 1;
}
O jeito que ele fez ele deixava o new Text3D:Normal[MAX_PLAYERS];, sу que usava o label ;*
Reply
#8

kkk, eh, errei ai, vlew andrй felipe ^~
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)