[ajuda] Hora + Vip
#3

pawn Код:
public OnGameModeInit()
{
    SetTimer("Time",1000,true);
    return true;
}
pawn Код:
new PlayerTime[MAX_PLAYERS];
forward Time();
public Time()
{
    for(new x = 0; x != MAX_PLAYERS; x ++)
    {
        if(IsPlayerConnected(x))
            PlayerTime[x]++;
           
        if(PlayerTime[x] == 36000)
            PlayerTime[x] = 0, PlayerInfo[x][pVip] = 1;
    }
    return true;
}
Para salvar use algum sistema de salvamento, como Dini ou Y_Ini.
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: 2 Guest(s)