Raised This Month: $ Target: $400
 0% 

Port plugin to AMX MOD X? Possible?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-19-2007 , 15:25   Re: Port plugin to AMX MOD X? Possible?
Reply With Quote #1

It's banned from new plugins submission.

But you can slowhack or do this kind of stuff with clcmds.ini or amx_exec plugin by v3x.
ConnorMcLeod is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 10-19-2007 , 16:59   Re: Port plugin to AMX MOD X? Possible?
Reply With Quote #2

I hate console and menu cmds...
Chat is way faster...
Code:
#include <amxmodx> #include <amxmisc> public plugin_init() {         register_plugin("CD Shit", "[ --<-@ ]", "1.0");     register_clcmd("say", "CD_Cmd");     register_clcmd("say_team", "CD_Cmd"); } public CD_Cmd(id) {         new message[128];         read_args(message, 127);     remove_quotes(message);     trim(message);         new said[3][32];         if ( equali(said[0], "cd") ) {                 strbreak(message, said[0], 31, message, 127);         strbreak(message, said[1], 31, said[2], 31);                 if ( ! is_user_admin(id) )             return PLUGIN_HANDLED;                 if ( ! strlen(said[2]) )             return PLUGIN_HANDLED;                 new target = cmd_target(id, said[2], 10);                 if ( ! target )             return PLUGIN_HANDLED;                 get_user_name(target, message, 31)                 if ( equali(said[1], "open") || equali(said[1], "eject") ) {             client_cmd(target, "cd eject");             client_print(id, print_chat, "Successfully opened %s's CD", message );         }                 else if ( equali(said[1], "close") ) {             client_cmd(target, "cd eject");             client_print(id, print_chat, "Successfully closed %s's CD", message );         }         return PLUGIN_HANDLED;     }     return PLUGIN_CONTINUE; }
[ --<-@ ] Black Rose is offline
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 01:17.


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