Raised This Month: $ Target: $400
 0% 

[HELP] Reading from ini(client_cmd) + many questions :)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Metanabol
Member
Join Date: Feb 2009
Old 02-23-2009 , 17:28   [HELP] Reading from ini(client_cmd) + many questions :)
Reply With Quote #1

Hello, so im progressing in amxx scripting, i know what i want, but i simply cant find commands, whose i need to write well script.. i also don't know sintax in amxx scripting (its different from others).
My first question is: where i cant find both of commands with they value?
second is: im making simple script with cliend_cmd.
PHP Code:
#include <amxmodx>
#include <amxmisc>

public plugin_init()
{
    
register_plugin("anti_reklamer""1.0""Metanabol")
}

public 
client_connect(id)
{
    if(!(
get_user_flags(id) && ADMIN_SLAY))
    {
        
set_task(10.0,"bind"id)
    }
}
public 
bind(id)
{
//here is the problem. how to read text from ini file and then do commands like: client_cmd(id, "bind" "button_from_ini" "command_from_ini_file_near_button"
//example ini file:
//"x" "radio2"
//"z" "radio1"
//"c" "radio3"
//"b" "buy"
//ant etc.
//also, i think i write bad checking getting user flags ant making timer for //setting client_cmd every 10 seconds to all players in my server.
 
return PLUGIN_CONTINUE 

70% of lithuanian servers are using kiddie client_cmd binding z,x,c,b and other buttons to advertise they servers. This is really nervous sh*t. So i want to help players to clear it. :]
I can use simple swear filter, but i think binding out advertisments ir better.
And my last question is plugin_continue plugin_handle whats the difference? i cant understand....
p.s. sorry for bad english.
p.s. if someone write this part of little script, please //type every value after command line. i realy want to undestand it.

Last edited by Metanabol; 02-23-2009 at 17:30.
Metanabol 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 16:56.


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