foarte de ajutor frt pe un server, o nua inovatie
tu nu gandesti
a primit kick deoarece are un PC de lemn.
pingu e de la net da' ce sa facem cand suntem prea destepti pt pamantu asta
apropo, misto copy paste
e chiar identic, ai modificat textu si boom
p.s. mai ai si programer, fa ceva unic
public OnGameModeInit()
{
SetTimer("PingChecker", 60000, true);
SetTimer("CheckMoney",5000,true);
return 1;
}
public PingChecker()
{
for(new i;i < MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i))
{
if(GetPlayerPing(i) > 300 && PingChecked[i] == false)
{
SendClientMessage(i, -1, "[SERVER]: {15FF00}Ai fost prins cu Ping mare. Rezolva-l, sau vei primi kick !");
PingChecked[i] = true;
}
if(GetPlayerPing(i) > 300 && PingChecked[i] == true)
{
new pName[MAX_PLAYER_NAME] , string[MAX_PLAYER_NAME*2];
GetPlayerName(i, pName, sizeof(pName));
format(string, sizeof(string), "{FF0000}[SERVER]: {FFCC33}%s {15FF00}a primit kick de la {FF0000}AdmBot ! {FFFFFF}|| {FFFF00}Motiv: {15FF00}Ping-Mare", pName);
SendClientMessageToAll(-1, string);
SendClientMessage(i, -1, "{FF0000}[SERVER]: {FFCC33}Ai primit kick de la AdmBot || {FFFF00}Motiv: {15FF00}Ping Mare !");
Kick(i);
}
}
}
return 1;
}