07.08.2010, 14:17
Valeeu jaa consegui resolver o problema veja o problema
pawn Код:
forward TimerPing();
public TimerPing()
{
for(new g=0;g<=MAX_PLAYERS;g++) {
if(IsPlayerConnected(g)) {
new ping=GetPlayerPing(g);
if(ping>=20&&ping<100) {
TextDrawShowForPlayer(g, InfoPing1);
TextDrawHideForPlayer(g, InfoPing2);
TextDrawHideForPlayer(g, InfoPing3);
}
if(ping>=100&&ping<300) {
TextDrawShowForPlayer(g, InfoPing2);
TextDrawHideForPlayer(g, InfoPing1);
TextDrawHideForPlayer(g, InfoPing3);
}
if(ping>=300) {
TextDrawShowForPlayer(g, InfoPing3);
TextDrawHideForPlayer(g, InfoPing2);
TextDrawHideForPlayer(g, InfoPing1);
}
}
}
return 1;
}