Congratulations on your first plugin post, here's some pointers to keep your plugin away from the unapproved section.
is an expression that should never be used. You can remove that if statement entirely without having any effect on your code. In fact, the compiler even tells you it's redundant.
Code:
warning 206: redundant test: constant expression is non-zero
Also, instead of looping trying to find matching player names use our helpful
FindTarget function which should handle targeting for you.
Last thing, fill out your descriptions!
Best of luck, if you have any questions I'll be on the
SourceMod discord.