Raised This Month: $ Target: $400
 0% 

Trouble with ts_givepwup


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Maddo
Member
Join Date: Dec 2004
Old 01-29-2005 , 00:00   Trouble with ts_givepwup
Reply With Quote #1

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
Maddo is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:22.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode