26.03.2012, 18:43
Fiz um aqui bem simples.
pawn Код:
//Topo
new Level[MAX_PLAYERS];
new Respeito[MAX_PLAYERS];
new Pagamento[MAX_PLAYERS];
//OnPlayerConnect
Pagamento[playerid] = 0;
//OnGameModeInit
SetTimer("UpTime",1000,true);
forward UpTime();
public UpTime()
{
for(new i; i != GetMaxPlayers(); i++)
if(IsPlayerConnected(i))
{
Pagamento[playerid]++;
if(Pagamento[playerid] > 900)
{
Pagamento[playerid] = 0;
Respeito[playerid]++;
if(Respeito[playerid] == 10)
{
Respeito[playerid] = 0;
Level[playerid]++;
SetPlayerScore(playerid, Level[playerid]);
SendClientMessage(i,-1,"Vocк passou de level.");
}
}
}
return true;
}