Resource icon

CLEO Release [0.3.7 | SAMPFuncs] Weather Changer via in-game command

CLEO related
Status
Not open for further replies.

acozer

New member
Joined
Apr 8, 2017
Messages
1
Reaction score
0
src:
Code:
{$CLEO}

0662: "acozer@ugbase.eu"
0B34: samp register_client_command ".w1" to_label @aco_cmd

:placeholder
wait 0
jump @placeholder

:aco_cmd
SAMP.IsCommandTyped(20@)
if
0AD4: 20@ = scan_string 20@ format "%d" 21@
then
    0B2D: write_samp_memory offset 0xC430 value 0xC390 size 2
    01B6: set_weather 21@
    0AF8: "{FF0000}/.w1: {FFFFFF}Weather changed!" -1
else
    0AF8: "{FF0000}/.w1: {FFFFFF}/.w1 [weatherID]" -1
end
SAMP.CmdRet()

Use /.w1 [weatherID] in-game to change your weather. I blocked off SetWeather so the server can't change your current weather.(offset: 0xC430; found at 0.3.7 s0beit)
 

Attachments

  • weatherchanger.cs
    17.8 KB · Views: 448
Status
Not open for further replies.
Top