R3ForceTech
New member
- Joined
- Aug 28, 2016
- Messages
- 4
- Reaction score
- 0
I getting this mod from http://ugbase.eu/Thread-Request-Auto-send-cmd-when-changing-weapon?page=2, but this mod don't work on 0.37 and I only got a error from SAMP.
#SorryBadEnglish :sadpepe:
Code:
{$CLEO}
0000: NOP
repeat
wait 50
until 0AFA: is_samp_structures_available
0B34: samp register_client_command "personalkeybinder" to_label @Activation
0470: 1@ = actor $PLAYER_ACTOR current_weapon
2@ = false
while true
wait 0
if 31@ == 1
then
0470: 0@ = actor $PLAYER_ACTOR current_weapon
if 003B: 0@ == 1@ // (int)
then
else
0085: 1@ = 0@ // (int)
32@ = 0
2@ = true
end
if and
2@ == true
32@ > 700
then
2@ = false
if and
3@ == true //if the last weapon was actually a gun (not binoculars, flowers, extinguisher etc)
0@ == 0
then
3@ = false
0AF9: samp say_msg "/me hides his weapon."
end
0AB1: call_scm_func @Message 1 0@ 3@
end
//wait 10 //in case if it's lagging
end
end
:Activation
wait 0
0B12: 31@ = 31@ XOR 1
samp.CmdRet()
//0AB1: call_scm_func @name 0
:Message
if 0@ == 24 //weapon check
then
0AF9: samp say_msg "/me pulls out his desert eagle." //message
0AB2: ret 1 true
end
//to add more checks just put here something like this:
//if 0@ == <WEAPON ID>
//then
//0AF9: samp say_msg "/me pulls out his new weapon."
//0AB2: ret 1 true
//end
if 0@ == 31
then
0AF9: samp say_msg "/me pulls out his M4 assault rifle."
0AB2: ret 1 true
end
if 0@ == 30
then
0AF9: samp say_msg "/me pulls out his AK47 assault rifle."
0AB2: ret 1 true
end
if 0@ == 34
then
0AF9: samp say_msg "/me pulls out his sniper rifle."
0AB2: ret 1 true
end
if or
0@ == 25
0@ == 26
0@ == 27
then
0AF9: samp say_msg "/me pulls out his shotgun."
0AB2: ret 1 true
end
if or
0@ == 28
0@ == 29
0@ == 32
then
0AF9: samp say_msg "/me pulls out his submachine gun."
0AB2: ret 1 true
end
if 0@ == 33
then
0AF9: samp say_msg "/me pulls out his rifle."
0AB2: ret 1 true
end
if or
0@ == 22
0@ == 23
then
0AF9: samp say_msg "/me pulls out his 9mm pistol."
0AB2: ret 1 true
end
0AB2: ret 1 false