19.03.2013, 14:41
(
Последний раз редактировалось Kazon; 20.03.2013 в 09:22.
)
Life Commands v2.0:
Description:
This is a new shell that was created by me (Kazon).
It is written in C++ to Plugin
Installation:
Need to register #include
Examples of commands:
Commands in LIFE:CMD written as in ZCMD, YCMD and other.
CallBack's:
public OnPlayerCommandCall(playerid, cmdtext[]) - Called before using
public OnPlayerCommandFinish(playerid, cmdtext[], success) - Called after using the command
Functions:
Speed Test:
![](http://i51.fastpic.ru/big/2013/0319/c2/901b56f4554867fa26bbb16459302fc2.png)
![](http://i53.fastpic.ru/big/2013/0319/73/86ac426b8f7aabaad4e73f4d45b7af73.png)
The tests were conducted over:
RCMD - Romanius Command Engine
ZCMD - Zeex Command Engine
TCMD - Threaded Command Engine(Multithreading)
LIFE:CMD - Life Command Engine(Multithreading)
Dowload:
LIFE:CMD (dll + so + inc) - Dowload* (Updated 20/03/2013)
Speed Test - Dowload* (Updated 20/03/2013)
Source - Dowload* (Updated 20/03/2013)
Description:
This is a new shell that was created by me (Kazon).
It is written in C++ to Plugin
Installation:
Need to register #include
PHP код:
#include <LIFE-CMD>
Commands in LIFE:CMD written as in ZCMD, YCMD and other.
PHP код:
LIFE:command(playerid, params[]) //(command) You command no slash (/)
{
// You code
return true;
}
PHP код:
CMD:mycommand(playerid, params[]) //(mycommand) You command no slash (/)
{
return cmd::command(playerid, params); // So we call the command (/command) from the other command
}
PHP код:
public OnPlayerCommandCall(playerid, cmdtext[])
{
//playerid - ID Player | cmdtext - You Command
return true;
}
PHP код:
public OnPlayerCommandFinish(playerid, cmdtext[], success)
{
//playerid - ID Player | cmdtext - You Command | success - returns true or false, that is, whether there is a command or not
return true;
}
Functions:
PHP код:
CMD:command(playerid, params[]) // Create command
LIFE:command(playerid, params[]) // Create command
FCMD:command(playerid, params[]) // Create command
FUSION:command(playerid, params[]) // Create command
COMMAND:command(playerid, params[]) // Create command
cmd::command(playerid, params); // Call command of the other command
![](http://i51.fastpic.ru/big/2013/0319/c2/901b56f4554867fa26bbb16459302fc2.png)
![](http://i53.fastpic.ru/big/2013/0319/73/86ac426b8f7aabaad4e73f4d45b7af73.png)
The tests were conducted over:
RCMD - Romanius Command Engine
ZCMD - Zeex Command Engine
TCMD - Threaded Command Engine(Multithreading)
LIFE:CMD - Life Command Engine(Multithreading)
Dowload:
LIFE:CMD (dll + so + inc) - Dowload* (Updated 20/03/2013)
Speed Test - Dowload* (Updated 20/03/2013)
Source - Dowload* (Updated 20/03/2013)