Parazitas said:here..
[shcode=cpp]
{$CLEO .cs}
0000:
REPEAT
WAIT 0
UNTIL 0AFA: SAMP_IS_READY
0B34: "night" @Night
WHILE TRUE
WAIT 0
END
:Night
01B6: set_weather 10 /// Perfect weather
00C0: set_current_time_hours_to 1 minutes_to 10 /// 1 Hour 10 mins
0B43:
[/shcode]
DjFox said:Parazitas said:here..
[shcode=cpp]
{$CLEO .cs}
0000:
REPEAT
WAIT 0
UNTIL 0AFA: SAMP_IS_READY
0B34: "night" @Night
WHILE TRUE
WAIT 0
END
:Night
01B6: set_weather 10 /// Perfect weather
00C0: set_current_time_hours_to 1 minutes_to 10 /// 1 Hour 10 mins
0B43:
[/shcode]
only weather get changed time no
{$CLEO .cs}
0000:
while not samp.Available()
wait 0
end
0@ = 0
0B34: "night" @Night
while true
wait 0
if 0@ == 1
then 00C0: set_current_time_hours_to 1 minutes_to 10
end
end
:Night
if 0@ == 0
then
0@ = 1
// save old weather
0D59: 1@ = current_weather
01B6: set_weather 10
else
0@ = 0
01B6: set_weather 1@
end
cmdret
{$CLEO .cs}
0000:
while not samp.Available()
wait 0
end
0BE3: raknet setup_incoming_rpc_hook @lifesucks
0@ = 0
0B34: "night" @Night
while true
wait 0
end
:Night
if 0@ == 0
then
0@ = 1
0D59: 1@ = current_weather
01B6: set_weather 10
then 00C0: set_current_time_hours_to 1 minutes_to 10
else
0@ = 0
01B6: set_weather 1@
end
cmdret
:lifesucks
0BE5: raknet 2@ = get_hook_param
if 0@ == 1
then
if or 2@ == 29
if or 2@ == 94
then 0BE0: raknet hook_ret FALSE
end
end
0BE0: raknet hook_ret true