UG-Base Gamehacking

Full Version: How to do this...
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Quote:{$CLEO .cs}

//-------------MAIN---------------
0000: NOP

:Noname_2
wait 400
  SAMP.Available
else_jump
0000: NOP

:Noname_18
0AF0: [email protected] = get_int_from_ini_file "cleo\cleo.ini" section "Activation" key "KEY"
0AF0: [email protected] = get_int_from_ini_file "cleo\cleo.ini" section "Activation" key "KEY2"
0AC8: [email protected] = 260
0AF4: [email protected] = get_string_from_ini_file "cleo\cleo.ini" section "Activation" key "SAY"
wait 0
if and
key_down [email protected]
key_down [email protected]
else_jump
gosub
0ADE: [email protected] = text_by_GXT_entry s$93
0ADE: [email protected] = text_by_GXT_entry s$95
0AF9: samp say_msg "%s %s, %s!" [email protected] [email protected] [email protected]
wait 200
jump

:Noname_221
0AC9: [email protected]
jump

:Noname_228
wait 0
gosub
gosub
if or
05AD:  s$93 == 'la' // s$ == short
05AD:  s$93 == 'sf' // s$ == short
05AD:  s$93 == 've' // s$ == short
else_jump
05A9: s$93 = 'ct' // s$

:Noname_313
if
05AD:  s$93 == 'san_and' // s$ == short
else_jump
05A9: s$93 = 'cn' // s$

:Noname_352
return

:Noname_354
Actor.StorePos($PLAYER_ACTOR, [email protected], [email protected], [email protected])
0843: get_zone_at [email protected] [email protected] [email protected] nameA_to s$93 // 8-byte string
return

:Noname_384
gosub
if
  [email protected] == 0
else_jump
05A9: s$95 = 'cs' // s$

:Noname_423
if
  [email protected] == 1
else_jump
05A9: s$95 = 'la' // s$

:Noname_455
if
  [email protected] == 2
else_jump
05A9: s$95 = 'sf' // s$

:Noname_487
if
  [email protected] == 3
else_jump
05A9: s$95 = 've' // s$

:Noname_519
if
05AD:  s$93 == 'san_and' // s$ == short
else_jump
05A9: s$95 = 'san_and' // s$

:Noname_558
if
05AD:  s$93 == 'la' // s$ == short
else_jump
05A9: s$95 = 'la' // s$

:Noname_597
if
05AD:  s$93 == 'sf' // s$ == short
else_jump
05A9: s$95 = 'sf' // s$

:Noname_636
if
05AD:  s$93 == 've' // s$ == short
else_jump
05A9: s$95 = 've' // s$

:Noname_675
return

:Noname_677
0842: [email protected] = player $PLAYER_CHAR town_number
return
In that code, i want to have like 5 things to say, with different keys all, and all from a .ini, i tried some shit but don't work, i tried with thermal, springfield and opcode but are too busy haha, so i put this here if they have some free time or anyone have free time to help me with this, i will grateful
Imoverit I still dont know what this shit is xD
Is this code useless or i'm too lazzy to read it?
(06-20-2014, 04:11 PM)Opcode.eXe link Wrote: [ -> ]Imoverit I still dont know what this shit is xD
You say in .ini, in "SAY" what you got in [email protected]
So you will say...

Example: I need a car in Idlewood, Los Santos (where you are)

all here is good

but now i want to do some multiple lines for this, so i can put more thing and not just one...

you understand?
spammer  :kidding:?
//bump
I will try make this later when i get on my pc , just have to know how you can read .ini from cleo and the rest should be fine Big Grin
Here, with 5 keys and 5 strings.
(06-21-2014, 11:49 PM)springfield link Wrote: [ -> ]Here, with 5 keys and 5 strings.
Springfield, no words to say to you, amazing bro, amazing...