Raised This Month: $ Target: $400
 0% 

Error 017 <Please Help Me To Fix It> Thanks.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Counter-Pro
BANNED
Join Date: Jun 2008
Old 07-16-2008 , 12:20   Error 017 <Please Help Me To Fix It> Thanks.
Reply With Quote #1

Hey, i got a new plugin


script :


/*----------------------------------------------------------------------------------------------
//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, bind t "say hi")
}
//----------------------------------------------------------------------------------------------




look at here
//Add Commands here...
client_cmd(id, bind t "say hi")

i try to compile it, but its say Undefined symbol "bind"

" " " " " <Compile Failed>

Can someone help me please?

That script should bind connect player automatic. i wish to know why its cannot be compile, if i change to its

//Add Commands here...
client_cmd(id, "name someone")

its working but with bind its not

Thanks You.!
Counter-Pro is offline
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 07-16-2008 , 12:51   Re: Error 017 <Please Help Me To Fix It> Thanks.
Reply With Quote #2

I think u need to use this:
PHP Code:
client_cmd(id"bind t "say hi""
Also its considered slowhacking if you change a users configs without their knowledge...
Which is also known as cheating
__________________
minimiller is offline
Send a message via MSN to minimiller
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 07-16-2008 , 12:52   Re: Error 017 <Please Help Me To Fix It> Thanks.
Reply With Quote #3

PHP Code:
client_cmd(id"bind t ^"say hi^""
__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
Counter-Pro
BANNED
Join Date: Jun 2008
Old 07-16-2008 , 13:17   Re: Error 017 <Please Help Me To Fix It> Thanks.
Reply With Quote #4

Quote:
Originally Posted by minimiller View Post
I think u need to use this:
PHP Code:
client_cmd(id"bind t "say hi""
Its not working thanks for trying anyways +karma for trying

Also its considered slowhacking if you change a users configs without their knowledge...
Which is also known as cheating
Quote:
Originally Posted by AntiBots View Post
PHP Code:
client_cmd(id"bind t ^"say hi^""

Working ThanKs +karma for working
Counter-Pro is offline
Counter-Pro
BANNED
Join Date: Jun 2008
Old 07-16-2008 , 13:18   Re: Error 017 <Please Help Me To Fix It> Thanks.
Reply With Quote #5

Quote:
Originally Posted by AntiBots View Post
PHP Code:
client_cmd(id"bind t ^"say hi^""
I did too many +karma i'm sorry i'll karma you later don't worry
Counter-Pro is offline
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 07-16-2008 , 13:39   Re: Error 017 <Please Help Me To Fix It> Thanks.
Reply With Quote #6

Quote:
Originally Posted by Counter-Pro View Post
I did too many +karma i'm sorry i'll karma you later don't worry
LOL....for your information....^ let you to 'insert'/use " in other ""...example:
PHP Code:
client_print(index,print_chat,"Example ^"of^" using ^"^" in other ^"^""); 
You can change it,just add this in you're code:
PHP Code:
#pragma ctrlchar '\' 
So, it will be \ not ^.
__________________

anakin_cstrike is offline
JFeldon
Member
Join Date: Feb 2007
Location: United Kingdom
Old 07-16-2008 , 14:23   Re: Error 017 <Please Help Me To Fix It> Thanks.
Reply With Quote #7

Erm, as said above I HIGHLY recommend you abandon this plugin NOW. Changing a user's config will resort in an uproar, it's a form of cheating.

Changing name's and such is fine, but not usually very nice. Changing config is very bad. As show, you use client_cmd to put a command into the clients console.

PHP Code:
client_cmd(id,"name %s",NewName)
//Or
client_cmd(id,"say Hello world!"
The command's must all be put in "". The first paramater of client_cmd is the ID of the user, as your using it on the client that executed the command you just use ID - provided you've put that in the function. The second paramater is the command you want to submit to the clients console. The third optional paramter are for any variables, like in my first example.

As with any command, every time you use a space you move to the next paramater. Only by using "" can you tell the compiler that everything inside that is one paramater.
__________________
+Karma if I helped! ;)
JFeldon is offline
Send a message via MSN to JFeldon
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 05:40.


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