http://rghost.ru/46297864
Там 2 файла: плагин для клео и сам скрипт. Плагин нужен, чтобы писать сообщения в чат.
Все как ты описал сделал.
Исходник
{$CLEO .cs}
//-------------MAIN---------------
0662: NOP "MGMOLDOVA"
// GetSampBase
if not 0@ = SAMP.Base()
then 0A93: end_custom_thread
end
while not SAMP.Available()
wait 100
end
while true
wait 0
if and
0AD2: 29@ = player $PLAYER_CHAR targeted_actor //IF and SET
0AB0: key_pressed 49
then
0B2B: samp 10@ = get_player_id_by_actor_handle 29@
0B36: samp 15@ = get_player_nickname 10@
0AF9: samp say_msg "/cuff %d" 10@
wait 1000
end
if and
0AD2: 29@ = player $PLAYER_CHAR targeted_actor //IF and SET
0AB0: key_pressed 50
then
0B2B: samp 10@ = get_player_id_by_actor_handle 29@
0B36: samp 15@ = get_player_nickname 10@
0AF9: samp say_msg "/uncuff %d" 10@
wait 1000
end
if and
0AD2: 29@ = player $PLAYER_CHAR targeted_actor //IF and SET
0AB0: key_pressed 51
then
0B2B: samp 10@ = get_player_id_by_actor_handle 29@
0B36: samp 15@ = get_player_nickname 10@
0AF9: samp say_msg "/take weapons %d" 10@
wait 1000
end
end
//-------------MAIN---------------
0662: NOP "MGMOLDOVA"
// GetSampBase
if not 0@ = SAMP.Base()
then 0A93: end_custom_thread
end
while not SAMP.Available()
wait 100
end
while true
wait 0
if and
0AD2: 29@ = player $PLAYER_CHAR targeted_actor //IF and SET
0AB0: key_pressed 49
then
0B2B: samp 10@ = get_player_id_by_actor_handle 29@
0B36: samp 15@ = get_player_nickname 10@
0AF9: samp say_msg "/cuff %d" 10@
wait 1000
end
if and
0AD2: 29@ = player $PLAYER_CHAR targeted_actor //IF and SET
0AB0: key_pressed 50
then
0B2B: samp 10@ = get_player_id_by_actor_handle 29@
0B36: samp 15@ = get_player_nickname 10@
0AF9: samp say_msg "/uncuff %d" 10@
wait 1000
end
if and
0AD2: 29@ = player $PLAYER_CHAR targeted_actor //IF and SET
0AB0: key_pressed 51
then
0B2B: samp 10@ = get_player_id_by_actor_handle 29@
0B36: samp 15@ = get_player_nickname 10@
0AF9: samp say_msg "/take weapons %d" 10@
wait 1000
end
end



Публикации
Не указал
