CLEO Help Cleo file

CLEO related
Status
Not open for further replies.

kingas18674

Member
Joined
Oct 14, 2018
Messages
11
Reaction score
0
* Name of the mod (if the mod doesn't exist, you don't have to tell one): Num 7 /ant
* Where you saw it (not the server, we mean if you saw any videos/screenshots about it or not): I didn't saw it.
* What do you want (the most important part, explain this carefully) when you press num 7 the nearbiest person gets /ant
* Details (add more details to your request) When you press num 7 person gets arrested.
* On/off key (specify it): Num 7
 

monday

Expert
Joined
Jun 23, 2014
Messages
1,126
Solutions
1
Reaction score
157
I used few of these, I don't have sanny builder but you could easily edit one of them if you do. All you have to edit is the "virtual key":
key_down 105

And text formatting instruction:
0AD3: 0@v = format "/ta %d" 2@

(put "ant" instead of "ta")


Btw check out this 'analysis':
Python:
# python 3
def p(v):
    print(len(v))

template = '''* Name of the mod (if the mod doesn't exist, you don't have to tell one):
* Where you saw it (not the server, we mean if you saw any videos/screenshots about it or not):
* What do you want (the most important part, explain this carefully)
* Details (add more details to your request)
* On/off key (specify it):'''

template_filled = '''* Name of the mod (if the mod doesn't exist, you don't have to tell one): Num 7 /ant
* Where you saw it (not the server, we mean if you saw any videos/screenshots about it or not): I didn't saw it.
* What do you want (the most important part, explain this carefully) when you press num 7 the nearbiest person gets /ant
* Details (add more details to your request) When you press num 7 person gets arrested.
* On/off key (specify it): Num 7'''

filled_text = ''' Num 7 /ant
I didn't saw it.
when you press num 7 the nearbiest person gets /ant
When you press num 7 person gets arrested.
Num 7'''

useful_text = 'when you press num 7 the nearbiest person gets /ant'

p(template)
p(template_filled)
p(filled_text)
p(useful_text)

310
439
129
51

The post has 439 characters of which 310 is from the template.
Filled text has 129 characters of which 51 is actually useful.
12% of the post is useful.
 

Attachments

  • bind_arrest[0].cs
    17.7 KB · Views: 8
  • bind_cuff[0].cs
    17.7 KB · Views: 4
  • bind_rape.cs
    17.7 KB · Views: 0
  • bind_rob.cs
    17.7 KB · Views: 0
  • bind_tazer[0].cs
    17.7 KB · Views: 0

Parazitas

God
Joined
Jan 2, 2017
Messages
3,116
Solutions
5
Reaction score
882
Location
Lithuania
Edited...

PHP:
{$CLEO .cs}
0000: NOP

thread "arrest"

while true
wait 0

if and
056D:   actor $PLAYER_ACTOR defined
0ab0: 107
then
    0AB5: store_actor $PLAYER_ACTOR closest_vehicle_to 0@ closest_ped_to 1@
    if
    056D:   actor 1@ defined
    then
        2@ = SAMP.GetSAMPPlayerIDByActorHandle(1@)
        0AC8: 3@ = allocate_memory_size 260
        0AD3: 3@ = format "/ant %d" 2@
        0AF9: samp say_msg 3@
    end
end

end
 
Last edited:
Status
Not open for further replies.
Top