29.05.2011, 20:44
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;
}