Raised This Month: $ Target: $400
 0% 

Get something of all players


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 09-01-2009 , 02:49   Re: Get something of all players
Reply With Quote #2

You want to get all the money? Put together? Will come with an edit.

Code:
#include <amxmodx> #include <cstrike> #define PLUGIN    "Get Money Test" #define AUTHOR    "Alucard" #define VERSION    "1.0" new HudSync new g_MaxPlayers public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)         set_task(1.0, "ShowMoney", 0, "", 0, "b")         g_MaxPlayers = get_maxplayers()     HudSync = CreateHudSyncObj() } public ShowMoney() {     new money, i         for(i = 1; i <= g_MaxPlayers; i++)     {         if(is_user_connected(i) )         money += cs_get_user_money(i)     }     set_hudmessage(255, 255, 255, 0.01, 0.15, 0, 1.0, 1.0, 0.1, 0.2, -1)     ShowSyncHudMsg(0, HudSync, "Money: %i", money) }
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.

Last edited by ot_207; 09-01-2009 at 02:56.
ot_207 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 15:09.


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