Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Talvez de um pouco de lag... nas lops.
- #define MAX_TORCIDA 20
- new OnTorcida[MAX_TORCIDA];
- stock GetOnTorcida()
- {
- for(new i = 1; i<MAX_TORCIDA; i++)
- {
- for(new o = 0; o<MAX_PLAYERS; o++)
- {
- if(PlayerInfo[o][pTorcida] == i)
- {
- OnTorcida[PlayerInfo[o][pTorcida]] ++;
- }
- }
- }
- }
- stock GetTOPTorcida(MAX_TORCIDA)
- {
- GetOnTorcida();
- new TempResultado;
- new TorcidaTOP;
- new temp[100];
- for(new t = 1; t<MAX_TORCIDA t++)
- {
- if(OnTorcida[t] >= TempResultado)
- {
- TorcidaTOP = t;
- }
- }
- format(temp, sizeof(temp), "%s com %d online's", GetTorcidaName(TorcidaTOP), OnTorcida[TorcidaTOP]);
- return temp;
- }
- forward PegarTOPTorcida();
- public PegarTOPTorcida()
- {
- new string[128];
- format(string, sizeof(string), "TOP Torcida: A Torcida: %s", GetTOPTorcida(MAX_TORCIDA));
- SendClientMessageForAll(-1, string);
- return 0x01;
- }
Advertisement
Add Comment
Please, Sign In to add comment