16.09.2013, 00:13
Tente assim:
pawn Код:
stock ConfPing(playerid) {
new PING = GetPlayerPing(playerid);
new avalPing[11];
if(PING < 150) avalPing = "Excelente";
if(PING >= 150 && PING < 200) avalPing = "Muito bom";
if(PING >= 200 && PING < 220) avalPing = "Bom";
if(PING >= 220 && PING < 300) avalPing = "Normal";
if(PING >= 300 && PING < 350) avalPing = "Ruim";
if(PING >= 350) avalPing = "Pessimo";
return avalPing;
}
stock ConfFPS(playerid) {
new FPS = GetPlayerFPS(playerid);
new avalFPS[11];
if(FPS >= 0 && FPS < 15) avalFPS = "Pessimos";
if(FPS >= 15 && FPS < 24) avalFPS = "Ruim";
if(FPS >= 24 && FPS < 35) avalFPS = "Normal";
if(FPS >= 35 && FPS < 45) avalFPS = "Bom";
if(FPS >= 45 && FPS < 60) avalFPS = "Muito bom";
if(FPS >= 60) avalFPS = "Excelentes";
return avalFPS;
}