16.09.2010, 16:20
(
Последний раз редактировалось Shelby; 16.09.2010 в 16:54.
)
Isto talvez o ajude:
Vocк necessitarб de:
PGD - Protioso Gerenciamento de Dados
pawn Код:
#include "PGD"
new Precord;//Topo do Gamemode
//OnGameModeInit
if(pgd_ArquivoExiste("Record.cfg"))
{
Precord = pgd_CarregarInt("Record.cfg", "RecordeJogadores", ":");
}
else
{
pgd_CriarArquivo("Record.cfg");
pgd_EscreverInt("Record.cfg", "RecordeJogadores", ":", 0);
Precord = 0;
}
//OnGameModeInit
new string[256];
new players = 0;for(new i; i <MAX_PLAYERS; i++){ if(IsPlayerConnected(i)) { players++;}}
format(string, sizeof(string),"agora tem %d players Online",players);
SendClientMessage(playerid,string);
format(string, sizeof(string),"O Recorde de jogadores online й: %d",Precord);
SendClientMessage(playerid,string);
if(pgd_CarregarInt("Record.cfg", "RecordeJogadores", ":") > players)
{
pgd_EscreverInt("Record.cfg", "RecordeJogadores", ":", players);
}
PGD - Protioso Gerenciamento de Dados