[Tutorial] How to make kill command (zcmd)
#1

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

pawn Code:
#include <zcmd>
Ok Now let's do the command

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(playerid0.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.

Reply


Messages In This Thread
How to make kill command (zcmd) - by YanLanger - 24.09.2014, 04:31
Re: How to make kill command (zcmd) - by NovaGaming - 24.09.2014, 12:10
Re: How to make kill command (zcmd) - by YanLanger - 24.09.2014, 12:17
Re: How to make kill command (zcmd) - by YanLanger - 24.09.2014, 12:20
Re: How to make kill command (zcmd) - by Dodo9655 - 24.09.2014, 12:42
Re: How to make kill command (zcmd) - by WalterWhite - 24.09.2014, 12:59
Re: How to make kill command (zcmd) - by Dignity - 24.09.2014, 22:40
Re: How to make kill command (zcmd) - by LeroyII - 25.09.2014, 08:19
Re: How to make kill command (zcmd) - by Gogeta - 09.10.2014, 12:52
Re: How to make kill command (zcmd) - by Eth - 09.10.2014, 12:58

Forum Jump:


Users browsing this thread: 1 Guest(s)