24.09.2014, 04:31
(
Last edited by YanLanger; 04/10/2014 at 08:00 AM.
)
Ok guys this is my first tutorial ever! Don't tell me (you can't make tutorials, you suck etc.. if you wanna say it just don't comment atleast tell me what i did wrong thanks.
Ok, Let's start
First of all include zcmd at the top
If u don't got it get it from here https://sampforum.blast.hk/showthread.php?tid=91354
and put zcmd.inc at pawno/includes
Ok Now let's do the command
Ok, Let's start
First of all include zcmd at the top
If u don't got it get it from here https://sampforum.blast.hk/showthread.php?tid=91354
and put zcmd.inc at pawno/includes
pawn Code:
#include <zcmd>
PHP Code:
CMD:kill(playerid,params[])//CMD can also be COMMAND anyways after that put your cmd name it can be anything also killme or whatever u choose.
{
SetPlayerHealth(playerid, 0.0);//Ok,0.0 it's the health of the player after he types /kill, Playerid is the player that types that cmd (Correct me if i was wrong) and setplayerhealth sets the player health
return 1;//And we are done.
}