CLEO Dropgun

Статус
В этой теме нельзя размещать новые ответы.

nikakoy

Новичок
Автор темы
15
5
Написал из нужды скрипт для себя, дабы удалять ненужное оружие, к примеру биту на SRP и др. проектах. Код открытый, не откажусь от исправлений и оптимизации скрипта.

Активация: PU (как чит-код)

CLEO:
{$CLEO}
0000: NOP

wait 10000
chatmsg "(cs) delgun successfully uploaded (creator of fracBlack) USED: PU (CHEATCOD)" color 0xF69A00  

:telo
wait 0
if
0ADC: test_cheat "PU"
jf @telo
0470: $AMMU_Selected_Weapon = actor $PLAYER_ACTOR current_weapon
0781: get_weapon_with_ID $AMMU_Selected_Weapon model_to $AMMU_Selected_Weapon_Model
0555: remove_weapon $AMMU_Selected_Weapon from_actor $PLAYER_ACTOR
chatmsg "Выполнено. Оружие которое вы держали в руках успешно удалено." color 0xF69A00
0ACD: show_text_highpriority "~g~delgun ~w~by fracBlack" time 1000
jump @telo

 

Вложения

  • dropgun(deg).cs
    18 KB · Просмотры: 782
  • Нравится
  • Влюблен
Реакции: Artesha и romacaddy

memir

🇷🇺
Всефорумный модератор
339
611
DHLxrlWW0AAqD7x.jpg
 

nikakoy

Новичок
Автор темы
15
5
я сюда его выложил не для того чтобы засирали мое правописание, а для того чтобы указали на ошибки в коде и помогли сделать лучше
 

Laine_prikol

ДИДЖЕЙ МАДЕСТ
Проверенный
260
218
а для того чтобы указали на ошибки в коде и помогли сделать лучше
TODO для тебя:
[НЕОБЯЗАТЕЛЬНО] Переделать на Lua, C++
[ОБЯЗАТЕЛЬНО] Сделать проверку на доступность сампа
[НЕОБЯЗАТЕЛЬНО] Дать возможность сменить активацию через ини файл и сделать выбор (командой, клавишами, читкод)
 
1,417
1,032
CLEO:
{$CLEO}
0000: NOP

repeat
wait 0
until 0AFA: // если уж начал юзать функции сфа, то можно для приличия сделать проверку на загруженность сампа
chatmsg "(cs) delgun successfully uploaded (creator of fracBlack) USED: PU (CHEATCOD)" color 0xF69A00 

WHILE TRUE // метки в 2018 - это очень сильно.
wait 0
    IF 0ADC: test_cheat "PU"
    THEN
        0470: 0@ = actor $PLAYER_ACTOR current_weapon    // не стоит юзать глобальные переменные
        IF AND
        0@ > 0
        0@ < 19
        THEN
            0555: remove_weapon 0@ from_actor $PLAYER_ACTOR
            chatmsg "Выполнено. Оружие которое вы держали в руках успешно удалено." color 0xF69A00 // ???
            0ACD: show_text_highpriority "~g~delgun ~w~by fracBlack" time 1000  // ??
        END
    END
END
 

eiuhuth

Новичок
91
43
CLEO:
{$CLEO .cs}

0000: NOP
0661: NOP "Script Remove Weapon. Author FracBlack."
0661: NOP "BlastHack - Cheating As Art. Visit blast.hk"

:0x0000A1
0001: wait 0 ms
00D6: if
0AFA: is_samp_available
004D: jump_if_false @0x0000A1
00D6: if
8AAB: not file_exists "cleo\script-remove-weapon.ini"
004D: jump_if_false @0x0000A2
0AF5: write_string "PU" to_ini_file "cleo\script-remove-weapon.ini" section "Settings" key "CheatCode"

:0x0000A2
0AF4: 0@v = read_string_from_ini_file "cleo\script-remove-weapon.ini" section "Settings" key "CheatCode"
0AF8: samp add_message_to_chat "{ffffff}Script {b9c9bf}Remove Weapon {ffffff}Started. Author {b9c9bf}FracBlack{ffffff}." color 11191779
0AF8: samp add_message_to_chat "{4a4e51}Blast{4993c5}Hack {ffffff}- Cheating As Art." color 11191779

:0x0000A3
0001: wait 0 ms
00D6: if
0ADC: test_cheat 0@v
004D: jump_if_false @0x0000A4
0470: 1@ = actor $PLAYER_ACTOR current_weapon
0AB1: call_scm_func @0x0000A5 1 1@ 2@
00D6: if and
0019: 1@ > 0
8019: not 1@ > 46
004D: jump_if_false @0x0000A4
0AF8: samp add_message_to_chat "{ffffff}Script {b9c9bf}Remove Weapon {ffffff}Current weapon successfully removed." color 11191779
0AD1: show_formatted_text_highpriority "~b~You removed the weapon %s~n~~w~Author FracBlack." time 2000 2@
0555: remove_weapon 1@ from_actor $PLAYER_ACTOR

:0x0000A4
0002: jump @0x0000A3

:0x0000A5 // Credits to legend2360
0AC6: 1@ = label @0x0000A6 offset
0012: 0@ *= 19
005A: 1@ += 0@
0AB2: ret 1 1@

:0x0000A6 // Credits to legend2360
hex
"Duke" 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
"Brass" 20 "Knuckles" 00 00 00 00 00
"Golf" 20 "Club" 00 00 00 00 00 00 00 00 00 00
"Nite" 20 "Stick" 00 00 00 00 00 00 00 00 00
"Knife" 00 00 00 00 00 00 00 00 00 00 00 00 00 00
"Baseball" 00 00 00 00 00 00 00 00 00 00 00
"Shovel" 00 00 00 00 00 00 00 00 00 00 00 00 00
"Pool" 20 "Cue" 00 00 00 00 00 00 00 00 00 00 00
"Katana" 00 00 00 00 00 00 00 00 00 00 00 00 00
"Chainsaw" 00 00 00 00 00 00 00 00 00 00 00
"Dildo" 00 00 00 00 00 00 00 00 00 00 00 00 00 00
"Dildo" 00 00 00 00 00 00 00 00 00 00 00 00 00 00
"Dildo" 00 00 00 00 00 00 00 00 00 00 00 00 00 00
"Dildo" 00 00 00 00 00 00 00 00 00 00 00 00 00 00
"Flowers" 00 00 00 00 00 00 00 00 00 00 00 00
"Cane" 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
"Grenade" 00 00 00 00 00 00 00 00 00 00 00 00
"Tear" 20 "Gas" 00 00 00 00 00 00 00 00 00 00 00
"Molotov" 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
"Pistol" 00 00 00 00 00 00 00 00 00 00 00 00 00
"Silencer" 00 00 00 00 00 00 00 00 00 00 00
"Desert" 20 "Eagle" 00 00 00 00 00 00 00
"Shotgun" 00 00 00 00 00 00 00 00 00 00 00 00
"SawnOff" 00 00 00 00 00 00 00 00 00 00 00 00
"Spas12" 00 00 00 00 00 00 00 00 00 00 00 00 00
"Tec9" 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
"MP5" 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
"AK-47" 00 00 00 00 00 00 00 00 00 00 00 00 00 00
"M4" 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
"Mac10" 00 00 00 00 00 00 00 00 00 00 00 00 00 00
"Rifle" 00 00 00 00 00 00 00 00 00 00 00 00 00 00
"Sniper" 00 00 00 00 00 00 00 00 00 00 00 00 00
"Rocket" 20 "Launcher" 00 00 00 00
"HS" 20 "Rocket" 20 "Launcher" 00
"Flamethrower" 00 00 00 00 00 00 00
"Minigun" 00 00 00 00 00 00 00 00 00 00 00 00
"C4" 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
"Detonator" 00 00 00 00 00 00 00 00 00 00
"Spray" 00 00 00 00 00 00 00 00 00 00 00 00 00 00
"Fire" 20 "Extinguisher" 00 00
"Camera" 00 00 00 00 00 00 00 00 00 00 00 00 00
"Nightvision" 00 00 00 00 00 00 00 00
"Infrared" 20 "Vision" 00 00 00 00
"Parachute" 00 00 00 00 00 00 00 00 00 00
end
 

Вложения

  • script-remove-weapon.ini
    24 байт · Просмотры: 104
  • script-remove-weapon.cs
    22.6 KB · Просмотры: 103
Последнее редактирование:
  • Нравится
Реакции: nikakoy
Статус
В этой теме нельзя размещать новые ответы.