[Include] jCMD
#1

jCMD
I was wondering: -- How I edit an RPG GM do not know if I mess with strtok?
Ai came to me to create this idea include, which is nothing more than a set, that is used in include 'OnPlayerCommandText' or can be used in 'OnPlayerText'.

Modes of use:
pawn Код:
jCMD (String[],Command []) ;
//-->

jCMD(cmdtext,"/kick"){/ / Divide the command parameter eg jCMD (cmdtext, "/ kick") or jCMD (text, "!kick");
//note: when using change in OnPlayerText return 1; to return 0; І Note: returns the paramentro (after '') in jCMD_params
             return 1;/ / in OnPlayerText: return 0;
}

//<--
jCMD_Mid(String[],size);/ / returns what comes after a certain part of the text (in jCMD_params returns)
       
jCMD_Mid2(String[],Size,Command []); / * Removed Mid2 .. Reason: Only tests to prepare jCMD * /

jCMD_MidV(string[], size,output []);/ * The Same jCMD_Mid only thing that returns the array that you put in 'output []' * /

jCMD_Texto(text[] - So Can Be Used in Commands);/ / This was used to create the most jCMD, you can only use in OnPlayerCommandText, the wave is text[] enclose the command in quotation marks and bar Note: The even jcmd, use quotation marks and bar /

jCMD_Exit();/ / just to avoid the warning in GM / FS in OnGameModeExit or OnFilterScriptExit 'jCMD_Exit ();'
Download
Reply


Messages In This Thread
jCMD - by jonathan_scripter - 24.11.2012, 21:43
Re: jCMD - by Zona_Sky - 24.11.2012, 21:56
Re: jCMD - by im - 24.11.2012, 22:27
Re: jCMD - by Sky™ - 24.11.2012, 22:33
Re: jCMD - by jonathan_scripter - 24.11.2012, 22:37
Re: jCMD - by Sky™ - 24.11.2012, 22:44
Re: jCMD - by jonathan_scripter - 24.11.2012, 22:52

Forum Jump:


Users browsing this thread: 1 Guest(s)