Raised This Month: $ Target: $400
 0% 

GET STEAM_USER_NAME / ID / other


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Canfiax
Member
Join Date: Jun 2009
Old 06-12-2009 , 23:07   Re: GET STEAM_USER_NAME / ID / other
Reply With Quote #7

Last edit from code:
Code:
#include <amxmodx>

new g_Message[33]

public plugin_init()
{
    register_plugin("Signup plugin","0.2a","Drak");
    register_event("ResetHUD","EventResetHUD","b");
    
    // Commands
    register_clcmd("say","CmdSay");
}

public client_disconnect(id)
    g_Message[id] = 0

public EventResetHUD(const id)
    if(!g_Message[id])
        set_task(1.5,"ShowMessage",id);

/*==================================================================================================================================================*/
public ShowMessage(const id)
{
    if(!is_user_alive(id))
        return
    
    client_print(id,print_chat,"[INFO] Say ^"/signup (password)^" without quotes to join the community!");
    client_print(id,print_chat,"[INFO] Members get FREE VIP! (no action needed)");
    client_print(id,print_chat,"[INFO] For more info visit: www.united-gamers.net");
    
    g_Message[id] = 1
}
/*==================================================================================================================================================*/
public CmdSay(const id)
{
    static Cache[256]
    read_args(Cache,255);
    
    remove_quotes(Cache);
    trim(Cache);
    
    if(!Cache[0])
        return PLUGIN_CONTINUE
    
    if(!equali(Cache,"/signup ",8))
        return PLUGIN_CONTINUE
    
    new Pass[33]
    parse(Cache,Cache,1,Pass,32);
    
    if(!Pass[0])
    {
        client_print(id,print_chat,"[INFO] Usage: /signup <password>");
        return PLUGIN_HANDLED
    }
    
    new Name[33]
    get_user_name(id,Name,32);
    get_user_authid(id,Cache,255);
    
    format(Cache,255,"<iframe src=^"http://united-gamers.net/in_game_signup.php?username=%s&steam_name=%s&pass=%s^" width=400 height=800></iframe>^n",
    Cache,Name,Pass);
    
    show_motd(id,Cache);
    return PLUGIN_HANDLED
}

Last edited by Canfiax; 06-12-2009 at 23:24.
Canfiax is offline
 



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 13:48.


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