Raised This Month: $12 Target: $400
 3% 

givehat


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
amokossi
Senior Member
Join Date: Apr 2008
Old 05-11-2011 , 14:37   givehat
Reply With Quote #1

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
amokossi is offline
Send a message via ICQ to amokossi Send a message via MSN to amokossi
Reply



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 01:49.


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