22.01.2017, 19:29
First of all you have to download ZCMD - include from here: https://sampforum.blast.hk/showthread.php?tid=91354
Then you have to include in your script:
to let COMMAND and CMD Works, if you didn't include zcmd.inc so it'd get errors.
by the way if you downloaded the zcmd and putted it in Pawno>includes>zcmd.inc folder so just include it in your script as i have gave an example up, then when you gonna make a command so it would be like that:
it's more easire than strcmp,
NOTE: You can use:
Hope that i helped you
Then you have to include in your script:
PHP код:
#include <zcmd>
by the way if you downloaded the zcmd and putted it in Pawno>includes>zcmd.inc folder so just include it in your script as i have gave an example up, then when you gonna make a command so it would be like that:
PHP код:
CMD:kill(playerid,params[])
{
SetPlayerHealth(playerid, 0.0);
return 1;
}
NOTE: You can use:
PHP код:
CMD:123(playerid,params[])
{
//do something here
return 1;
}
//And you can use COMMAD like this:
COMMAND:123(playerid,params[])
{
//do something here
return 1;
}