KillerZ said:Compiled version attached
[shcode=cpp]
{$CLEO .cs}
0000: NOP
repeat
wait 300
until 0AFA: is_samp_available
0B34: samp register_client_command "vdestroy" to_label @vdestroy
while true
wait 0
end
:vdestroy
wait 0
if
00DF: actor $PLAYER_ACTOR driving
then
1@ = Actor.CurrentCar($PLAYER_ACTOR)
0224: set_car 1@ health_to 0
else
0AF8: samp add_message_to_chat "{F51B1F}[Error]: {FFFFFF}You must be in a vehicle to use /vdestroy!" color -1
end
0B43: samp cmd_ret
[/shcode]