DuFF
Member
- Joined
- Apr 5, 2014
- Messages
- 20
- Reaction score
- 0
Hello ugbase!
I'm newbie on this forum and my english skills aren't very good, so first I want to say sorry for my bad english and I hope you understand me.
I tried to do weapon hack.. I have already read a lot of themes about it, I tried everything, but when I type /sawn the game is still crashing, here is my code:
PS: I want to create pickup, pick-up pickup and to send picked-up weapon to another player with command /giveammo (because of anticheat). I hope you understand what I want to do and I also hope you help me soon
PSS: I use CLEO 4.3, sampfuncs v3.2 and samp 0.3z R1
I'm newbie on this forum and my english skills aren't very good, so first I want to say sorry for my bad english and I hope you understand me.
I tried to do weapon hack.. I have already read a lot of themes about it, I tried everything, but when I type /sawn the game is still crashing, here is my code:
{$CLEO .cs}
THREAD 'sawnoff'
0B34: samp register_client_command "sawn" to_label @SAWN1
while true
wait 0
if 31@ = 1
then
Actor.StorePos($PLAYER_ACTOR, 5@, 6@, 7@)
032B: $SAWN = create_weapon_pickup #SAWNOFF type 3 ammo 3@ at 5@ 6@ 7@
repeat
wait 0
until 0214: pickup $SAWN picked_up
0AF9: samp say_msg "/giveammo %d %d" 4@ 3@
0215: destroy_pickup $SAWN
31@ = 0
end
end
:SAWN1
wait 0
if
0AD4: 1@ = scan_string 0@ format "%d%d" 4@ 3@
then
if SAMP.IsPlayerConnected(4@)
then
31@ = 1
else jump @NOT_CONNECTED
end
else jump @USAGE
end
SAMP.CmdRet
:USAGE
wait 0
0AF8: samp add_message_to_chat "Usage: /sawn <playerID> <ammo>"
SAMP.CmdRet
:NOT_CONNECTED
wait 0
0AF8: samp add_message_to_chat "Player with ID %d not found." 4@
SAMP.CmdRet
THREAD 'sawnoff'
0B34: samp register_client_command "sawn" to_label @SAWN1
while true
wait 0
if 31@ = 1
then
Actor.StorePos($PLAYER_ACTOR, 5@, 6@, 7@)
032B: $SAWN = create_weapon_pickup #SAWNOFF type 3 ammo 3@ at 5@ 6@ 7@
repeat
wait 0
until 0214: pickup $SAWN picked_up
0AF9: samp say_msg "/giveammo %d %d" 4@ 3@
0215: destroy_pickup $SAWN
31@ = 0
end
end
:SAWN1
wait 0
if
0AD4: 1@ = scan_string 0@ format "%d%d" 4@ 3@
then
if SAMP.IsPlayerConnected(4@)
then
31@ = 1
else jump @NOT_CONNECTED
end
else jump @USAGE
end
SAMP.CmdRet
:USAGE
wait 0
0AF8: samp add_message_to_chat "Usage: /sawn <playerID> <ammo>"
SAMP.CmdRet
:NOT_CONNECTED
wait 0
0AF8: samp add_message_to_chat "Player with ID %d not found." 4@
SAMP.CmdRet
PS: I want to create pickup, pick-up pickup and to send picked-up weapon to another player with command /giveammo (because of anticheat). I hope you understand what I want to do and I also hope you help me soon
PSS: I use CLEO 4.3, sampfuncs v3.2 and samp 0.3z R1