#1

Queria que ficasse assim [TAG]FULANO ,e ta assim zuado ta assim Fulano[TAG]

PHP код:
  new string[164];
        
format(string,sizeof(string),"[{"#COR_TAG"}%s{FFFF00}]%s -(%i): %s",pName(playerid),PlayerTag[playerid],playerid,text);
        
SendClientMessageToAll(GetPlayerColor(playerid), string);
        return 
0
Reply
#2

Quote:

new string[164];
format(string,sizeof(string),"[{"#COR_TAG"}%s{FFFF00}]%s -(%i): %s",PlayerTag[playerid], pName(playerid), playerid, text);
SendClientMessageToAll(GetPlayerColor(playerid), string);
return 0;

Vocк precisa mudar o local da Funзгo do Nome do Jogador, como Tambйm as demais, caso deseja mudar o Modelo !
Reply
#3

OnPlayerText
PHP код:
public OnPlayerText(playeridtext[])
{
    new 
string[256], playerName[24];
    
GetPlayerName(playeridplayerName24);
    new 
aname[MAX_PLAYER_NAME];
    
GetPlayerName(playeridanameMAX_PLAYER_NAME);
    
format(filesizeof(file), PASTA_CONTASaname); 
a Tag, ai voce meche como quiser
PHP код:
    //TAG Staff
    
if(pAdmin[playerid] == 5){ // Sua variavel de admin
    
format(stringsizeof(string), "%s{FFFFFF}[%d][{328E0A}Staff{FFFFFF}]{FFFFFF}: %s"playerNameplayeridtext);
    
ProxDetector(30.0playeridstringGetPlayerColor(playerid), GetPlayerColor(playerid), GetPlayerColor(playerid), GetPlayerColor(playerid), GetPlayerColor(playerid));
    return 
false;
    } 
Para evitar erros
PHP код:
forward ProxDetector(Float:radiplayeridstring[], col1col2col3col4col5);
public 
ProxDetector(Float:radiplayeridstring[], col1col2col3col4col5)
{
    if(
IsPlayerConnected(playerid)) {
        new 
Float:posxFloat:posyFloat:posz;
        new 
Float:oldposxFloat:oldposyFloat:oldposz;
        new 
Float:tempposxFloat:tempposyFloat:tempposz;
        
GetPlayerPos(playeridoldposxoldposyoldposz);
        for(new 
0MAX_PLAYERSi++) {
            if(
IsPlayerConnected(i)) {
                
GetPlayerPos(iposxposyposz);
                
tempposx = (oldposx -posx);
                
tempposy = (oldposy -posy);
                
tempposz = (oldposz -posz);
                if (((
tempposx radi/16) && (tempposx > -radi/16)) && ((tempposy radi/16) && (tempposy > -radi/16)) && ((tempposz radi/16) && (tempposz > -radi/16))) {
                    
SendClientMessage(icol1string);
                }
                else if (((
tempposx radi/8) && (tempposx > -radi/8)) && ((tempposy radi/8) && (tempposy > -radi/8)) && ((tempposz radi/8) && (tempposz > -radi/8))) {
                    
SendClientMessage(icol2string);
                }
                else if (((
tempposx radi/4) && (tempposx > -radi/4)) && ((tempposy radi/4) && (tempposy > -radi/4)) && ((tempposz radi/4) && (tempposz > -radi/4))) {
                    
SendClientMessage(icol3string);
                }
                else if (((
tempposx radi/2) && (tempposx > -radi/2)) && ((tempposy radi/2) && (tempposy > -radi/2)) && ((tempposz radi/2) && (tempposz > -radi/2))) {
                    
SendClientMessage(icol4string);
                }
                else if (((
tempposx radi) && (tempposx > -radi)) && ((tempposy radi) && (tempposy > -radi)) && ((tempposz radi) && (tempposz > -radi))) {
                    
SendClientMessage(icol5string);
                }
            }
        }
    }
    return 
1;

O ProxDetector й chat perto, essa funзгo ira desabilitar seu chat global '-'

Espero ter ajudado Certo
Reply
#4

Tipo esse codigo Php q eu mandei ja tem cmd q e de setar tag - ai so queria ageita ela corretamente
[TAG]NICKNAME
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)