You are on page 1of 2

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
// Add your code here...
register_clcmd("amx_crypt", "targetName", ADMIN_KICK, .info = "<targetna
me> <type of crypt>", FlagManager = -1)
register_clcmd("say", "sayHook")
register_clcmd("say_team", "sayHook")
}
public targetName(id, level, cid ){
if(!cmd_access(id, level, cid, 3)) return PLUGIN_HANDLED;
new targetName[32], typeOfCrypt[3]
read_argv(1, targetName, charsmax(targetName))
read_argv(2, typeOfCrypt, charsmax(typeOfCrypt))
if(getClientId(targetName) && is_str_num(typeOfCrypt)){
client_print(0, 3, "Successfuly")
}
}
public sayHook(id)
{
new argString[192]
read_args(argString, charsmax(argString))
remove_quotes(argString)
new idTarget = find
}
stock getClientId(const targetName[])
{
new clientName[32];
for(new i = 1 ; i <= get_maxplayers(); i++)
{
if(is_user_connected(i))
{
get_user_name(i, clientName, charsmax(clientName));
if(equal(auth, clientName)) return i;

}
}
return -1;
}

You might also like