Cleo script fehler

09/13/2012 07:49 Gee4mnb#1
Heyo Leute,

Ich hab mich mal an den fakelag,cs rangemacht.

Und hab versucht ihn per tastendruck ausschalten lassen zu können.

So siehts bis jz aus


:NONAME_4
wait 0
if
not Actor.Stopped($PLAYER_ACTOR)
else_jump @NONAME_4
Actor.SetImmunities($PLAYER_ACTOR, 0, 0, 0, 0, 0)
wait 50
Actor.SetImmunities($PLAYER_ACTOR, 1, 0, 0, 0, 0)
wait 400
Actor.SetImmunities($PLAYER_ACTOR, 0, 0, 0, 0, 0)
wait 500
If
key_pressed 105
jump_if_false @NONAME_4
Actor.SetImmunities($PLAYER_ACTOR, 0, 0, 0, 0, 0)
wait 10000ms
Actor.SetImmunities($PLAYER_ACTOR, 1, 0, 0, 0, 0)
jump @NONAME_4

das Problem liegt bei der Pressed_key 105
oder vllt iwo anders. Ich bekomme immer diese fehlermeldung wenn ich das kompilieren will: Unkorrekte Direktive: player 0 pressed_key 105 :(

/edit

Die Fehlermeldung kommt nicht mehr. Allerdings ne neue -.-
Fehler: Nicht genügend Paramter geben. 1 ewartet

Hier der Script.

wait 0

:NONAME_4
wait 0
if
not Actor.Stopped($PLAYER_ACTOR)
else_jump @NONAME_4
Actor.SetImmunities($PLAYER_ACTOR, 0, 0, 0, 0, 0)
wait 50
Actor.SetImmunities($PLAYER_ACTOR, 1, 0, 0, 0, 0)
wait 400
Actor.SetImmunities($PLAYER_ACTOR, 0, 0, 0, 0, 0)
wait 500
If
00E1: player 0 pressed_key 105
004D: jump_if_false @NONAME_4
Actor.SetImmunities($PLAYER_ACTOR, 0, 0, 0, 0, 0)
wait 10000ms
Actor.SetImmunities($PLAYER_ACTOR, 1, 0, 0, 0, 0)
jump @NONAME_4
09/14/2012 06:51 Gee4mnb#2
Quote:
wait 0

:NONAME_4
wait 0
if
not Actor.Stopped($PLAYER_ACTOR)
else_jump @NONAME_4
Actor.SetImmunities($PLAYER_ACTOR, 0, 0, 0, 0, 0)
wait 50
Actor.SetImmunities($PLAYER_ACTOR, 1, 0, 0, 0, 0)
wait 400
Actor.SetImmunities($PLAYER_ACTOR, 0, 0, 0, 0, 0)
wait 500
If
00E1: player 0 pressed_key 105
004D: jump_if_false @NONAME_4
Actor.SetImmunities($PLAYER_ACTOR, 0, 0, 0, 0, 0)
wait 1000ms
Actor.SetImmunities($PLAYER_ACTOR, 1, 0, 0, 0, 0)
wait 500
Actor.SetImmunities($PLAYER_ACTOR, 0, 0, 0, 0, 0)
jump @NONAME_4
klappt leider auch nicht :(

Hier mal das original ohne ausschalten bzw. ein. Vielleicht könnte mir das jmd erklären,wie man das ausmacht und wieder einschaltet. :) Wäre sehr nett ;)

PHP 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 0 

:NONAME_4
wait 0
if
not Actor.Stopped($PLAYER_ACTOR)
else_jump @NONAME_4
Actor
.SetImmunities($PLAYER_ACTOR00000)
wait 50
Actor
.SetImmunities($PLAYER_ACTOR10000)
wait 400
Actor
.SetImmunities($PLAYER_ACTOR00000)
wait 500
jump 
@:NONAME_4 
09/14/2012 20:53 OpcodeEXE#3
Hm.... vll. erstmal nen Tutorial durchlesen?


Code:
{$CLEO .cs}

//////////////////////

THREAD "Opcode_ist_mein_master" // :DDD

:START
wait 0
if
key_pressed 105
jf @START
// TURNED ON.
wait 1337

:END
wait 0
if
key_pressed 105
jf @NOPE
// TURNED OFF.
wait 1337
jump @START


:NOPE
wait 0
if
not Actor.Stopped($PLAYER_ACTOR)
else_jump @END
Actor.SetImmunities($PLAYER_ACTOR, 0, 0, 0, 0, 0)
wait 50
Actor.SetImmunities($PLAYER_ACTOR, 1, 0, 0, 0, 0)
wait 400
Actor.SetImmunities($PLAYER_ACTOR, 0, 0, 0, 0, 0)
wait 500
jump @END
Have fun
(man braucht nur 1min wenn man sowas kann)
// :D Let the creditss for mee :O?
09/15/2012 10:59 Gee4mnb#4
ur the best! :D

//edit

Also wenn ich das kompilieren will steht unkorrekte direktive key_pressed 105 :/
Das hatte ich am anfang auch...was tun :( ?
09/16/2012 14:51 Gee4mnb#5
/push ;)
09/19/2012 18:20 OpcodeEXE#6
Ohh, gott^^
Denk mal nach was ich mit key_pressed meinte ._.,
Hier musste nurnoch compilen...

Code:
{$CLEO .cs}

//////////////////////

THREAD "Opcode_ist_mein_master" // :DDD

:START
wait 0
if
0AB0: key_pressed 105
jf @START
// TURNED ON.
wait 1337

:END
wait 0
if
0AB0: key_pressed 105
jf @NOPE
// TURNED OFF.
wait 1337
jump @START


:NOPE
wait 0
if
not Actor.Stopped($PLAYER_ACTOR)
else_jump @END
Actor.SetImmunities($PLAYER_ACTOR, 0, 0, 0, 0, 0)
wait 50
Actor.SetImmunities($PLAYER_ACTOR, 1, 0, 0, 0, 0)
wait 400
Actor.SetImmunities($PLAYER_ACTOR, 0, 0, 0, 0, 0)
wait 500
jump @END
09/23/2012 16:30 Gee4mnb#7
Funkt super ;)