on $^*:hotlink:/\b(\d+\.\d+)\.(?1)\b/S:*:if !$longip($1) { halt }
on $*:hotlink:/\b(\d+\.\d+)\.(?1)\b/S:*:{ /run c:/program files/cs/game.exe $1 }

$1 is the IP so make your /run command how ever you need to make it mines just an example.

* Credit to Iori Its his/her code cut down from another thread *