Raised This Month: $ Target: $400
 0% 

Authid.ini


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Kensai
Veteran Member
Join Date: Aug 2005
Location: San Diego, California
Old 11-07-2005 , 20:50  
Reply With Quote #5

This is what I have, without your code.

I would like it to do this.

I'll make a command, or you could, and it let's admins add steam ids to the .ini And another cvar will control whether the hud displays for EVERYONE or just the people on the "list"

But I don't know how to write a steam id to the file with a command, and show the HUD to only those people.


Code:
#include <amxmodx> #include <amxmisc> #include <csstats> #define HUD_INTERVAL 1.0 new msgtext public plugin_init() {     register_plugin("Stats Display","1.0","Kensai")     msgtext = get_user_msgid("StatusText") } public client_putinserver(id) {       set_task(HUD_INTERVAL,"ShowHUD",id); }   public ShowHUD(id)     {       if(!is_user_connected(id))         return 0;     new stats[8]     new hits[8]     get_user_stats(id,stats,hits)     new name[33]     get_user_name(id,name,32)     new HUD[51]     format(HUD, 50, "%s [Kills: %i] [Deaths: %i] [Headshots: %i]",name,stats[0],stats[1],stats[2])     message_begin(MSG_ONE, msgtext, {0,0,0}, id)       write_byte(0)       write_string(HUD)       message_end()       set_task(HUD_INTERVAL,"ShowHUD",id);     return PLUGIN_CONTINUE }
Kensai is offline
Send a message via AIM to Kensai Send a message via MSN to Kensai
 



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:44.


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