CLEO Help help needed with editing /sellgun cleo

CLEO related
Status
Not open for further replies.

Aasaad

Active member
Joined
Feb 20, 2013
Messages
53
Reaction score
0
there exists a /sellgun cleo mod for shotgun
does anyone know how to make it for mp5 or any other guns, what do i have to change it to make it type /sellgun ID Mp5 

This is the code for the existing cleo mod, I have also added it as an attachment
Code:
{$CLEO .cs}
0000:
 
 
REPEAT
    WAIT 0
UNTIL 0AFA:  SAMP_IS_READY 
 
WHILE TRUE
    WAIT 0 
         
    IF AND
    key_down  2 {Right Mouse}
    key_down 66 {B Key}
    THEN
        IF 0AD2: 0@ = player $PLAYER_CHAR targeted_actor
        THEN
            0B2B: samp 1@ = get_player_id_by_actor_handle 0@
            say "/sellgun %d" 1@
            wait 2000 /// Anti spam
        END
    END
     
END   /// END WHILE TRUE
 

Attachments

  • SellGun.cs
    17.7 KB · Views: 13

monday

Expert
Joined
Jun 23, 2014
Messages
1,125
Reaction score
149
hi, I guess all you'd have to do is to edit the following line:
Code:
say "/sellgun %d" 1@
into:
Code:
say "/sellgun %d mp5" 1@
 

Aasaad

Active member
Joined
Feb 20, 2013
Messages
53
Reaction score
0
EcdcRcc.png


I get this error when I do. I guess it has something to do with the latest version of Sanny Builder?
 

Aasaad

Active member
Joined
Feb 20, 2013
Messages
53
Reaction score
0
monday said:
http://ugbase.eu/Thread-Solution-Unknown-Directive-error-Sanny-Builder

This worked out for sorting out the compiling error


Okay but now the problem is, when I use the script, it says the player isn't near you.
 
Status
Not open for further replies.
Top