CLEO Change Keybind

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

tydeushd

Новичок
Автор темы
8
0
Hi, i have a .cs with command /wpinfo but i want to turn this into a keybind. i want it to open when i press a key and close when i press it again, not by command, how can i edit this?

wpinfo:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}
{$USE bitwise}
{$USE CLEO+}

0000: NOP 
alloc 0@ = allocate_memory_size 100 
1@ = Render.CreateFont("Arial", 10, 1)
0B34: samp register_client_command "wpinfo" to_label @NONAME_331 

:NONAME_40
wait 0 
if 
  10@ == 1 
jf @NONAME_324 
31@ = 0 

:NONAME_69
if 
30@ = SAMP.GetActorHandleByPlayerID(31@)
jf @NONAME_302 
Actor.StorePos(30@, 29@, 28@, 27@)
if 
00C2:   sphere_onscreen 29@ 28@ 27@ radius 0.0 
jf @NONAME_302 
Actor.StorePos($PLAYER_ACTOR, 26@, 25@, 24@)
SAMP.Convert3DCoordsToScreen(29@, 28@, 27@, 23@, 22@)
SAMP.Convert3DCoordsToScreen(26@, 25@, 24@, 21@, 20@)
0470: 14@ = actor 30@ current_weapon 
call @NONAME_481 1 14@ 11@ 
Render.DrawPolygon(23@, 22@, 3, 3, 7, 0, -1174339840)
format 0@ = format "{FFFFFF}Weapon {FF0F0F}%s{00FF00} %d" 11@ 14@ 
23@ += 5 
22@ -= -30 
Render.DrawText(1@, 0@, 23@, 22@, -1)

:NONAME_302
31@ += 1 
  31@ > 1000 
jf @NONAME_69 

:NONAME_324
jump @NONAME_40 

:NONAME_331
0B12: 10@ = 10@ XOR 1 
if 
  10@ == 1 
jf @NONAME_422 
printf "~Y~Weapons Informer~G~ [ON] ~W~ by ~G~_=Gigant=_" time 1500 
jump @NONAME_479 

:NONAME_422
printf "~Y~Weapons Informer~R~ [OFF] ~W~ by ~G~_=Gigant=_" time 1500 

:NONAME_479
SAMP.CmdRet

:NONAME_481
0AC6: 1@ = label @NONAME_514 offset 
0@ *= 19 
005A: 1@ += 0@ // (int) 
ret 1 1@ 

:NONAME_514
hex
 "Duke" 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 42 72
 61 73 73 20 4B 6E 75 63 6B 6C 65 73 00 00 00 00
 00 47 6F 6C 66 20 43 6C 75 62 00 00 00 00 00 00
 00 00 00 00 4E 69 74 65 20 53 74 69 63 6B 00 00
 00 00 00 00 00 00 00 4B 6E 69 66 65 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 42 61 73 65 62 61
 6C 6C 00 00 00 00 00 00 00 00 00 00 00 53 68 6F
 76 65 6C 00 00 00 00 00 00 00 00 00 00 00 00 00
 50 6F 6F 6C 20 43 75 65 00 00 00 00 00 00 00 00
 00 00 00 4B 61 74 61 6E 61 00 00 00 00 00 00 00
 00 00 00 00 00 00 43 68 61 69 6E 73 61 77 00 00
 00 00 00 00 00 00 00 00 00 44 69 6C 64 6F 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 44 69 6C 64
 6F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 44
 69 6C 64 6F 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 44 69 6C 64 6F 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 46 6C 6F 77 65 72 73 00 00 00 00
 00 00 00 00 00 00 00 00 43 61 6E 65 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 47 72 65 6E 61
 64 65 00 00 00 00 00 00 00 00 00 00 00 00 54 65
 61 72 20 47 61 73 00 00 00 00 00 00 00 00 00 00
 00 4D 6F 6C 6F 74 6F 76 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 50 69 73
 74 6F 6C 00 00 00 00 00 00 00 00 00 00 00 00 00
 53 69 6C 65 6E 63 65 72 00 00 00 00 00 00 00 00
 00 00 00 44 65 61 67 6C 65 00 00 00 00 00 00 00
 00 00 00 00 00 00 53 68 6F 74 67 75 6E 00 00 00
 00 00 00 00 00 00 00 00 00 53 61 77 6E 4F 66 66
 00 00 00 00 00 00 00 00 00 00 00 00 53 70 61 73
 31 32 00 00 00 00 00 00 00 00 00 00 00 00 00 54
 65 63 39 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 4D 50 35 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 41 4B 34 37 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 4D 34 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 4D 61 63 31 30
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 52 69
 66 6C 65 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 53 6E 69 70 65 72 00 00 00 00 00 00 00 00 00
 00 00 00 00 52 6F 63 6B 65 74 20 4C 61 75 6E 63
 68 65 72 00 00 00 00 48 53 20 52 6F 63 6B 65 74
 20 4C 61 75 6E 63 68 65 72 00 46 6C 61 6D 65 74
 68 72 6F 77 65 72 00 00 00 00 00 00 00 4D 69 6E
 69 67 75 6E 00 00 00 00 00 00 00 00 00 00 00 00
 43 34 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 44 65 74 6F 6E 61 74 6F 72 00 00 00 00
 00 00 00 00 00 00 53 70 72 61 79 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 46 69 72 65 20 45 78
 74 69 6E 67 75 69 73 68 65 72 00 00 43 61 6D 65
 72 61 00 00 00 00 00 00 00 00 00 00 00 00 00 4E
 69 67 68 74 76 69 73 69 6F 6E 00 00 00 00 00 00
 00 00 49 6E 66 72 61 72 65 64 20 56 69 73 69 6F
 6E 00 00 00 00 50 61 72 61 63 68 75 74 65 00 00
 00 00 00 00 00 00 00 00
end
 

Qsany

Потрачен
464
147
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Hi, i have a .cs with command /wpinfo but i want to turn this into a keybind. i want it to open when i press a key and close when i press it again, not by command, how can i edit this?

wpinfo:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}
{$USE bitwise}
{$USE CLEO+}

0000: NOP
alloc 0@ = allocate_memory_size 100
1@ = Render.CreateFont("Arial", 10, 1)
0B34: samp register_client_command "wpinfo" to_label @NONAME_331

:NONAME_40
wait 0
if
  10@ == 1
jf @NONAME_324
31@ = 0

:NONAME_69
if
30@ = SAMP.GetActorHandleByPlayerID(31@)
jf @NONAME_302
Actor.StorePos(30@, 29@, 28@, 27@)
if
00C2:   sphere_onscreen 29@ 28@ 27@ radius 0.0
jf @NONAME_302
Actor.StorePos($PLAYER_ACTOR, 26@, 25@, 24@)
SAMP.Convert3DCoordsToScreen(29@, 28@, 27@, 23@, 22@)
SAMP.Convert3DCoordsToScreen(26@, 25@, 24@, 21@, 20@)
0470: 14@ = actor 30@ current_weapon
call @NONAME_481 1 14@ 11@
Render.DrawPolygon(23@, 22@, 3, 3, 7, 0, -1174339840)
format 0@ = format "{FFFFFF}Weapon {FF0F0F}%s{00FF00} %d" 11@ 14@
23@ += 5
22@ -= -30
Render.DrawText(1@, 0@, 23@, 22@, -1)

:NONAME_302
31@ += 1
  31@ > 1000
jf @NONAME_69

:NONAME_324
jump @NONAME_40

:NONAME_331
0B12: 10@ = 10@ XOR 1
if
  10@ == 1
jf @NONAME_422
printf "~Y~Weapons Informer~G~ [ON] ~W~ by ~G~_=Gigant=_" time 1500
jump @NONAME_479

:NONAME_422
printf "~Y~Weapons Informer~R~ [OFF] ~W~ by ~G~_=Gigant=_" time 1500

:NONAME_479
SAMP.CmdRet

:NONAME_481
0AC6: 1@ = label @NONAME_514 offset
0@ *= 19
005A: 1@ += 0@ // (int)
ret 1 1@

:NONAME_514
hex
 "Duke" 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 42 72
 61 73 73 20 4B 6E 75 63 6B 6C 65 73 00 00 00 00
 00 47 6F 6C 66 20 43 6C 75 62 00 00 00 00 00 00
 00 00 00 00 4E 69 74 65 20 53 74 69 63 6B 00 00
 00 00 00 00 00 00 00 4B 6E 69 66 65 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 42 61 73 65 62 61
 6C 6C 00 00 00 00 00 00 00 00 00 00 00 53 68 6F
 76 65 6C 00 00 00 00 00 00 00 00 00 00 00 00 00
 50 6F 6F 6C 20 43 75 65 00 00 00 00 00 00 00 00
 00 00 00 4B 61 74 61 6E 61 00 00 00 00 00 00 00
 00 00 00 00 00 00 43 68 61 69 6E 73 61 77 00 00
 00 00 00 00 00 00 00 00 00 44 69 6C 64 6F 00 00
 00 00 00 00 00 00 00 00 00 00 00 00 44 69 6C 64
 6F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 44
 69 6C 64 6F 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 44 69 6C 64 6F 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 46 6C 6F 77 65 72 73 00 00 00 00
 00 00 00 00 00 00 00 00 43 61 6E 65 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 47 72 65 6E 61
 64 65 00 00 00 00 00 00 00 00 00 00 00 00 54 65
 61 72 20 47 61 73 00 00 00 00 00 00 00 00 00 00
 00 4D 6F 6C 6F 74 6F 76 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 50 69 73
 74 6F 6C 00 00 00 00 00 00 00 00 00 00 00 00 00
 53 69 6C 65 6E 63 65 72 00 00 00 00 00 00 00 00
 00 00 00 44 65 61 67 6C 65 00 00 00 00 00 00 00
 00 00 00 00 00 00 53 68 6F 74 67 75 6E 00 00 00
 00 00 00 00 00 00 00 00 00 53 61 77 6E 4F 66 66
 00 00 00 00 00 00 00 00 00 00 00 00 53 70 61 73
 31 32 00 00 00 00 00 00 00 00 00 00 00 00 00 54
 65 63 39 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 4D 50 35 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00 41 4B 34 37 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 4D 34 00 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 00 00 4D 61 63 31 30
 00 00 00 00 00 00 00 00 00 00 00 00 00 00 52 69
 66 6C 65 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 53 6E 69 70 65 72 00 00 00 00 00 00 00 00 00
 00 00 00 00 52 6F 63 6B 65 74 20 4C 61 75 6E 63
 68 65 72 00 00 00 00 48 53 20 52 6F 63 6B 65 74
 20 4C 61 75 6E 63 68 65 72 00 46 6C 61 6D 65 74
 68 72 6F 77 65 72 00 00 00 00 00 00 00 4D 69 6E
 69 67 75 6E 00 00 00 00 00 00 00 00 00 00 00 00
 43 34 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 44 65 74 6F 6E 61 74 6F 72 00 00 00 00
 00 00 00 00 00 00 53 70 72 61 79 00 00 00 00 00
 00 00 00 00 00 00 00 00 00 46 69 72 65 20 45 78
 74 69 6E 67 75 69 73 68 65 72 00 00 43 61 6D 65
 72 61 00 00 00 00 00 00 00 00 00 00 00 00 00 4E
 69 67 68 74 76 69 73 69 6F 6E 00 00 00 00 00 00
 00 00 49 6E 66 72 61 72 65 64 20 56 69 73 69 6F
 6E 00 00 00 00 50 61 72 61 63 68 75 74 65 00 00
 00 00 00 00 00 00 00 00
end
CLEO:
// This file was decompiled using SASCM.ini published by GTAG (http://gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}
{$USE bitwise}
{$USE CLEO+}

0000: NOP
alloc 0@ = allocate_memory_size 100
1@ = Render.CreateFont("Arial", 10, 1)
0B34: samp register_client_command "wpinfo" to_label @NONAME_331

:NONAME_40
wait 0
if
  10@ == 1
jf @NONAME_324
31@ = 0

:NONAME_69
if
30@ = SAMP.GetActorHandleByPlayerID(31@)
jf @NONAME_302
Actor.StorePos(30@, 29@, 28@, 27@)
if
00C2:   sphere_onscreen 29@ 28@ 27@ radius 0.0
jf @NONAME_302
Actor.StorePos($PLAYER_ACTOR, 26@, 25@, 24@)
SAMP.Convert3DCoordsToScreen(29@, 28@, 27@, 23@, 22@)
SAMP.Convert3DCoordsToScreen(26@, 25@, 24@, 21@, 20@)
0470: 14@ = actor 30@ current_weapon
call @NONAME_481 1 14@ 11@
Render.DrawPolygon(23@, 22@, 3, 3, 7, 0, -1174339840)
format 0@ = format "{FFFFFF}Weapon {FF0F0F}%s{00FF00} %d" 11@ 14@
23@ += 5
22@ -= -30
Render.DrawText(1@, 0@, 23@, 22@, -1)

:NONAME_302
31@ += 1
  31
 

tydeushd

Новичок
Автор темы
8
0
CLEO:
// This file was decompiled using SASCM.ini published by GTAG (http://gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}
{$USE bitwise}
{$USE CLEO+}

0000: NOP
alloc 0@ = allocate_memory_size 100
1@ = Render.CreateFont("Arial", 10, 1)
0B34: samp register_client_command "wpinfo" to_label @NONAME_331

:NONAME_40
wait 0
if
  10@ == 1
jf @NONAME_324
31@ = 0

:NONAME_69
if
30@ = SAMP.GetActorHandleByPlayerID(31@)
jf @NONAME_302
Actor.StorePos(30@, 29@, 28@, 27@)
if
00C2:   sphere_onscreen 29@ 28@ 27@ radius 0.0
jf @NONAME_302
Actor.StorePos($PLAYER_ACTOR, 26@, 25@, 24@)
SAMP.Convert3DCoordsToScreen(29@, 28@, 27@, 23@, 22@)
SAMP.Convert3DCoordsToScreen(26@, 25@, 24@, 21@, 20@)
0470: 14@ = actor 30@ current_weapon
call @NONAME_481 1 14@ 11@
Render.DrawPolygon(23@, 22@, 3, 3, 7, 0, -1174339840)
format 0@ = format "{FFFFFF}Weapon {FF0F0F}%s{00FF00} %d" 11@ 14@
23@ += 5
22@ -= -30
Render.DrawText(1@, 0@, 23@, 22@, -1)

:NONAME_302
31@ += 1
  31
i cannot see any difference
 

D3.Pheonix

🎹
Модератор
2,867
1,644
@tydeushd

16 line
keycodes

CLEO:
{$CLEO .cs}
{$USE bitwise}
{$USE CLEO+}

0000:

repeat
wait 0
until Samp.Available()
alloc 0@ 100 
1@ = Render.CreateFont("Arial", 10, 1)

while true
wait 0
    if 
    0C89:  key_just_pressed 114 // F3
    then
    0B12: 10@ = 10@ XOR 1
        if 
        10@ == 1
        then
        print "~Y~Weapons Informer~G~ [ON] ~W~ by ~G~_=Gigant=_" time 1500
        else
        printf "~Y~Weapons Informer~R~ [OFF] ~W~ by ~G~_=Gigant=_" time 1500
        end
    end
    
    if 
    10@ == 1
    then
        for 31@ = 0 to 1000
            if 
            30@ = SAMP.GetActorHandleByPlayerID(31@)
            then
            Actor.StorePos(30@, 29@, 28@, 27@)
                if 
                00C2:   sphere_onscreen 29@ 28@ 27@ radius 0.0
                then
                Actor.StorePos($PLAYER_ACTOR, 26@, 25@, 24@)
                SAMP.Convert3DCoordsToScreen(29@, 28@, 27@, 23@, 22@)
                SAMP.Convert3DCoordsToScreen(26@, 25@, 24@, 21@, 20@)
                0470: 14@ = actor 30@ current_weapon 
                call @scm_func 1 14@ 11@ 
                Render.DrawPolygon(23@, 22@, 3, 3, 7, 0, -1174339840)
                format 0@ = format "{FFFFFF}Weapon {FF0F0F}%s{00FF00} %d" 11@ 14@ 
                23@ += 5 
                22@ -= -30 
                Render.DrawText(1@, 0@, 23@, 22@, -1)
                end
            end
        end
    end   
end

:scm_func
0AC6: 1@ = label @weapons offset 
0@ *= 19 
005A: 1@ += 0@ // (int) 
ret 1 1@ 

:weapons
hex
"Duke" 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 { 0 }
"Brass Knuckles" 00 00 00 00 00 { 1 }
"Golf Club" 00 00 00 00 00 00 00 00 00 00 { 2 }
"Nite Stick" 00 00 00 00 00 00 00 00 00 { 3 }
"Knife" 00 00 00 00 00 00 00 00 00 00 00 00 00 00 { 4 }
"Baseball" 00 00 00 00 00 00 00 00 00 00 00 { 5 }
"Shovel" 00 00 00 00 00 00 00 00 00 00 00 00 00 { 6 }
"Pool Cue" 00 00 00 00 00 00 00 00 00 00 00 { 7 }
"Katana" 00 00 00 00 00 00 00 00 00 00 00 00 00 { 8 }
"Chainsaw" 00 00 00 00 00 00 00 00 00 00 00 { 9 }
"Dildo" 00 00 00 00 00 00 00 00 00 00 00 00 00 00 { 10 }
"Dildo" 00 00 00 00 00 00 00 00 00 00 00 00 00 00 { 11 }
"Dildo" 00 00 00 00 00 00 00 00 00 00 00 00 00 00 { 12 }
"Dildo" 00 00 00 00 00 00 00 00 00 00 00 00 00 00 { 13 }
"Flowers" 00 00 00 00 00 00 00 00 00 00 00 00 { 14 }
"Cane" 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 { 15 }
"Grenade" 00 00 00 00 00 00 00 00 00 00 00 00 { 16 }
"Tear Gas" 00 00 00 00 00 00 00 00 00 00 00 { 17 }
"Molotov" 00 00 00 00 00 00 00 00 00 00 00 00 { 18 }
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 { 19 }
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 { 20 }
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 { 21 }
"Pistol" 00 00 00 00 00 00 00 00 00 00 00 00 00 { 22 }
"Silencer" 00 00 00 00 00 00 00 00 00 00 00 { 23 }
"Deagle" 00 00 00 00 00 00 00 00 00 00 00 00 00 { 24 }
"Shotgun" 00 00 00 00 00 00 00 00 00 00 00 00 { 25 }
"SawnOff" 00 00 00 00 00 00 00 00 00 00 00 00 { 26 }
"Spas12" 00 00 00 00 00 00 00 00 00 00 00 00 00 { 27 }
"Tec9" 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 { 28 }
"MP5" 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 { 29 }
"AK47" 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 { 30 }
"M4" 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 { 31 }
"Mac10" 00 00 00 00 00 00 00 00 00 00 00 00 00 00 { 32 }
"Rifle" 00 00 00 00 00 00 00 00 00 00 00 00 00 00 { 33 }
"Sniper" 00 00 00 00 00 00 00 00 00 00 00 00 00 { 34 }
"Rocket Launcher" 00 00 00 00 { 35 }
"HS Rocket Launcher" 00 { 36 }
"Flamethrower" 00 00 00 00 00 00 00 { 37 }
"Minigun" 00 00 00 00 00 00 00 00 00 00 00 00 { 38 }
"C4" 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 { 39 }
"Detonator" 00 00 00 00 00 00 00 00 00 00 { 40 }
"Spray" 00 00 00 00 00 00 00 00 00 00 00 00 00 00 { 41 }
"Fire Extinguisher" 00 00 { 42 }
"Camera" 00 00 00 00 00 00 00 00 00 00 00 00 00 { 43 }
"Nightvision" 00 00 00 00 00 00 00 00 { 44 }
"Infrared Vision" 00 00 00 00 { 45 }
"Parachute" 00 00 00 00 00 00 00 00 00 00 { 46 }
end
 

tydeushd

Новичок
Автор темы
8
0
@tydeushd

line 16
keycodes

CLEO:
{$CLEO.cs}
{$USE bitwise}
{$USE CLEO+}

0000:

repeat
wait 0
until Samp.Available()
alloc 0@100
1@ = Render.CreateFont("Arial", 10, 1)

while true
wait 0
    if
    0C89: key_just_pressed 114 // F3
    then
    0B12: 10@ = 10@ XOR 1
        if
        10@ == 1
        then
        print "~Y~Weapons Informer~G~ [ON] ~W~ by ~G~_=Gigant=_" time 1500
        else
        printf "~Y~Weapons Informer~R~ [OFF] ~W~ by ~G~_=Gigant=_" time 1500
        end
    end
  
    if
    10@ == 1
    then
        for 31@ = 0 to 1000
            if
            30@ = SAMP.GetActorHandleByPlayerID(31@)
            then
            Actor.StorePos(30@, 29@, 28@, 27@)
                if
                00C2: sphere_onscreen 29@ 28@ 27@ radius 0.0
                then
                Actor.StorePos($PLAYER_ACTOR, 26@, 25@, 24@)
                SAMP.Convert3DCoordsToScreen(29@, 28@, 27@, 23@, 22@)
                SAMP.Convert3DCoordsToScreen(26@, 25@, 24@, 21@, 20@)
                0470: 14@ = actor 30@ current_weapon
                call @scm_func 1 14@ 11@
                Render.DrawPolygon(23@, 22@, 3, 3, 7, 0, -1174339840)
                format 0@ = format "{FFFFFF}Weapon {FF0F0F}%s{00FF00} %d" 11@ 14@
                23@ += 5
                22@ -= -30
                Render.DrawText(1@, 0@, 23@, 22@, -1)
                end
            end
        end
    end 
end

:scm_func
0AC6: 1@ = label @weapons offset
0@ *= 19
005A: 1@ += 0@ // (int)
ret 1 1@

:weapons
hex
"Duke" 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 { 0 }
"Brass Knuckles" 00 00 00 00 00 { 1 }
"Golf Club" 00 00 00 00 00 00 00 00 00 00 { 2 }
"Nite Stick" 00 00 00 00 00 00 00 00 00 { 3 }
"Knife" 00 00 00 00 00 00 00 00 00 00 00 00 00 00 { 4 }
"Baseball" 00 00 00 00 00 00 00 00 00 00 00 { 5 }
"Shovel" 00 00 00 00 00 00 00 00 00 00 00 00 00 { 6 }
"Pool Cue" 00 00 00 00 00 00 00 00 00 00 00 { 7 }
"Katana" 00 00 00 00 00 00 00 00 00 00 00 00 00 { 8 }
"Chainsaw" 00 00 00 00 00 00 00 00 00 00 00 { 9 }
"Dildo" 00 00 00 00 00 00 00 00 00 00 00 00 00 00 { 10 }
"Dildo" 00 00 00 00 00 00 00 00 00 00 00 00 00 00 { 11 }
"Dildo" 00 00 00 00 00 00 00 00 00 00 00 00 00 00 { 12 }
"Dildo" 00 00 00 00 00 00 00 00 00 00 00 00 00 00 { 13 }
"Flowers" 00 00 00 00 00 00 00 00 00 00 00 00 { 14 }
"Cane" 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 { 15 }
"Grenade" 00 00 00 00 00 00 00 00 00 00 00 00 { 16 }
"Tear Gas" 00 00 00 00 00 00 00 00 00 00 00 { 17 }
"Molotov" 00 00 00 00 00 00 00 00 00 00 00 00 { 18 }
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 { 19 }
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 { 20 }
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 { 21 }
"Pistol" 00 00 00 00 00 00 00 00 00 00 00 00 00 { 22 }
Silencer 00 00 00 00 00 00 00 00 00 00 00 { 23 }
"Deagle" 00 00 00 00 00 00 00 00 00 00 00 00 00 { 24 }
"Shotgun" 00 00 00 00 00 00 00 00 00 00 00 00 { 25 }
"SawnOff" 00 00 00 00 00 00 00 00 00 00 00 00 { 26 }
"Spas12" 00 00 00 00 00 00 00 00 00 00 00 00 00 { 27 }
"Tec9" 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 { 28 }
"MP5" 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 { 29 }
"AK47" 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 { 30 }
"M4" 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 { 31 }
"Mac10" 00 00 00 00 00 00 00 00 00 00 00 00 00 00 { 32 }
"Rifle" 00 00 00 00 00 00 00 00 00 00 00 00 00 00 { 33 }
"Sniper" 00 00 00 00 00 00 00 00 00 00 00 00 00 { 34 }
"Rocket Launcher" 00 00 00 00 { 35 }
"HS Rocket Launcher" 00 { 36 }
Flamethrower 00 00 00 00 00 00 00 { 37 }
"Minigun" 00 00 00 00 00 00 00 00 00 00 00 00 { 38 }
"C4" 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 { 39 }
"Detonator" 00 00 00 00 00 00 00 00 00 00 { 40 }
"Spray" 00 00 00 00 00 00 00 00 00 00 00 00 00 00 { 41 }
"Fire Extinguisher" 00 00 { 42 }
"Camera" 00 00 00 00 00 00 00 00 00 00 00 00 00 { 43 }
"Nightvision" 00 00 00 00 00 00 00 00 { 44 }
"Infrared Vision" 00 00 00 00 { 45 }
"Parachute" 00 00 00 00 00 00 00 00 00 00 { 46 }
end
h, first of all, thank you.
but its not working, the weapons showing with "D"
how can i fix it?
 
Последнее редактирование:

D3.Pheonix

🎹
Модератор
2,867
1,644

Вложения

  • 1675848912618.png
    1675848912618.png
    133.6 KB · Просмотры: 27
  • 1675849791996.png
    1675849791996.png
    177.4 KB · Просмотры: 25
Статус
В этой теме нельзя размещать новые ответы.