23.09.2014, 18:56
Tente:
pawn Код:
//====================================================================TAG's Admin
if(IsPlayerAdmin(playerid))//Rcon
{
format(string,256,"%s[PG]",PlayerName(playerid),string);
SetPlayerName(playerid,string);
}
if(!IsPlayerAdmin(playerid) && Stats[playerid][LEVELADMIN] == TEMPORARIO)//Temporario
{
format(string,256,"%s[PG]",PlayerName(playerid),string);
SetPlayerName(playerid,string);
}
if(!IsPlayerAdmin(playerid) && Stats[playerid][LEVELADMIN] == SUBMODERADOR)//SubModerador
{
format(string,256,"%s[PG]",PlayerName(playerid),string);
SetPlayerName(playerid,string);
}
if(!IsPlayerAdmin(playerid) && Stats[playerid][LEVELADMIN] == SUBADMIN)//SubAdmin
{
format(string,256,"%s[PG]",PlayerName(playerid),string);
SetPlayerName(playerid,string);
}
if(!IsPlayerAdmin(playerid) && Stats[playerid][LEVELADMIN] == ADMIN)//Admin
{
format(string,256,"%s[PG]",PlayerName(playerid),string);
SetPlayerName(playerid,string);
}
if(!IsPlayerAdmin(playerid) && Stats[playerid][LEVELADMIN] == SUPERADMIN)//SuperAdmin
{
format(string,256,"%s[PG]",PlayerName(playerid),string);
SetPlayerName(playerid,string);
}
if(!IsPlayerAdmin(playerid) && Stats[playerid][LEVELADMIN] == GM)//GM
{
format(string,256,"%s[PG]",PlayerName(playerid),string);
SetPlayerName(playerid,string);
}
if(!IsPlayerAdmin(playerid) && Stats[playerid][LEVELADMIN] == MODERADOR)//Moderador
{
format(string,256,"%s[PG]",PlayerName(playerid),string);
SetPlayerName(playerid,string);
}
//====================================================================TAG's Admin