Raised This Month: $ Target: $400
 0% 

set_user_xxx doesn't work


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Feivel
Junior Member
Join Date: Apr 2004
Old 04-27-2004 , 12:20  
Reply With Quote #11

I'm getting the feeling that I'm to stupid for scripting...
At least the plugin loads. But it does nothing. Besides printing the nice text...

Thats what it looks like now:

Code:
#include <amxmodx> #include <amxmisc> #include <fun> #include <string> #include <cstrike> public plugin_init() {     register_plugin("AimTrain", "1.0", "Feivel")     register_clcmd("say aim", "Start_Aim", ADMIN_VOTE, " : Starts a new aiming session") } public Start_Aim(id, level, cid) {     if (!cmd_access(id, level, cid, 1)) {         return PLUGIN_HANDLED     }         new player[32] = {33, ...}     new num = 0     new health = 500     client_print(id, print_center, "Starting a new Round")      get_players(player, num)         set_user_health(player[0], 80)     cs_set_user_money(player[0], 8000, 1);         return PLUGIN_HANDLED   }

Instead of using player[0] (what should be the index of the first player, shouldn't it?) i tried id and direct numbers (0, 1).

Where's my fault?
Feivel 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 23:35.


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