[Ajuda] Mensagem na cabeзa do player VIP
#1

Tipo para colocar no /darvip ai o player vai da /vip e vai aparecer tipo uma mensagem na cabeзa dele verde mas ta dando uns erros alguem poderia me ajudar?

Quote:

if(!strcmp(cmdtext, "/vip", true))
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid][pDonateRank] ==1
{
SendClientMessage(playerid, COLOR_GREY, " Vocк precisa estar logado !");
return 1;
}
if(PlayerInfo[playerid][pDonateRank] ==1
{
if(AdminAfk[playerid] == 0)
{
AdminAfk[playerid] = 1;
SetPlayerArmour(playerid, 0);
SetPlayerHealth(playerid, 0);
SetPlayerColor(playerid,COLOR_GREEN);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "Colaborador : %s Entrou Online.", sendername);
ABroadCast(COLOR_GREEN,string,1);
Delete3DTextLabel(label[playerid]);
label[playerid] = Create3DTextLabel("%s Colaborador Oficial Evolution Life!",0x00D900C8,10.0,40.0,10.0,20.0,0);
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.4);

if(PlayerInfo[playerid][pDonateRank] ==1
{
}
return 1;
}
else if(AdminAfk[playerid] == 0)
{
AdminAfk[playerid] = 0;
SetPlayerArmour(playerid, 0);
SetPlayerHealth(playerid, 0);
SetPlayerColor(playerid,TEAM_HIT_COLOR);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "Colaborador : %s Entrou Online.", sendername);
ABroadCast(COLOR_GREEN,string,1);
Delete3DTextLabel(label[playerid]);
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Vocк nгo й um Colaborador !");
return 1;
}
}
return 1;
}

Reply
#2

pawn Код:
new Msg[60],Name[24];
    GetPlayerName(playerid,Name,24);
    format(Msg,sizeof(Msg),"%s й um jogador VIP.",Name);
    SetPlayerChatBubble(playerid,Msg,-1,100.0, 10000000);
Reply
#3

PHP код:
if(!strcmp(cmdtext"/vip"true))
{
    if(
IsPlayerConnected(playerid))
    {
        if(
gPlayerLogged[playerid] != 1)
        {
            
SendClientMessage(playeridCOLOR_GREY" Vocк precisa estar logado !");
            return 
1;
        }
        if(
PlayerInfo[playerid][pDonateRank] == 1)
        {
            if(
AdminAfk[playerid] == 0)
            {
                
AdminAfk[playerid] = 1;
                
SetPlayerArmour(playerid0);
                
SetPlayerHealth(playerid0);
                
SetPlayerColor(playerid,COLOR_GREEN);
                
GetPlayerName(playeridsendernamesizeof(sendername));
                
format(stringsizeof(string), "Colaborador : %s Entrou Online."sendername);
                
ABroadCast(COLOR_GREEN,string,1);
                
Delete3DTextLabel(label[playerid]);
                new 
str[100];
                
format(str100"%s Colaborador Oficial Evolution Life"sendername);
                
label[playerid] = Create3DTextLabel(str,0x00D900C8,10.0,40.0,10.0,20.0,0);
                
Attach3DTextLabelToPlayer(label[playerid], playerid0.00.00.4);
                return 
1;
            }
        }
        else
        {
            
SendClientMessage(playeridCOLOR_GREY" Vocк nгo й um Colaborador !");
        }
        return 
1;
    }
    return 
1;

#DUVIDA

Eu poderia colocar assim ?

PHP код:
Attach3DTextLabelToPlayer("EXEMPLO LERO LERO"playerid0.00.00.4); 
Reply
#4

Quote:
Originally Posted by Shadoww5
Посмотреть сообщение
PHP код:
if(!strcmp(cmdtext"/vip"true))
{
    if(
IsPlayerConnected(playerid))
    {
        if(
gPlayerLogged[playerid] != 1)
        {
            
SendClientMessage(playeridCOLOR_GREY" Vocк precisa estar logado !");
            return 
1;
        }
        if(
PlayerInfo[playerid][pDonateRank] == 1)
        {
            if(
AdminAfk[playerid] == 0)
            {
                
AdminAfk[playerid] = 1;
                
SetPlayerArmour(playerid0);
                
SetPlayerHealth(playerid0);
                
SetPlayerColor(playerid,COLOR_GREEN);
                
GetPlayerName(playeridsendernamesizeof(sendername));
                
format(stringsizeof(string), "Colaborador : %s Entrou Online."sendername);
                
ABroadCast(COLOR_GREEN,string,1);
                
Delete3DTextLabel(label[playerid]);
                new 
str[100];
                
format(str100"%s Colaborador Oficial Evolution Life"sendername);
                
label[playerid] = Create3DTextLabel(str,0x00D900C8,10.0,40.0,10.0,20.0,0);
                
Attach3DTextLabelToPlayer(label[playerid], playerid0.00.00.4);
                return 
1;
            }
        }
        else
        {
            
SendClientMessage(playeridCOLOR_GREY" Vocк nгo й um Colaborador !");
        }
        return 
1;
    }
    return 
1;

#DUVIDA

Eu poderia colocar assim ?

PHP код:
Attach3DTextLabelToPlayer("EXEMPLO LERO LERO"playerid0.00.00.4); 
playerid = id do player, isto й, se o id dele (por exemplo) for -1 serб branco,
mais seu cуdigo estб incorreto, use do strong ...
Reply
#5

Quote:
Originally Posted by TheGarfield
Посмотреть сообщение
playerid = id do player, isto й, se o id dele (por exemplo) for -1 serб branco,
mais seu cуdigo estб incorreto, use do strong ...
Han ? Pode explicar melhor ?
Reply
#6

Quote:
Originally Posted by Shadoww5
Посмотреть сообщение
Han ? Pode explicar melhor ?
https://sampwiki.blast.hk/wiki/Attach3DTextLabelToPlayer
Reply
#7

Eh eu sei ! Eu ja procurei como que estava lб, mas eu queria saber se eu poderia colocar assim:

Код:
Attach3DTextLabelToPlayer("EXEMPLO LERO LERO", playerid, 0.0, 0.0, 0.4);
Caso nгo, por que ?
Reply
#8

Attach = Ataque

pawn Код:
Attach3DTextLabelToPlayer(Create3DTextLabel(str,0x00D900C8,10.0,40.0,10.0,20.0,0), playerid, 0.0, 0.0, 0.4);
pode fazer assim ...

mais com "EXEMPLO LERO LERO" nгo.
Reply
#9

Ok. Mas attach significa ANEXAR e nгo atacar.

Atacar em inglкs й attack.
Reply
#10

Quote:
Originally Posted by Shadoww5
Посмотреть сообщение
Ok. Mas attach significa ANEXAR e nгo atacar.

Atacar em inglкs й attack.
quer ter aula de inglкs ou aula de pawn -q


to meio bebado entгo vale tudo!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)