AutoGuard.cs

Status
Not open for further replies.

RaffPo

Member
Joined
Jan 18, 2020
Messages
20
Reaction score
1
Location
italia
Edit the code so it does "./guard" and not "/guard" and then show the result (wouldn't advise doing it on that server btw).

If it's what I think it is then you may need to change a setting in Sannybuilder.
I changed the command from / vest to / guard now when I aim at someone it gives me error and samp crash
 

Zin

Expert
Joined
Aug 1, 2013
Messages
1,690
Reaction score
103
and you have sampfuncs, cleo 4.1 and you set the case converting right?
 

Zin

Expert
Joined
Aug 1, 2013
Messages
1,690
Reaction score
103
I have sampfuncs and cleo 4.1, and i have set the case converting at "As is"
In that case it's down to you to find the issue as basically you've ticked all the boxes to make it work. Nothing more I can tell you.
 

RaffPo

Member
Joined
Jan 18, 2020
Messages
20
Reaction score
1
Location
italia
I finded this
PHP:
{$CLEO .cs}

0000: NOP

REPEAT
WAIT 0
UNTIL 0AFA:



WHILE TRUE
wait 0

if
0AD2: 3@ = player $PLAYER_CHAR targeted_actor //IF and SET
then
if
056D: actor 3@ defined
then
if
0AB0: key_pressed 90
then
0B2B: samp 4@ = get_player_id_by_actor_handle 3@
0B79: samp set_chat_input_enabled 1
alloc 8@ 8
format 8@ "/guard %d 200" 4@
0B76: samp set_chat_input_text 8@
wait 1000
end
end
end

But why it says me so when i complie it?
 

Attachments

  • Cattura.PNG
    Cattura.PNG
    43.5 KB · Views: 12

san11

Active member
Joined
Aug 13, 2015
Messages
51
Reaction score
3
probably because of "alloc 8@" 8

try
0AC8: 8@ = allocate_memory_size 260 instead
 

san11

Active member
Joined
Aug 13, 2015
Messages
51
Reaction score
3
Here, i compiled it for you

Good luck
 

Attachments

  • guard.cs
    17.7 KB · Views: 15

OkAnd

New member
Joined
Feb 5, 2020
Messages
2
Reaction score
0
Location
Sweden
confused how no one here managed to get you a working aim guard cleo/lua mod faster, that shit is so common literally everyone on horizon roleplay uses it, and theres about 200 different versions.

here u go both aimguard and guardnear, guardnear guards anyone closeby to you, randomly picked.

aimguard - AIM + B
guardnear - ALT + Z

DO NOTE THAT THESE GUARDS PEOPLE USING THIS BIND "/guard id 200" SO IF YOU HAVE DIFFERENT PRICES, OR ANYTHING ELSE, YOU WILL HAVE TO EDIT THIS YOURSELF.
 

Attachments

  • aimguard and guardnear.rar
    14.5 KB · Views: 71

RaffPo

Member
Joined
Jan 18, 2020
Messages
20
Reaction score
1
Location
italia
confused how no one here managed to get you a working aim guard cleo/lua mod faster, that shit is so common literally everyone on horizon roleplay uses it, and theres about 200 different versions.

here u go both aimguard and guardnear, guardnear guards anyone closeby to you, randomly picked.

aimguard - AIM + B
guardnear - ALT + Z

DO NOTE THAT THESE GUARDS PEOPLE USING THIS BIND "/guard id 200" SO IF YOU HAVE DIFFERENT PRICES, OR ANYTHING ELSE, YOU WILL HAVE TO EDIT THIS YOURSELF.

Thanks !! :)
 
Status
Not open for further replies.
Top