Raised This Month: $ Target: $400
 0% 

Script help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Counter-Pro
BANNED
Join Date: Jun 2008
Old 07-15-2008 , 01:31   Script help
Reply With Quote #1

Hey. i got a script that working.

/*----------------------------------------------------------------------------------------------
//Desciption
//----------------------------------------------------------------------------------------------
--- With this plugin you are able to forcibly input commands into connecting clients' console...
Many functions:
- Reset clients' maxspeeds...
- Re-bind stuff...
- Re-name them (Muahahahaha...xD)
- etc.
--- CVAR (Copy & Paste to server.cfg or amxx.cfg)
//Admin Client Commands
amx_acc 1 //Set to 1 to ON ; Set to 0 to OFF
//--------------------------------------------------------------------------------------------*/




//----------------------------------------------------------------------------------------------
//Version History
//----------------------------------------------------------------------------------------------
#define VERSION 1.0 //Define Current Version...
/*
1.0 - 28/6/08 - Streamy - Initial Release
*/
//----------------------------------------------------------------------------------------------




//----------------------------------------------------------------------------------------------
//Includes
//----------------------------------------------------------------------------------------------
#include <amxmodx>
#include <amxmisc>
//----------------------------------------------------------------------------------------------


//----------------------------------------------------------------------------------------------
//Pcvar
//----------------------------------------------------------------------------------------------
new is_it_on
//----------------------------------------------------------------------------------------------


//----------------------------------------------------------------------------------------------
//Defines
//----------------------------------------------------------------------------------------------
#define ADMIN ADMIN_IMMUNITY //Define the level of admin required to be immune to this
//----------------------------------------------------------------------------------------------


//----------------------------------------------------------------------------------------------
public plugin_init()
{
register_plugin("Admin Client Commands", "VERSION", "Streamy")
is_it_on = register_cvar("amx_acc", "1")
}
//----------------------------------------------------------------------------------------------
public client_putinserver(id)
{
if(!get_pcvar_num(is_it_on) || !is_user_connected(id) || is_user_bot(id))
return PLUGIN_HANDLED

if(!access(id, ADMIN)) { //Make sure user is not an admin...
set_task(5.0, "input", id) //Wait a lil for better effects (trust me on this)
}
return PLUGIN_HANDLED
}
//----------------------------------------------------------------------------------------------
public input(id) //This function handles the client commands...
{
//Add Commands here...
//client_cmd(id, "-insert command here-")
//client_cmd(id, "-insert command here-")
//client_cmd(id, "-insert command here-")
//client_cmd(id, "-insert command here-")
//client_cmd(id, "-insert command here-")
//client_cmd(id, "-insert command here-")
//client_cmd(id, "-insert command here-")
//client_cmd(id, "-insert command here-")
//client_cmd(id, "-insert command here-")
//client_cmd(id, "-insert command here-")
}
//----------------------------------------------------------------------------------------------

my question its about "-insert command here-")
how should i get it like that "-admin_execall bind "t" "say ...-" what i should del from the line?
or its working only at amx mod? amx_exec * "bind f1 \'say .....\'"
the script working but its not makeing the bind
Counter-Pro 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 05:32.


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