Making TAG Admin,Vip tag front the name without ONPLAYERTEXT
#9

I have one problem i made me code with GetPlayerColor function and i got this bug with duplicate message.
https://s15.postimg.org/62nh57xtn/wtf.png
There me code
Код:
    new string[128], name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));

    if(pInfo[playerid][pAdminLevel])
   	format(string,sizeof(string),"{993300}[ADMIN] {%06x}%s {FFFFFF}[%i]: {FFFFFF}%s", GetPlayerColor(playerid) >>> 8, name, playerid, text);
    else if(pInfo[playerid][pVipLevel])
    format(string,sizeof(string),"{FF6600}[DONATOR] {%06x}%s {FFFFFF}[%i]: {FFFFFF}%s", GetPlayerColor(playerid) >>> 8, name, playerid, text);
    else
    format(string,sizeof(string),"%s {FFFFFF}[%i]: {FFFFFF}%s", name, playerid, text);

    SendClientMessageToAll(GetPlayerColor(playerid), string);
    return 0;
}
Help guys fix this duplicate msg
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)