Sunny_Forelli
Active member
- Joined
- May 13, 2013
- Messages
- 85
- Reaction score
- 0
Hi.
I have a problem.
How can I do that, if I click e.g. the key "Y" to not start the mod when the SAMP Chat is open.
I did use this SAMPFUNCS opcode:
0B21: samp is_chat_opened
If I press "Y" in the SAMP Chat the mod should not work.
But I press "Y" when the SAMP Chat is not openend, then the mod should work
Here's the code which is not working the way I want
I have a problem.
How can I do that, if I click e.g. the key "Y" to not start the mod when the SAMP Chat is open.
I did use this SAMPFUNCS opcode:
0B21: samp is_chat_opened
If I press "Y" in the SAMP Chat the mod should not work.
Here's the code which is not working the way I want
Code:
:NONAME_27
wait 0
0AB5: store_actor $PLAYER_ACTOR closest_vehicle_to 0@ closest_ped_to 1@
if
Car.Defined(0@)
if and
0B21: not samp is_chat_opened
else_jump @NONAME_95
Car.StorePos(0@, 3@, 4@, 5@)
Actor.PutAt($PLAYER_ACTOR, 3@, 4@, 5@)
Camera.SetBehindPlayer
0881: set_player $PLAYER_CHAR able_to_shoot_weapons 1