AutoGuard.cs

Status
Not open for further replies.

RaffPo

Member
Joined
Jan 18, 2020
Messages
20
Reaction score
1
Location
italia
I need help, someone can give me this cleo? Auto /vest id 200.
 

RaffPo

Member
Joined
Jan 18, 2020
Messages
20
Reaction score
1
Location
italia
* Name of the mod (if the mod doesn't exist, you don't have to tell one): AutoGuard.cs
* Where you saw it (not the server, we mean if you saw any videos/screenshots about it or not): In HZRP server
* What do you want (the most important part, explain this carefully) I want a cleo: i need aim someone and press B for use /vest id 200, for sell vest
* Details (add more details to your request) -
* On/off key (specify it): Aim someone and press B
 

san11

Active member
Joined
Aug 13, 2015
Messages
51
Reaction score
3
So when you aim at someone and press B it automatically types /vest 200 in the chatbox ?
 

san11

Active member
Joined
Aug 13, 2015
Messages
51
Reaction score
3
Something like this

PHP:
{$CLEO .cs}
0000:

WHILE TRUE
    WAIT 0
    IF AND
    0AD2: 0@ = player $PLAYER_CHAR targeted_actor
    0AB0:   key_pressed 66

    THEN
        say "/vest 200"
    END
END
 

RaffPo

Member
Joined
Jan 18, 2020
Messages
20
Reaction score
1
Location
italia
Something like this

PHP:
{$CLEO .cs}
0000:

WHILE TRUE
    WAIT 0
    IF AND
    0AD2: 0@ = player $PLAYER_CHAR targeted_actor
    0AB0:   key_pressed 66

    THEN
        say "/vest 200"
    END
END

I'm so bad can you send it to me finished? But i think it doesn't work becouse the id player is missing.
I need something like this:

PHP:
{$CLEO .cs}

0000: NOP
thread "ChaosGuard"

REPEAT
    WAIT 100
UNTIL  0AFA: is_samp_available

WHILE TRUE
    WAIT 0
    IF
        0AD2: 0@ = player $PLAYER_CHAR targeted_actor
    THEN
        0B2B: samp 1@ = get_player_id_by_actor_handle 0@ 

        IF
            0AB0: key_pressed 66
        THEN
            0AF9: samp say_msg "/vest %i 200" 1@
            wait 500
        END
    END            
END
 

Fr0z3n

Well-known member
Joined
Nov 20, 2019
Messages
301
Reaction score
36
Location
Srbija
I'm so bad can you send it to me finished? But i think it doesn't work becouse the id player is missing.
I need something like this:

PHP:
{$CLEO .cs}

0000: NOP
thread "ChaosGuard"

REPEAT
    WAIT 100
UNTIL  0AFA: is_samp_available

WHILE TRUE
    WAIT 0
    IF
        0AD2: 0@ = player $PLAYER_CHAR targeted_actor
    THEN
        0B2B: samp 1@ = get_player_id_by_actor_handle 0@ 

        IF
            0AB0: key_pressed 66
        THEN
            0AF9: samp say_msg "/vest %i 200" 1@
            wait 500
        END
    END            
END

Haha you said you are bad and you add more codes hahaja
 

RaffPo

Member
Joined
Jan 18, 2020
Messages
20
Reaction score
1
Location
italia
But i don't understand why it doesn't work, in the game it work but it is as if it misses the command
 

san11

Active member
Joined
Aug 13, 2015
Messages
51
Reaction score
3
If you aim at player and press B at the same time it will only say /vest 200, i know you want it to be /vest playerID 200 but
I don't know how to get player id, i think you need player address or smting.
 

Attachments

  • aimAT.cs
    17.4 KB · Views: 17

_Safa

Well-known member
Joined
Sep 22, 2019
Messages
297
Reaction score
103
Location
UGBASE
So what happens in-game exactly? You people always just say "mimii doesnt work help pls", yea but what about explaining what actually DOESN'T work?
 

Zin

Expert
Joined
Aug 1, 2013
Messages
1,724
Solutions
2
Reaction score
113
So what happens in-game exactly? You people always just say "mimii doesnt work help pls", yea but what about explaining what actually DOESN'T work?
Nothing actually. The CLEO file the OP sent is perfectly fine. At this point should just leave it down to him to fix as he clearly doesn't want help.
 

Attachments

  • sa-mp-078.png
    sa-mp-078.png
    1.5 MB · Views: 36

Fr0z3n

Well-known member
Joined
Nov 20, 2019
Messages
301
Reaction score
36
Location
Srbija
Nothing actually. The CLEO file the OP sent is perfectly fine. At this point should just leave it down to him to fix as he clearly doesn't want help.

Hhahahaha
 

RaffPo

Member
Joined
Jan 18, 2020
Messages
20
Reaction score
1
Location
italia
Nothing actually. The CLEO file the OP sent is perfectly fine. At this point should just leave it down to him to fix as he clearly doesn't want help.
So what happens in-game exactly? You people always just say "mimii doesnt work help pls", yea but what about explaining what actually DOESN'T work?

/vest id 200 or /guard id 200 both work on this server but this Cleo file for me doesn't work.
 

Attachments

  • sa-mp-040.png
    sa-mp-040.png
    1.2 MB · Views: 31
Last edited:

Zin

Expert
Joined
Aug 1, 2013
Messages
1,724
Solutions
2
Reaction score
113
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.
In order to preserve original string formatting go to Options(F10) -> Formats and set "Case converting" option to "As is".
 
Status
Not open for further replies.
Top