This plugin is based on the idea of Fean0r's Point Script
, but it's coded from scratch and in my opinion it's better since it works with commands with parameters after the players name unlike Fean0r's.
This plugin allows you to execute any command on the player you're aiming at.
Usage (requires ADMIN_SLAY):
amx_point <command> [$name <params>] - Runs <command> with the player you're aiming at as the target
bind "K" "amx_point amx_kick" - Kicks whoever you're aiming at when you press K
bind "K" "amx_point amx_kick $name No spawn camping" - Kicks whoever you're aiming at with the reason "No spawn camping" when you press K
bind "MOUSE3" "amx_point amx_slap $name 10" - Slaps who you're looking at with 10 damage when you click with your 3rd mouse button (usually your scroll wheel)
bind "F1" "amx_point amx_psay $name Stop camping or be kicked" - Psays the player you're aiming at with "Stop camping or be kicked" when you press F1
I hope this plugin is of use to somebody, let me know if you find any bugs and any comments, questions and suggestions are welcome