{$CLEO .cs}
{$USE bitwise}
0000:
WHILE TRUE
WAIT 0
IF 0ADC: test_cheat "B"
THEN
0B12: 31@ = 31@ XOR 1
IF 31@ == 0
THEN 0AD1: "~n~~n~~w~God ~r~wylaczony" 1000
END
END
IF 31@ == 1
THEN
IF 0256: player $PLAYER_CHAR defined
THEN
0B12: 30@ = 30@ XOR 1
IF 30@ == 1
THEN
0226: 0@ = actor $PLAYER_ACTOR health
0223: set_actor $PLAYER_ACTOR health_to 0@
02AB: set_actor $PLAYER_ACTOR immunities BP 1 FP 0 EP 0 CP 0 MP 0
0AD1: "~n~~n~~w~God ~g~aktywny" 1250
WAIT 1250
ELSE
02AB: set_actor $PLAYER_ACTOR immunities BP 0 FP 0 EP 0 CP 0 MP 0
0AD1: "~n~~n~~w~God ~r~nie aktywny" 250
WAIT 250
END
END
END
END
0A93: terminate_this_custom_script
TYSM!Maybe like this? Press B.
PHP:{$CLEO .cs} {$USE bitwise} 0000: WHILE TRUE WAIT 0 IF 0ADC: test_cheat "B" THEN 0B12: 31@ = 31@ XOR 1 IF 31@ == 0 THEN 0AD1: "~n~~n~~w~God ~r~wylaczony" 1000 END END IF 31@ == 1 THEN IF 0256: player $PLAYER_CHAR defined THEN 0B12: 30@ = 30@ XOR 1 IF 30@ == 1 THEN 0226: 0@ = actor $PLAYER_ACTOR health 0223: set_actor $PLAYER_ACTOR health_to 0@ 02AB: set_actor $PLAYER_ACTOR immunities BP 1 FP 0 EP 0 CP 0 MP 0 0AD1: "~n~~n~~w~God ~g~aktywny" 1250 WAIT 1250 ELSE 02AB: set_actor $PLAYER_ACTOR immunities BP 0 FP 0 EP 0 CP 0 MP 0 0AD1: "~n~~n~~w~God ~r~nie aktywny" 250 WAIT 250 END END END END 0A93: terminate_this_custom_script