Raised This Month: $ Target: $400
 0% 

Scripting with steam id help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ieGaming
Junior Member
Join Date: Nov 2006
Old 10-08-2009 , 03:51   Scripting with steam id help
Reply With Quote #1

I have tried my best and still haven't got it to work. I'm trying make a script that if your steam id is in the steam.ini then it lets you use a certain command. I just need to find out how I can get it to work this is what I think it my be similar to.

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

new bool:g_command true
new filepath[64],filename[101],readdata[64],readsteam[32],steamid[32],len=0,line=0

public plugin_init()
{
    
register_plugin("command","1.0","UND3RDAWG")
    
register_clcmd("+command","client_authorized",ADMIN_KICK,"bind [key] +command")
    if (
g_command==true)
    
set_task(1.0,"check")
}

public 
check(id)
{
    
get_configsdir(filepath,63)
    
format(filename,100,"%s/steam.ini",filepath)
}

public 
client_authorized(id)
{
    
get_user_authid(idsteamid31)
    
    while(
read_file(filenameline++, readdata63len))
    {
        
parse(readdata,readsteam,31)
        if(
equali(steamid,readsteam))
        {    
            if(!
is_user_alive(id))
            
//command
            
return PLUGIN_CONTINUE
        
}
    }
    return 
PLUGIN_CONTINUE


Last edited by ieGaming; 10-19-2009 at 01:25.
ieGaming 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 22:32.


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