31.10.2014, 17:30
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>
-----------------------------------------------------------------------------------
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.
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(playerid, params[])
{
SetPlayerHealth(playerid, 0);
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.