[Pedido] System
#4

criei agora:

pawn Код:
#include <a_samp>

#define GetPlayerVipLevel(%0)    ((pVip[%0]))
#define IsPlayerInAnyVip(%0)     ((pVip[%0] > 0)?(1):(0))
#define IsPlayerVipLevel(%0, %1) ((pVip[%0] == %1)?(true):(0))

new
    pVip[MAX_PLAYERS];
   

public OnGameModeInit()
{
    SetTimer("souneeegooogaaatoooo", 1, 1000);
    return 1;
}
stock SetPlayerVipLevel(p, a) return  pVip[p] = a;

forward souneeegooogaaatoooo(playerid);
public souneeegooogaaatoooo(playerid)
{
    static a,e,b;
    gettime(e, a,b);
    if(a == TEMPO_DE_MES_Q_TO_COM_PREGUICA_DE_ACHAR)
    {
        SetPlayerVipLevel(playerid, 0);
        return 0;
    }
    return 1;
}
Reply


Messages In This Thread
[Pedido] System - by diretor7 - 29.05.2011, 03:14
Re: [Pedido] System - by Macintosh - 29.05.2011, 13:52
Re: [Pedido] System - by diretor7 - 29.05.2011, 19:24
Re: [Pedido] System - by TheGarfield - 29.05.2011, 20:44
Re: [Pedido] System - by diretor7 - 31.05.2011, 02:40
Re: [Pedido] System - by Ricop522 - 31.05.2011, 03:06
Re: [Pedido] System - by TheGarfield - 31.05.2011, 03:31
Re: [Pedido] System - by Falcon. - 31.05.2011, 03:45
Re: [Pedido] System - by Ricop522 - 31.05.2011, 03:47
Re: [Pedido] System - by diretor7 - 31.05.2011, 05:33

Forum Jump:


Users browsing this thread: 2 Guest(s)