Semicolons are optional - but it looks good, as it denontes the end of a statement
As for your code, you can make it as simple as this.
PHP Code:
#include <amxmodx>
public plugin_init()
{
register_plugin("Scout Sniper Only", "1.0", "sharpe.nl")
register_clcmd("awp", "cmd_scout")
register_clcmd("sg550", "cmd_scout")
register_clcmd("g3sg1", "cmd_scout")
}
public cmd_scout(id)
{
client_cmd(id, "scout")
return PLUGIN_HANDLED
}
Because all the other rifles point to the same code, you can make it execute 1 procedure, instead of 3 identical ones
__________________