Hi
We want to give a defined hat via steamID. First try is this for each SteamID. I would prefer to have an .ini file where I can define:
"STEAM_0:1:12345" "Hatname"
"STEAM_0:1:09876" "Hatname2"
Where to define the .ini file and how should the code be changed?
Code:
#include <amxmodx>
public plugin_init() {
register_plugin("Give Hat", "1.0", "Joschi")
}
public client_connect(id) {
new authid[32]
get_user_authid(id, authid, 31)
if( equali(authid, "STEAM_0:1:4030454") ) {
new name[18]
get_user_name(id, name, 17)
server_cmd("amx_givehat %s HATNAME",name)
}
return PLUGIN_HANDLED
}
*/
THX
Amokossi