22.12.2015, 18:23
Actually my aim is to script for Happy hour(were a score is a bit extra, in my server) and i want it to work it only for 2 hours, that is from 18h to 20h so here's my code!
P.S I dont get any compile errors, but have i placed it in wrong place??
is there any problem in mine??
P.S I dont get any compile errors, but have i placed it in wrong place??
pawn Код:
public OnPlayerUpdate(playerid)
{
if(happyhour[playerid] == 0)
{
happyhour[playerid] = 0;
}
//Happy Hour
new hours,minutes,seconds;
gettime(hours, minutes, seconds);
if(hours > 18)
{
happyhour[playerid] = 1;
}
if(hours < 20)
{
happyhour[playerid] = 0;
}