SA-MP Forums Archive
ZCMD or DCMD - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: ZCMD or DCMD (/showthread.php?tid=154094)



ZCMD or DCMD - DarkPower - 12.06.2010

What is better, ZCMD or DCMD love more to work on DCMD that ZCMD


Re: ZCMD or DCMD - Aur0nX390 - 12.06.2010

There's been many threads on this in the past. ZCMD is the better one.


Re: ZCMD or DCMD - DarkPower - 12.06.2010

Quote:
Originally Posted by Th3Pr0
There's been many threads on this in the past. ZCMD is the better one.
Ok, thank you, what about ZCMD vs sscanf


Re: ZCMD or DCMD - Aur0nX390 - 12.06.2010

You can use ZCMD and Sccanf together.

Example:
pawn Код:
CMD:heal(playerid, params[])
{
    new
        id;
    if (sscanf(params, "u", id)) SendClientMessage(playerid, 0xFF0000AA, "Usage: \"/heal <playerid>\"");
    else if (id == INVALID_PLAYER_ID) SendClientMessage(playerid, 0xFF0000AA, "Player not found");
    else
    {
        SetPlayerHealth(id, 100.0);
        SendClientMessage(id, 0x00FF00AA, "You have been healed");
        SendClientMessage(playerid, 0x00FF00AA, "Player healed");
    }
    return 1;
}
Command taken from the wiki: https://sampwiki.blast.hk/wiki/Fast_Commands#zcmd


Re: ZCMD or DCMD - DarkPower - 12.06.2010

Oh i will read this thank you again