forward RankGlobal();
public RankGlobal()
{
foreach(Player, i)
{
if(IsPlayerConnected(i))
{
checkrank("Score", getPName(i), GetPlayerScore(i));
checkrank("Kill", getPName(i), Player[i][pMatou]);
checkrank("Money", getPName(i), GetPlayerMoney(i));
checkrank("DueloW", getPName(i), wDuelos[i]);
checkrank("DueloL", getPName(i), lDuelos[i]);
checkrank("Procurado", getPName(i), Player[i][pProcurado]);
checkrank("Hits", getPName(i), Player[i][pRpt]);
checkrank("MotoHits", getPName(i), Player[i][pHitsMtx]);
checkrank("Vips", getPName(i), Player[i][VIPExpira]);
SendFormattedMessageToAll(COR_PRINCIPAL, "Top Rank » {FFFFFF}%s й o mas viciado do servidor, com %d de Level!",getPName(i),getrank("Score", "Level"));
return 1;
}
}
}
forward RankGlobal(); public RankGlobal() { foreach(Player, i) { if(IsPlayerConnected(i)) { checkrank("Score", getPName(i), GetPlayerScore(i)); checkrank("Kill", getPName(i), Player[i][pMatou]); checkrank("Money", getPName(i), GetPlayerMoney(i)); checkrank("DueloW", getPName(i), wDuelos[i]); checkrank("DueloL", getPName(i), lDuelos[i]); checkrank("Procurado", getPName(i), Player[i][pProcurado]); checkrank("Hits", getPName(i), Player[i][pRpt]); checkrank("MotoHits", getPName(i), Player[i][pHitsMtx]); checkrank("Vips", getPName(i), Player[i][VIPExpira]); new string[128]; format(string,sizeof(string),"Top Rank » %s й o mais viciado do servidor, com %d de level!",getPName(i),getrank("Score", "Level")); SendClientMessageToAll(0xFD4F3596,string); return 1; } } }
forward RankGlobal(); public RankGlobal() { foreach(Player, i) { if(IsPlayerConnected(i)) { checkrank("Score", getPName(i), GetPlayerScore(i)); checkrank("Kill", getPName(i), Player[i][pMatou]); checkrank("Money", getPName(i), GetPlayerMoney(i)); checkrank("DueloW", getPName(i), wDuelos[i]); checkrank("DueloL", getPName(i), lDuelos[i]); checkrank("Procurado", getPName(i), Player[i][pProcurado]); checkrank("Hits", getPName(i), Player[i][pRpt]); checkrank("MotoHits", getPName(i), Player[i][pHitsMtx]); checkrank("Vips", getPName(i), Player[i][VIPExpira]); new string[128]; format(string,sizeof(string),"Top Rank » %s й o mais viciado do servidor, com %d de level!",getPName(i),getrank("Score", "Level")); SendClientMessageToAll(0xFD4F3596,string); return 1; } } } |
SetTimer("RankGlobal",150000,true);
mano tipo a mensagem ta enviando so q tipo loguei com uma conta nivel 0 ai ela fala q o mais viciado do servido e a conta q loguei com 124 de score sendo q ta 0 de score
|
CMD:resetarrank(playerid, params[]) { AntiDeAMX(); if(Logado[playerid] < 1) return SendClientMessage(playerid,COLOR_RED,"Erro: Vocк nгo estб logado."); if(PlayerInfo[playerid][Admin] < 5) return SendClientMessage(playerid,COLOR_RED,"Erro: Vocк nгo tem permissгo."); resetrank("DueloL"); resetrank("DueloW"); resetrank("Hits"); resetrank("Kill"); resetrank("Money"); resetrank("MotoHits"); resetrank("Procurado"); resetrank("Score"); resetrank("Vips"); SendClientMessage(playerid,0x00FF00FF,"Vocк resetou TOP10 do servidor!"); return 1; }