SA-MP Forums Archive
How to make a new CMD? - 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)
+--- Thread: How to make a new CMD? (/showthread.php?tid=416944)



How to make a new CMD? - beastorc3 - 18.02.2013

Can someone show me how to make new commands and be specific!


Re: How to make a new CMD? - RuthlessThuG - 18.02.2013

Zcmd

pawn Код:
CMD:yourcmd(playerid, params[])
    {
     //your CMD here
    return 1;
}
Example

pawn Код:
CMD:kill(playerid, params[])
    {
     SetPlayerHealth(playerid, 0);
    return 1;
}



Re: How to make a new CMD? - LarzI - 18.02.2013

https://sampforum.blast.hk/showthread.php?tid=91354


Re: How to make a new CMD? - Sgt.TheDarkness - 19.02.2013

That's the whole part of SA-MP scripting bro, if you use ZCMD like me, a regular command would look like this
Код:
CMD:yourcommand(playerid, params[])
{
       //Do Something Here!!
}