#1 GTA Modding » CLEO for gta4? » 18-12-2008 19:29

gaffkanone
Replies: 0

will cleo be for gta4 too?

regards

#2 Re: GTA Modding » my script make beeps and i dont know why » 26-10-2008 17:09

Seemann wrote:

I said it zillion times: do not use global variables in CLEO scripts, they cause troubles.

jo, thanks for that info, not knewed ^^

#3 GTA Modding » my script make beeps and i dont know why » 24-10-2008 13:33

gaffkanone
Replies: 2

Hi all,

i createt a simple speedometer, but when i enter a car, on the keys:

W & F i got always a beep when i press it. if im out of the car it stops..

whats that?

here my code:

// This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007

{$VERSION 3.1.0027}
{$CLEO .cs}

//-------------MAIN---------------
wait 3 
0@ = 0 

:NONAME_11
wait 100 
if 
   Player.Defined($PLAYER_CHAR)
else_jump @NONAME_11 
if 
  $ONMISSION == 0 
else_jump @NONAME_11 
077E: get_active_interior_to 1@ 
if 
003A:   1@ == 0@ // (int) 
else_jump @NONAME_11 
if and
   not Actor.Dead($PLAYER_ACTOR)
   Actor.Driving($PLAYER_ACTOR)
else_jump @NONAME_11 
0391: release_txd_dictionary 
03C0: $12410 = actor $PLAYER_ACTOR car 
0390: load_txd_dictionary "PANIC" 
038F: load_texture "RAHMEN" as 99
wait 0 
08D4: $12411 = create_panel_with_title 'DUMMY' position 450.0 7.0 width 40.0 columns 1 interactive 1 background 0 alignment 0 
08DB: set_panel $12411 column 0 header 'DUMMY' data 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 

:NONAME_290
wait 0 
if and
   Actor.Driving($PLAYER_ACTOR)
056E:   car $12410 defined 
   not Car.Wrecked($12410)
003A:   1@ == 0@ // (int) 
else_jump @NONAME_484 
02E3: $12412 = car $12410 speed 
$12412 *= 2.2018 
$12412 += 60.0 
02E3: $12413 = car $12410 speed 
$12413 *= 2.4018 
008C: $12413 = float $12413 to_integer 
08EE: set_panel $12411 column 0 row 0 text_1number GXT 'NUMBER' number $12413 
038D: draw_texture 99 position 483.0 49.0 size 43.0 48.0 RGBA 255 255 255 255 
03F0: enable_text_draw 0 
077E: get_active_interior_to 1@ 
if or
803A:   not  1@ == 0@ // (int) 
  $ONMISSION == 1 
   Actor.Dead($PLAYER_ACTOR)
   Car.Wrecked($12410)
else_jump @NONAME_290 

:NONAME_484
wait 10 
Car.RemoveReferences($12410)
08DA: remove_panel $12411 
wait 1 
03F0: enable_text_draw 0 
wait 1 
0391: release_txd_dictionary 
jump @NONAME_11

#4 GTA Modding » custom *.dat files with CLEO? » 01-09-2008 22:40

gaffkanone
Replies: 2

Hey all,

is it possible to use some custom *.dat files (handling.dat, water.dat or weapon.dat.....) with cleo3?

greez gaff

#6 GTA Modding » create a loop » 25-02-2008 15:47

gaffkanone
Replies: 2

can anyone help me?

code:

//start loop

:NONAME_4
01B6: set_weather 42
jump @NONAME_2

//load next after 20000MS

:NONAME_2
01B6: set_weather 32
jump @NONAME_5

//load next after 20000ms

:NONAME_5
01B6: set_weather 22
jump @NONAME_4

//wait 20000ms & restart the loop

greez

#7 Re: GTA Modding » one key press but sporadic/dice commands » 24-02-2008 03:53

thx but i have a failure after compiling:

Unkorrekte Direktive: JiF @UserKeyPress.

EDIT:

when i fix the errors to that commandoline:
jF @UserKeyPress

&

jF @ImmunityOn

my game still crash after loading

#8 GTA Modding » one key press but sporadic/dice commands » 23-02-2008 20:08

gaffkanone
Replies: 2

hi all,

is it possible to create a command like:

i press one key
script use sporadic one command of two


here a exapmle code:
:NONAME_2
wait 0
0AB0:   key_pressed 32
jf @NONAME_2
Actor.SetImmunities($PLAYER_ACTOR, 1, 0, 0, 0, 0)
jf @NONAME_2
Actor.SetImmunities($PLAYER_ACTOR, 0, 0, 0, 0, 0)
jump @NONAME_2


greez

#9 Re: GTA Modding » immunities bullets problem » 17-02-2008 13:53

Seemann wrote:

Use $PLAYER_ACTOR instead of 0@

seemann you are the best wink clap

working code for maybe other user's:
0000: NOP

:NONAME_2
wait 0
0AB0:   key_pressed 81
else_jump @NONAME_2
  Actor.SetImmunities($PLAYER_ACTOR, 1, 0, 0, 0, 0)
else_jump @NONAME_2
02AB: set_actor $PLAYER_ACTOR immunities BP 1 FP 0 EP 0 DP 0 SP 0
jump @NONAME_2

#10 GTA Modding » immunities bullets problem » 16-02-2008 03:19

gaffkanone
Replies: 2

hello guys,

i want press the Q key - result: no bullets can hit me

here the code:
//-------------MAIN---------------
0000: NOP

:NONAME_2
wait 0
0AB0:   key_pressed 81
else_jump @NONAME_2
  Actor.SetImmunities(0@, 1, 0, 0, 0, 0)
else_jump @NONAME_2
02AB: set_actor 0@ immunities BP 1 FP 0 EP 0 DP 0 SP 0
jump @NONAME_2


but if i press Q, the game crash, what im doing wrong?

greez

Board footer

Powered by FluxBB