Can I Use The zcmd Include?
#1

I have been recomended to use zcmd because it apparently would be faster in processing commands.
so im going to try to use it, but i would like to make sure i am right on how to convert all the cmds to use it. this is what im thinking:

Original CMD:
pawn Код:
if(strcmp(cmd, "/respawnallcars", true)

Now, i want to use ZCMD include:

ZCMD CMD:
pawn Код:
if(strcmp(zcmd, "/respawnallcars", true)

and ofcourse i would
pawn Код:
#include <ZCMD>
But, are there any other includes like this that can optimise my server to make all commands run faster?
Which is the best, because if there are no others, ill use ZCMD.

Thanks- Hal
Reply
#2

CMD:respawnallcars(playerid,params[])

dont put it under onplayercommand text..
Reply
#3

im using that as an example command, should i just use what i shows above?
Reply
#4

zcmd works like how i did it..
Reply
#5

Quote:
Originally Posted by Kar
Посмотреть сообщение
zcmd works like how i did it..
so my cmd would be like

pawn Код:
cmd:respawnallcars", true) == 0
    {
        if(IsPlayerConnected(playerid))
        {
= is what would go in my script
Reply
#6

no for christ sake

cmd:respawnallcars(playerid,params[])

dude just replace all ur strcmp headers thing to that and take them out of commandtext or all your strcmp/cmdtexts will stop working
Reply
#7

No, forget about all the strcmp and strtok.

pawn Код:
CMD:respawnallcars(playerid, params[])
{
    // code
    return 1;
}
Reply
#8

his strcmp cmds will stop working if he puts a zcmd cmd unless he puts them under the strcmp zcmd callback

if he leaves them under onplayercommandtext THEY WONT WORK
Reply
#9

To clarify, this: i use it like this

pawn Код:
CMD:respawnallcars(playerid, params[])
{
        if(IsPlayerConnected(playerid))
        {

//REST OF CMD
    return 1;
}
And if i shouldnt put them under OnPlayerCommandText, i put them where?
Reply
#10

anywhere esle in ur gm (not in a callback)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)