{$CLEO}
{$NOSOURCE}
Thread "Chag"
wait 2000
While True
wait 0
if and
8B21: samp is_chat_opened
8B4C: samp is_dialog_active -1
then
if key 49
then
if and
not curweap $PLAYER_ACTOR 30
not curweap $PLAYER_ACTOR 31
then
04B8: get_weapon_data_from_actor $PLAYER_ACTOR slot 6 weapon 1@ ammo 2@ model 3@
01B9: set_actor $PLAYER_ACTOR armed_weapon_to 1@
end
end
if key 50
then
if and
not curweap $PLAYER_ACTOR 22
not curweap $PLAYER_ACTOR 23
not curweap $PLAYER_ACTOR 24
then
04B8: get_weapon_data_from_actor $PLAYER_ACTOR slot 3 weapon 1@ ammo 2@ model 3@
01B9: set_actor $PLAYER_ACTOR armed_weapon_to 1@
end
end
if key 51
then
if and
not curweap $PLAYER_ACTOR 25
not curweap $PLAYER_ACTOR 26
not curweap $PLAYER_ACTOR 27
then
04B8: get_weapon_data_from_actor $PLAYER_ACTOR slot 4 weapon 1@ ammo 2@ model 3@
01B9: set_actor $PLAYER_ACTOR armed_weapon_to 1@
end
end
end
end