Raised This Month: $ Target: $400
 0% 

question get_user_name


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
vamppa
Senior Member
Join Date: Apr 2010
Location: The Netherlands
Old 07-16-2013 , 07:57   question get_user_name
Reply With Quote #1

for information like getting players name, steamid would it more efficient to get them one time on client_putinserver and use i.e. zName where ever u need them through out a large plugin?
or to get the information only where u need them?

PHP Code:
#include <amxmodx> 
#include <amxmisc>
#include <engine>

new zhostname[64], zmapname[64], zName[32], zCID[32], zTimedata[27], zIP[30];

public 
client_putinserver(id
{
    
get_user_name(idzName31);
    
get_cvar_string("hostname"zhostname,63);
    
get_mapname(zmapname,63);
    
get_time "%A %d %b %Y %H:%M"zTimedata26 );
    
get_user_authididzCID31 );
    
get_user_ipidzIP29);
  }

what about mapname, hostname and time where would it best to get them?

i.e. = In example

Last edited by vamppa; 07-16-2013 at 07:59. Reason: edited title.
vamppa is offline
 


Thread Tools
Display Modes

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 06:22.


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