M minijackc123 New member Joined Feb 18, 2014 Messages 1 Reaction score 0 Jun 6, 2014 #1 Hey guys im just making a clone from the DayZ weapon hack and i cant find out how to make itself reconnect to the server after the weapon was Given.
Hey guys im just making a clone from the DayZ weapon hack and i cant find out how to make itself reconnect to the server after the weapon was Given.
T TheZeRots Expert Joined Dec 21, 2013 Messages 1,247 Reaction score 1 Jun 6, 2014 #2 Why are you making a copycat of my hack? You can use gamestate change from SAMP Functions. Upvote 0 Downvote
springfield God Joined Feb 18, 2005 Messages 2,965 Reaction score 272 Jun 6, 2014 #3 Here's a simple function. Code: :setgamestate 0AA2: 1@ = loadlib "samp.dll" 1@ += 0x212A80 0A8D: 2@ = read_memory 1@ size 4 vp 0 2@ += 0x190 0A8C: write_memory 2@ size 4 value 0@ vp 0 0AA3: 1@ 0AB2: ret 0 Or you can use Code: 0B28: samp disconnect_with_reason 0 wait N ms 0B27: samp set_gamestate 1 Upvote 0 Downvote
Here's a simple function. Code: :setgamestate 0AA2: 1@ = loadlib "samp.dll" 1@ += 0x212A80 0A8D: 2@ = read_memory 1@ size 4 vp 0 2@ += 0x190 0A8C: write_memory 2@ size 4 value 0@ vp 0 0AA3: 1@ 0AB2: ret 0 Or you can use Code: 0B28: samp disconnect_with_reason 0 wait N ms 0B27: samp set_gamestate 1