Add this:
When typing /lg, set a boolean status to true, and then use the code in prethink.
In prethink:
Add a check for if boolean status is set to true, and if the player is alive, if it's correct show laser, else return.
Edit: Take a look at this plugin:
https://forums.alliedmods.net/showthread.php?t=138572
__________________