Quote:
Originally Posted by TheGarfield
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; }
|
Acho que isso nгo vai funcionar nгo em.
Creio eu que tem que comparar com o mкs que o cara coloco
if(pVipTime[playerid] == a)
E no comando
pVipTime[playerid] = comandoparadarvip;