02.01.2013, 22:36
(
Последний раз редактировалось aslan890; 02.01.2013 в 23:16.
)
Description:
This is a new shell that was created by me ( Kazon ).
It is based on ZCMD but with great speed he wins ZCMD from 100 to 150 ms
Each team has its own function in ZCMD but is directly over CallLocalFunction and CallRemoteFunction
Unlike from ZCMD .
Installation:This is a new shell that was created by me ( Kazon ).
It is based on ZCMD but with great speed he wins ZCMD from 100 to 150 ms
Each team has its own function in ZCMD but is directly over CallLocalFunction and CallRemoteFunction
Unlike from ZCMD .
You only need to register # include
PHP code:
Код:
# Include <LifeCMD>
Teams in LifeCMD are written the same way as in ZCMD
PHP code:
Код:
CMD : mycommand ( playerid , params []) / / (mycommand) your team is spelled without a stick (/) { / / your code return true ; }
PHP code:
Код:
LCMD : mycommand ( playerid , params []) / / (mycommand) your team is spelled without a stick (/) { / / your code return true ; }
PHP code:
Код:
COMMAND : mycommand ( playerid , params []) / / (mycommand) your team is spelled without a stick (/) { / / your code return true ; }
And LifeCMD is also compatible with Sscanf
So if you already have ZCMD you can simply change the Include
Callbacks:
LifeCMD also not lagging behind other shells, and has callbacks such as:
PHP code:
Код:
Public OnPlayerCommandCall ( playerid , cmdtext []) { / / playerid - Player ID | cmdtext - the team itself return true ; }
PHP code:
Код:
Public OnPlayerCommandFinish ( playerid , cmdtext [], Success ) { / / playerid - Player ID | cmdtext - the team itself | success - true or false that is, whether there is a command or not return true ; }
Example of use:
PHP code:
Код:
Public OnPlayerCommandCall ( playerid , cmdtext []) { printf ( "Player: '% s' using the command '% s'" , PlayerInfo [ playerid ] [ pName ], cmdtext ); return true ; }
Код:
Public OnPlayerCommandFinish ( playerid , cmdtext [], Success ) { if (! Success ) return SendClientMessage ( playerid , COLOR_LIGHTRED , "this command does not exist!" ); return true ; }
I did the same test as provided ****** but slightly altered
is what showed my test: As you can see is ZCMD faster YCMD , and LifeCMD faster ZCMD test you can conduct yourself ( link below )
Download:
I got permission to share this in here. This is not my .inc the creator is ( Kazon )
My Dream is to be like ****** - Beta tester in my Dream