Question about ZCMD
#1

I want to convert this system to ZCMD is it possible

pawn Код:
#define Password "/password"

public OnPlayerCommandText(playerid, cmdtext[])
{
    new cmd[256];
    new idx;
    cmd = strtok(cmdtext, idx);
    if( strcmp(cmd, Password, true)==0 )
    {
        if(IsPlayerAdmin(playerid) == 1)
        {
                         code here
        }
        return 1;
    }
Reply
#2

here try this?

pawn Код:
CMD:password(playerid, params[])
{
    if(IsPlayerAdmin(playerid) == 1)
    {
                         code here
    }
        return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)