18.12.2016, 13:45
Hello so i have one issue, bat its not big deal. Bat i want to be better so me name tag doesn't shows together like
If your admin you have tag like this
[A]Player_Name:blablabla
If your vip its shows like this
[VIP]Player_Name:blablabla
So problem is, if i have admin and vip together its shows only one tag, that tag is admin so i only have [A] tag, bat i want shows them together
So its should be
[A][VIP]Player_Name:blablabla
Me code:
If your admin you have tag like this
[A]Player_Name:blablabla
If your vip its shows like this
[VIP]Player_Name:blablabla
So problem is, if i have admin and vip together its shows only one tag, that tag is admin so i only have [A] tag, bat i want shows them together
So its should be
[A][VIP]Player_Name:blablabla
Me code:
Код:
if(pInfo[playerid][pAdminLevel] > 0) { format(string, sizeof(string), "{ff0000}(M) {%06x}%s {FFFFFF}[%i]: {FFFFFF}%s", GetPlayerColor(playerid) >>> 8, name, playerid, text); } else if(pInfo[playerid][pVipLevel] > 0) { format(string, sizeof(string), "{cc6600}(VIP) {%06x}%s {FFFFFF}[%i]: {FFFFFF}%s", GetPlayerColor(playerid) >>> 8, name, playerid, text); } else { format(string,sizeof(string),"{%06x}%s {FFFFFF}[%i]: {FFFFFF}%s", GetPlayerColor(playerid) >>> 8, name, playerid, text); } SendClientMessageToAll(GetPlayerColor(playerid), string); return 0; }