Выбрасываем оружие
Суть в том, что в ГТА иногда приходится менять оружие заменяя предудущее, это раздражает многих. Например собирал ты огнемет, набрал до...много -), и надо в мисии обязательно взять гранатомет к примеру, жалко выкидывать а что делать. Этот скрипт позволяет выбросить оружие Клавишей G (не нажимая кнопки прицеливания-чтобы не возникло глюка , когда набираешь банду), Карл выкинет оружие и создаться пикап рядом с ним, который можно потом взять. Можно выкидывать оружие id которых (22-38), по моему они самые нужные.
:MAIN_736
0001: wait 0 ms
00D6: if 0
0256: player $PLAYER_CHAR defined
004D: jump_if_false ЈЈMAIN_736
00D6: if 1
80DF: NOT actor $PLAYER_ACTOR driving
80E1: NOT key pressed 0 6
004D: jump_if_false ЈЈMAIN_736
00D6: if 0
00E1: key_pressed 0 8
004D: jump_if_false ЈЈMAIN_736
0470: $11669 = actor $PLAYER_ACTOR armed_weapon unknown
041A: $11668 = actor $PLAYER_ACTOR weapon $11669 ammo
04C4: create_coordinate $11667 $11666 $11665 from_actor
$PLAYER_ACTOR offset 0.0 2.0 0.0
:MAIN_754
0001: wait 0 ms
00D6: if 0
02D8: actor $PLAYER_ACTOR currentweapon == 22
004D: jump_if_false ЈЈMAIN_762
0555: remove_weapon $11669 from_actor $PLAYER_ACTOR
032B: $11664 = create_weapon_pickup #COLT45 3 ammo $11668 at
$11667 $11666 $11665
0001: wait 2000 ms
0002: jump ЈЈMAIN_736
:MAIN_762
0001: wait 0 ms
00D6: if 0
02D8: actor $PLAYER_ACTOR currentweapon == 23
004D: jump_if_false ЈЈMAIN_770
0555: remove_weapon $11669 from_actor $PLAYER_ACTOR
032B: $11664 = create_weapon_pickup #SILENCED 3 ammo $11668 at
$11667 $11666 $11665
0001: wait 2000 ms
0002: jump ЈЈMAIN_736
:MAIN_770
0001: wait 0 ms
00D6: if 0
02D8: actor $PLAYER_ACTOR currentweapon == 24
004D: jump_if_false ЈЈMAIN_778
0555: remove_weapon $11669 from_actor $PLAYER_ACTOR
032B: $11664 = create_weapon_pickup #DESERT_EAGLE 3 ammo
$11668 at $11667 $11666 $11665
0001: wait 2000 ms
0002: jump ЈЈMAIN_736
:MAIN_778
0001: wait 0 ms
00D6: if 0
02D8: actor $PLAYER_ACTOR currentweapon == 25
004D: jump_if_false ЈЈMAIN_786
0555: remove_weapon $11669 from_actor $PLAYER_ACTOR
032B: $11664 = create_weapon_pickup #CHROMEGUN 3 ammo $11668
at $11667 $11666 $11665
0001: wait 2000 ms
0002: jump ЈЈMAIN_736
:MAIN_786
0001: wait 0 ms
00D6: if 0
02D8: actor $PLAYER_ACTOR currentweapon == 26
004D: jump_if_false ЈЈMAIN_794
0555: remove_weapon $11669 from_actor $PLAYER_ACTOR
032B: $11664 = create_weapon_pickup #SAWNOFF 3 ammo $11668 at
$11667 $11666 $11665
0001: wait 2000 ms
0002: jump ЈЈMAIN_736
:MAIN_794
0001: wait 0 ms
00D6: if 0
02D8: actor $PLAYER_ACTOR currentweapon == 27
004D: jump_if_false ЈЈMAIN_802
0555: remove_weapon $11669 from_actor $PLAYER_ACTOR
032B: $11664 = create_weapon_pickup #SHOTGSPA 3 ammo $11668
at $11667 $11666 $11665
0001: wait 2000 ms
0002: jump ЈЈMAIN_736
:MAIN_802
0001: wait 0 ms
00D6: if 0
02D8: actor $PLAYER_ACTOR currentweapon == 28
004D: jump_if_false ЈЈMAIN_810
0555: remove_weapon $11669 from_actor $PLAYER_ACTOR
032B: $11664 = create_weapon_pickup #MICRO_UZI 3 ammo $11668
at $11667 $11666 $11665
0001: wait 2000 ms
0002: jump ЈЈMAIN_736
:MAIN_810
0001: wait 0 ms
00D6: if 0
02D8: actor $PLAYER_ACTOR currentweapon == 29
004D: jump_if_false ЈЈMAIN_818
0555: remove_weapon $11669 from_actor $PLAYER_ACTOR
032B: $11664 = create_weapon_pickup #MP5LNG 3 ammo $11668 at
$11667 $11666 $11665
0001: wait 2000 ms
0002: jump ЈЈMAIN_736
:MAIN_818
0001: wait 0 ms
00D6: if 0
02D8: actor $PLAYER_ACTOR currentweapon == 30
004D: jump_if_false ЈЈMAIN_826
0555: remove_weapon $11669 from_actor $PLAYER_ACTOR
032B: $11664 = create_weapon_pickup #AK47 3 ammo $11668 at
$11667 $11666 $11665
0001: wait 2000 ms
0002: jump ЈЈMAIN_736
:MAIN_826
0001: wait 0 ms
00D6: if 0
02D8: actor $PLAYER_ACTOR currentweapon == 31
004D: jump_if_false ЈЈMAIN_834
0555: remove_weapon $11669 from_actor $PLAYER_ACTOR
032B: $11664 = create_weapon_pickup #M4 3 ammo $11668 at $11667
$11666 $11665
0001: wait 2000 ms
0002: jump ЈЈMAIN_736
:MAIN_834
0001: wait 0 ms
00D6: if 0
02D8: actor $PLAYER_ACTOR currentweapon == 32
004D: jump_if_false ЈЈMAIN_842
0555: remove_weapon $11669 from_actor $PLAYER_ACTOR
032B: $11664 = create_weapon_pickup #TEC9 3 ammo $11668 at
$11667 $11666 $11665
0001: wait 2000 ms
0002: jump ЈЈMAIN_736
:MAIN_842
0001: wait 0 ms
00D6: if 0
02D8: actor $PLAYER_ACTOR currentweapon == 33
004D: jump_if_false ЈЈMAIN_850
0555: remove_weapon $11669 from_actor $PLAYER_ACTOR
032B: $11664 = create_weapon_pickup #CUNTGUN 3 ammo $11668 at
$11667 $11666 $11665
0001: wait 2000 ms
0002: jump ЈЈMAIN_736
:MAIN_850
0001: wait 0 ms
00D6: if 0
02D8: actor $PLAYER_ACTOR currentweapon == 34
004D: jump_if_false ЈЈMAIN_858
0555: remove_weapon $11669 from_actor $PLAYER_ACTOR
032B: $11664 = create_weapon_pickup #SNIPER 3 ammo $11668 at
$11667 $11666 $11665
0001: wait 2000 ms
0002: jump ЈЈMAIN_736
:MAIN_858
0001: wait 0 ms
00D6: if 0
02D8: actor $PLAYER_ACTOR currentweapon == 35
004D: jump_if_false ЈЈMAIN_866
0555: remove_weapon $11669 from_actor $PLAYER_ACTOR
032B: $11664 = create_weapon_pickup #rocketla 3 ammo $11668 at
$11667 $11666 $11665
0001: wait 2000 ms
0002: jump ЈЈMAIN_736
:MAIN_866
0001: wait 0 ms
00D6: if 0
02D8: actor $PLAYER_ACTOR currentweapon == 36
004D: jump_if_false ЈЈMAIN_872
0555: remove_weapon $11669 from_actor $PLAYER_ACTOR
032B: $11664 = create_weapon_pickup #heatseek 3 ammo $11668 at
$11667 $11666 $11665
0001: wait 2000 ms
0002: jump ЈЈMAIN_736
:MAIN_872
0001: wait 0 ms
00D6: if 0
02D8: actor $PLAYER_ACTOR currentweapon == 37
004D: jump_if_false ЈЈMAIN_880
0555: remove_weapon $11669 from_actor $PLAYER_ACTOR
032B: $11664 = create_weapon_pickup #flame 3 ammo $11668 at
$11667 $11666 $11665
0001: wait 2000 ms
0002: jump ЈЈMAIN_736
:MAIN_880
0001: wait 0 ms
00D6: if 0
02D8: actor $PLAYER_ACTOR currentweapon == 38
004D: jump_if_false ЈЈMAIN_754
0555: remove_weapon $11669 from_actor $PLAYER_ACTOR
032B: $11664 = create_weapon_pickup #minigun 3 ammo $11668 at
$11667 $11666 $11665
0001: wait 2000 ms
0002: jump ЈЈMAIN_736