Esqueci de um detalhe.
PHP Code:
if(aInfo[playerid][Ajudante] == 1)
{
new stringv[128], Float:Pos[3];
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid,pname,sizeof(pname));
format(stringv, sizeof(stringv), "%s{FFFFFF}:[%d] [{FFFF00}Ajudante{FFFFFF}]{FFFFFF} %s",pname,playerid,text);
for(new i; i != GetMaxPlayers(); i++)
{
if(IsPlayerInRangeOfPoint(i, 20.0, Pos[0], Pos[1], Pos[2]))
{
SendClientMessage(i, GetPlayerColor(playerid), stringv);
}
}
return 0;
}
if(aInfo[playerid][Moderador] == 1)
{
new stringv[128], Float:Pos[3];
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid,pname,sizeof(pname));
format(stringv, sizeof(stringv), "%s{FFFFFF}:[%d] [{FF8C00}Mod{FFFFFF}]{FFFFFF} %s",pname,playerid,text);
for(new i; i != GetMaxPlayers(); i++)
{
if(IsPlayerInRangeOfPoint(i, 20.0, Pos[0], Pos[1], Pos[2]))
{
SendClientMessage(i, GetPlayerColor(playerid), stringv);
}
}
return 0;
}
if(aInfo[playerid][Admin] == 1)
{
new stringv[128], Float:Pos[3];
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid,pname,sizeof(pname));
format(stringv, sizeof(stringv), "%s{FFFFFF}:[%d] [{00FF40}Admin{FFFFFF}]{FFFFFF} %s",pname,playerid,text);
for(new i; i != GetMaxPlayers(); i++)
{
if(IsPlayerInRangeOfPoint(i, 20.0, Pos[0], Pos[1], Pos[2]))
{
SendClientMessage(i, GetPlayerColor(playerid), stringv);
}
}
return 0;
}
if(aInfo[playerid][Subdono] == 1)
{
new stringv[128], Float:Pos[3];
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid,pname,sizeof(pname));
format(stringv, sizeof(stringv), "%s{FFFFFF}:[%d] [{AA00F2}Sub-Dono{FFFFFF}]{FFFFFF} %s",pname,playerid,text);
for(new i; i != GetMaxPlayers(); i++)
{
if(IsPlayerInRangeOfPoint(i, 20.0, Pos[0], Pos[1], Pos[2]))
{
SendClientMessage(i, GetPlayerColor(playerid), stringv);
}
}
return 0;
}
if(aInfo[playerid][AdminL] == 1)
{
new stringv[128], Float:Pos[3];
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid,pname,sizeof(pname));
format(stringv, sizeof(stringv), "%s{FFFFFF}:[%d] [{32CD32}Staff{FFFFFF}]{FFFFFF} %s",pname,playerid,text);
for(new i; i != GetMaxPlayers(); i++)
{
if(IsPlayerInRangeOfPoint(i, 20.0, Pos[0], Pos[1], Pos[2]))
{
SendClientMessage(i, GetPlayerColor(playerid), stringv);
}
}
return 0;
}
if(BMO_GetInt(afile,"VIP") == 1)
{
new stringv[128], Float:Pos[3];
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid,pname,sizeof(pname));
format(stringv, sizeof(stringv), "%s{FFFFFF}:[%d] {00FF00}[{FF0000}VIP{00FF00}]{00FFFF} %s",pname,playerid,text);
for(new i; i != GetMaxPlayers(); i++)
{
if(IsPlayerInRangeOfPoint(i, 20.0, Pos[0], Pos[1], Pos[2]))
{
SendClientMessage(i, GetPlayerColor(playerid), stringv);
}
}
return 0;
}