I need some help.

Adi200005

Member
Joined
Oct 12, 2020
Messages
12
Reaction score
0
Location
Romania
Hello i have this code and when i am in car spams on chat. I want to say 1 time only when a passanger enter in my car. This is the code:
{$CLEO}
0000: NOP
repeat
wait 50
until 0AFA: is_samp_structures_available


0B34: samp register_client_command "autoheal" to_label @activation_1
chatmsg "{FF8000}AutoHeal facut de gumball3000 si modificat de JoeHawk." -1
chatmsg "{FF8000}Foloseste </autoheal> pentru a porni/opri scriptul." -1
chatmsg "{FF8000}Acest script ofera heal la colegi pe 1$ si la restul jucatorilor pe 1000$." -1

:unknown_6969
WHILE TRUE
WAIT 0
IF 31@ == 1
THEN
IF
Actor.Driving($PLAYER_ACTOR)
then
2@ = Actor.CurrentCar($PLAYER_ACTOR)
046C: 20@ = car 2@ driver
IF
003B: $PLAYER_ACTOR == 20@
THEN
FOR 0@ = 0 to 999
IF SAMP.IsPlayerConnected(0@)
THEN
IF 1@ = SAMP.GetActorHandleByPlayerID(0@)
THEN
0B25: samp 8@ = get_player_health 0@
IF
8@ <= 100
THEN
03C0: 3@ = actor 1@ car
IF
003B: 2@ == 3@
THEN
16@ = SAMP.GetPlayerColor(0@)
0B36: samp 17@ = get_player_nickname 0@

if 16@ == 0xFFFF6347
then
wait 1000
0AF9: samp say_msg "Salut %s! Unde te duc?" 17@
end




else
wait 1000
0AF9: samp say_msg " Salut %s! Unde te duc?" 17@
end





END
end
end
end
END
END
END
END

//end



:activation_1
0B12: 31@ = 31@ XOR 1
If 31@ == 1
then
0AF8: samp add_message_to_chat "{FF8000}AutoHeal este ACTIVAT!" -1
15@ = 1
else
0AF8: samp add_message_to_chat "{FF8000}AutoHeal este DEZACTIVAT!" -1
end
samp.CmdRet
 
Top