[ajuda] Hora + Vip
#9

Veja se funciona.

PHP код:

//Topo
new VIP[MAX_PLAYERS], Horas[MAX_PLAYERS];
//GAMEMODE INIT
public OnGameModeInit()
{
    
SetTimer("Time",1000,true);
    return 
true;
}
//FIM DO GM
forward Time();
public 
Time() {
    for(new 
0!= MAX_PLAYERS; ++x) {
        if(
IsPlayerConnected(x) && VIP[x] == 0//Aqui ele vai checar se o jogador nгo й VIP
            
++Horas[x];
        if(
Horas[x] == 36000)
            
Horas[x] = 0VIP[x] = 1//Coloca o VIP
    
}
    return 
true;
}
// O SEU SIST. DE SALVAMENTO \/
stock SalvarPlayer(playerid)
{
    new 
Float:VidaFloat:ColeteNome[MAX_PLAYER_NAME], String[50]
    
GetPlayerHealth(playeridVida); GetPlayerArmour(playeridColete);
    
GetPlayerName(playeridNomesizeof(Nome));
    
format(Stringsizeof(String), CONTASNome);
    
dini_IntSet(String,"Dinheiro"GetPlayerMoney(playerid));
    
dini_IntSet(String,"Matou"Matou[playerid]);
    
dini_IntSet(String,"Morreu"Morreu[playerid]);
    
dini_IntSet(String,"Logou"Logou[playerid]);
    
dini_IntSet(String,"Horas"Horas[playerid]);//SALVAR O HORAS
    
dini_IntSet(String,"Vip"VIP[playerid]);//SALVAR O VIP
    
return 0x01;

Reply


Messages In This Thread
[ajuda] Hora + Vip - by mengueh - 18.06.2011, 23:30
Re: [ajuda] Hora + Vip - by DreeH - 18.06.2011, 23:43
Re: [ajuda] Hora + Vip - by [S]trong - 18.06.2011, 23:47
Re: [ajuda] Hora + Vip - by DreeH - 18.06.2011, 23:53
Re: [ajuda] Hora + Vip - by [S]trong - 18.06.2011, 23:55
Re: [ajuda] Hora + Vip - by DreeH - 19.06.2011, 00:02
Re: [ajuda] Hora + Vip - by Ricop522 - 19.06.2011, 00:10
Re: [ajuda] Hora + Vip - by mengueh - 19.06.2011, 01:24
Re: [ajuda] Hora + Vip - by Ricop522 - 19.06.2011, 02:21
Re: [ajuda] Hora + Vip - by Falcon. - 19.06.2011, 04:05

Forum Jump:


Users browsing this thread: 1 Guest(s)