02.03.2013, 22:44
Alright guys so heres the deal when a player join and selects a team his team color is fine but even him being a normal players makes him have the [Admin][playername]: prefix I dont get it if someone could take a look at the code Id love it.
Код:
if(PlayerInfo[playerid][pAdmin] >= 1)
if(gTeam[playerid] == TEAM_MEXICANS)
{
new pName[MAX_PLAYER_NAME], String[175];
GetPlayerName(playerid, pName, 24);
format(String, sizeof(String), "{FFFFFF}[{99FF00}Admin{FFFFFF}] {F5E618}%s:{FFFFFF} %s", pName, text);
SendClientMessageToAll(-1,String);
return 0;
}
if(PlayerInfo[playerid][pAdmin] >= 1)
if(gTeam[playerid] == TEAM_BIKER)
{
new pName[MAX_PLAYER_NAME], String[175];
GetPlayerName(playerid, pName, 24);
format(String, sizeof(String), "{FFFFFF}[{99FF00}Admin{FFFFFF}] {BFC0C2}%s:{FFFFFF} %s", pName, text);
SendClientMessageToAll(-1,String);
return 0;
}
if(PlayerInfo[playerid][pAdmin] >= 1)
if(gTeam[playerid] == TEAM_MAFIA)
{
new pName[MAX_PLAYER_NAME], String[175];
GetPlayerName(playerid, pName, 24);
format(String, sizeof(String), "{FFFFFF}[{99FF00}Admin{FFFFFF}] {800080}%s:{FFFFFF} %s", pName, text);
SendClientMessageToAll(-1,String);
return 0;
}
if(PlayerInfo[playerid][pAdmin] >= 1)
if(gTeam[playerid] == TEAM_YAKUZA)
{
new pName[MAX_PLAYER_NAME], String[175];
GetPlayerName(playerid, pName, 24);
format(String, sizeof(String), "{FFFFFF}[{99FF00}Admin{FFFFFF}] {AA3333}%s:{FFFFFF} %s", pName, text);
SendClientMessageToAll(-1,String);
return 0;
}
if(PlayerInfo[playerid][pAdmin] >= 1)
if(gTeam[playerid] == TEAM_HOMELESS)
{
new pName[MAX_PLAYER_NAME], String[175];
GetPlayerName(playerid, pName, 24);
format(String, sizeof(String), "{FFFFFF}[{99FF00}Admin{FFFFFF}] {33AA33}%s:{FFFFFF} %s", pName, text);
SendClientMessageToAll(-1,String);
return 0;
}

