CLEO NOSOURCE Thread Chag wait 2000 While True wait if and 8B21 samp i

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{$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