23.12.2014, 00:42
Minha lуgica ta certa?
Quando ganha VIP
Qnd remove
Onplayerspawn
Quando ganha VIP
pawn Код:
new Year, Month, Day;
getdate(Year, Month, Day);
startVIPdia[playerid] = Day;
startVIPmes[playerid] = Month;
startVIPano[playerid] = Year;
vip[playerid] = 1;
Onplayerspawn
pawn Код:
if(vip[playerid] >= 1) {
new Year, Month, Day;
getdate(Year, Month, Day);
if(Year != startVIPano[playerid]) {
vip[playerid] = 0;
SendClientMessage(playerid, COLOR_LIGHTRED, "Seu VIP venceu!");
}
if(Year == startVIPano[playerid] && Month > startVIPmes[playerid] && Day >= startVIPdia[playerid])
{
vip[playerid] = 0;
SendClientMessage(playerid, COLOR_LIGHTRED, "Seu VIP venceu!");
}
}