RE: SOMEONE CAN EXPLAIN ME PLEASE
[shcode=cpp]
{$CLEO .cs}
0000: NOP
wait 10000
0B34: samp register_client_command "AUTOALL" to_label @cmd
chatmsg "{A3E900}[AUTOROL]: {FFFFFF}Auto Rol Cargado. Usa /AutoALL" -1
while true
wait 0
/* Copy */
IF AND
2@ == 1
02D8: actor $PLAYER_ACTOR current_weapon == 31
THEN
say "/me toma su M4 de la Mochila."
repeat
wait 0
until 82D8: not actor $PLAYER_ACTOR current_weapon == 31
END
/* Copy end*/
/* Paste */
IF AND
2@ == 1
02D8: actor $PLAYER_ACTOR current_weapon == 24 // changed weapon id
THEN
say "/me toma su Deagle de la Mochila." /// changed weapon name from "say "/me toma su M4 de la Mochila." "
repeat
wait 0
until 82D8: not actor $PLAYER_ACTOR current_weapon == 24 // changed weapon id
END
/* Paste end */
end
:cmd
if
2@ == 0
then
2@ = 1
print "~B~INFO: ~W~ AUTOROL ~G~Activado." 2000
else
2@ = 0
print "~B~INFO: ~W~ AUTOROL ~R~Desactivado." 2000
end
0B43: samp cmd_ret
[/shcode]