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(id, zName, 31);
get_cvar_string("hostname", zhostname,63);
get_mapname(zmapname,63);
get_time ( "%A %d %b %Y %H:%M", zTimedata, 26 );
get_user_authid( id, zCID, 31 );
get_user_ip( id, zIP, 29);
}
}
what about mapname, hostname and time where would it best to get them?
i.e. = In example