03.05.2016, 17:19
Hello guys i have one question how need make tag like that [Admin]Name_Name: your text right new my write system is simple so how i should edit this?
My admin variable "AdminLevel" and "pInfo"
I was made it bat then just sending two message because my code was luck like this
I really know i do something wrong somehow i need clode the first and later check are him admin bat if i put these simbols { } or else:0 i just get a lot error so biggest problem i just dont know how need close and check again
Код:
if(team[playerid] == TEAM_HUMAN)
{
format(stringbig,sizeof(stringbig),"(%d): {FFFFFF}%s",playerid, text);
SendPlayerMessageToAll(playerid,stringbig);
}
I was made it bat then just sending two message because my code was luck like this
Код:
{
new string[150], name[MAX_PLAYER_NAME];
format(stringbig,sizeof(stringbig),"(%d): {FFFFFF}%s",playerid, text);
SendPlayerMessageToAll(playerid,stringbig);
if(IsPlayerAdmin(playerid)) //If they are an admin, you can replace this with your own admin variable
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
format(string,sizeof(string),"[ADMIN] %s: %s", name, text); //Editing the format and adding admin tag in front of name
SendClientMessageToAll(0xFFFF00FF, string); //Sends message to all

