07.08.2010, 13:50
(
Последний раз редактировалось junioor; 07.08.2010 в 14:06.
)
Amigo tem um problema o textdraw soo esta aparecendo para um jogador como que eu fasso para aparecer para todos?
pawn Код:
forward TimerPing(playerid);
public TimerPing(playerid)
{
for(new g=0;g<=MAX_PLAYERS;g++) {
if(IsPlayerConnected(g)) {
new ping=GetPlayerPing(g);
if(ping>=20&&ping<100) {
TextDrawShowForPlayer(playerid, InfoPing1);
TextDrawHideForPlayer(playerid, InfoPing2);
TextDrawHideForPlayer(playerid, InfoPing3);
}
if(ping>=100&&ping<300) {
TextDrawShowForPlayer(playerid, InfoPing2);
TextDrawHideForPlayer(playerid, InfoPing1);
TextDrawHideForPlayer(playerid, InfoPing3);
}
if(ping>=300) {
TextDrawShowForPlayer(playerid, InfoPing3);
TextDrawHideForPlayer(playerid, InfoPing2);
TextDrawHideForPlayer(playerid, InfoPing1);
}
}
}
return 1;
}