[Tutorial] How to make kill command [ZCMD]
#1

Introduction

Hello this is my second tutorial it's about how to make kill command (Simple and easy to remember)

What do we need?

We need ZCMD

Where do i get it? Right here https://sampforum.blast.hk/showthread.php?tid=91354

Okay let's start

Before you do the command do this at the top #include <zcmd>

PHP Code:
CMD:kill(playeridparams[])
{
  
SetPlayerHealth(playerid0);
  return 
1;

-----------------------------------------------------------------------------------
CMD:kill(playerid, params[]) "This is our command (CMD can be COMMAND too !)"

SetPlayerHealth "Well i think i don't need to explain this but i still will this sets the player health so newbies if you ever make some random as* command and you wanna set his health use SetPlayerHealth and the "0" is the health we set too you also can do it 99 but it will set his health to 99 lol"

playerid, "Playerid it's the guy that sends the command so i guess i dunt really need to explain that"

return 1; "Dunno really how to explain that"

And close bracket at the end "}"
_--------------------------------------------------------------------------------------------------

Hope i explained very well

If i did not explain good please comment and i will explain better and please bad comments save it and don't comment it here.
Reply


Messages In This Thread
How to make kill command [ZCMD] - by Glossy42O - 31.10.2014, 17:30
Re: How to make kill command [ZCMD] - by Sparke - 11.11.2014, 17:02
Re: How to make kill command [ZCMD] - by Glossy42O - 11.11.2014, 17:04
Re: How to make kill command [ZCMD] - by sammp - 11.11.2014, 18:44
Re: How to make kill command [ZCMD] - by Glossy42O - 11.11.2014, 18:48
Re: How to make kill command [ZCMD] - by Quickie - 12.11.2014, 04:13
Re: How to make kill command [ZCMD] - by Glossy42O - 13.11.2014, 12:13

Forum Jump:


Users browsing this thread: 1 Guest(s)