Truck Server - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Truck Server (
/showthread.php?tid=572029)
Truck Server -
Ugaustin - 24.04.2015
how can I make so between 12-7 midnight and morning and morning-midnight so I want something to happen between hours 12 midnight and 7 am..and all day something to give money
PHP код:
if (gettime() > 7)
{
//message
printf("qweqeqeqeweq2342");
}
if (gettime() < 21)
{
//message
printf("AGEffewAA");
}
Re: Truck Server -
Mencent - 24.04.2015
Hello!
Do you mean it like so?
PHP код:
new minute,second,hour;
gettime(hour,minute,second);
if(7 <= hour <= 11 && minute <= 59)
{
//between 7 and 11 hours in the morning
}
else if(19 <= hour <= 23 && minute <= 59)
{
//between 7 and 11 hours in the evening
}
Mencent
Re: Truck Server -
Ugaustin - 24.04.2015
no at 12 night midnight till 7 am to be a message and.. day to be normal and so on
Re: Truck Server -
Ugaustin - 24.04.2015
anyone?
Re: Truck Server -
Ugaustin - 24.04.2015
I passed the time I think
anyone can help?? like how he did but dosent work..
Re: Truck Server -
Ugaustin - 24.04.2015
30 minutes passed!
Re: Truck Server -
Mencent - 25.04.2015
You have up a template from me, they write it so how you like them.
Otherwise, you can ask again here with this code!
Mencent