I'm trying to make a plugin for TS while gives a random powerup to each player on spawn. However, I hit the wall when I couldn't get the ts_givepwup function to work. I created this very simple plugin to test it out, but to no avail.
Code:
#include <amxmodx>
#include <tsx>
public plugin_init()
{
register_plugin("Poweruptest", "1.0", "Maddo")
register_clcmd("say /give", "give_superjump")
}
public give_superjump(id)
{
ts_givepwup( id, TSPWUP_SUPERJUMP )
return PLUGIN_HANDLED
}
It compiles fine, and when I try "say /give" on my server, the plugin obviously catches it, since it doesn't display on the screen. However, nothing happens. I've tested it with other powerups, and just using the numbers etc, but nothing works.
If anyone could tell me how I can get this function working, I would be most appreciative
Thanks in advance