22.12.2014, 20:56
Queria uma ajuda tipo sу poder usar o comando no dia 24/12/2014, pra fazer sei lб um evento de natal que de-se vip[playerid] = 1 por 1 mes, como eu faria isso?
new Year, Month, Day;
getdate(Year, Month, Day);
startVIPdia[playerid] = Day;
startVIPmes[playerid] = Month;
startVIPano[playerid] = Year;
vip[playerid] = 1;
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!");
}
}
new Year, Month, Day;
getdate(Year, Month, Day);
startVIPdia[playerid] = Day;
startVIPmes[playerid] = Month;
startVIPano[playerid] = Year;
VIP[playerid] = 1;
DP[playerid] -= 1000;
Ano que pegou a vip, qnd compra vip й assim
/pegarvip pawn Код:
|
if(Year != startVIPano[playerid] || Year == startVIPano[playerid] && Month > startVIPmes[playerid] && Day >= startVIPdia[playerid])
{
vip[playerid] = 0;
SendClientMessage(playerid, COLOR_LIGHTRED, "Seu VIP venceu!");
}