Thanks for the help M249-M4A1! If i would change the given gun on a later time would the below code be correct to?
Code:
#include <amxmodx>
public plugin_init()
{
register_plugin("Scout Sniper Only", "1.0", "sharpe.nl")
register_clcmd("awp", "cmd_scout")
register_clcmd("sg550", "cmd_sg550")
register_clcmd("g3sg1", "cmd_g3sg1")
}
public cmd_scout(id)
{
client_cmd(id, "scout")
return PLUGIN_HANDLED
}
public cmd_sg550(id)
{
client_cmd(id, "tmp")
return PLUGIN_HANDLED
}
public cmd_g3sg1(id)
{
client_cmd(id, "mac10")
return PLUGIN_HANDLED
}
__________________