[Ajuda] Timer nгo reinicia
#4

Tente assim, se o codigo estiver mal indentado ou com erros desculpe-me pois estou no celular:
@EDIT Tava com erros!
PHP код:
forward checarfps(playerid);
public 
checarfps(playerid)
{
 if(
IsPlayerConnected(playerid))
 {
 if(
IsPlayerSpawned(playerid))
 {
 new 
FPS GetPlayerFPS(playerid);
 if(
FPS 30)
 {
  if(
pnetcheck[playerid] == 0)
  {
  
kickporfps[playerid]++;
  new 
str[128];
  
format(str,sizeof(str),"{BABABA}WARNING: FPS BAIXO {FFFFFF}({BABABA}%i{FFFFFF}/{BABABA}10)",kickporfps[playerid]);
  
SendClientMessage(playerid,0xFFFFFFFF,str);
  }
  if(
kickporfps[playerid] >= 11)
  {
  
kickporfps[playerid] = 1;
  new 
strr[128];
  
format(strr,sizeof(strr),"{BABABA}%s {FFFFFF}foi kickado {BABABA}(FPS %i)",GetName(playerid),FPS);
  
SendClientMessageToAll(0xFFFFFFFF,strr);
  
Kick(playerid);
  }
 }
 }
 }
 if(
FPS 30)
 {
  
kickporfps[playerid] = 0;
 }
 return 
1;

Reply


Messages In This Thread
Timer nгo reinicia - by DokyPWN - 21.03.2015, 01:20
Re: Timer nгo reinicia - by #Luca[S]. - 21.03.2015, 01:25
Re: Timer nгo reinicia - by DokyPWN - 21.03.2015, 01:28
Re: Timer nгo reinicia - by #Luca[S]. - 21.03.2015, 01:33
Re: Timer nгo reinicia - by DokyPWN - 21.03.2015, 01:42
Re: Timer nгo reinicia - by #Luca[S]. - 21.03.2015, 01:44
Re: Timer nгo reinicia - by ipsLuan - 21.03.2015, 03:03

Forum Jump:


Users browsing this thread: 4 Guest(s)