SA-MP Forums Archive
/kill command? - 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: /kill command? (/showthread.php?tid=348082)



/kill command? - TheDiscussionCafe - 04.06.2012

how i do /kill and they commit suicide?


Re: /kill command? - Edward156 - 04.06.2012

pawn Код:
CMD:kill(playerid, params[])
{
    SetPlayerHealth(playerid, 0); //sets the player's health to 0 out of 100%.
   return 1;
}



Re: /kill command? - FalconX - 04.06.2012

Quote:
Originally Posted by TheDiscussionCafe
Посмотреть сообщение
how i do /kill and they commit suicide?
pawn Код:
CMD:kill( playerid, params[ ] )
{
    SetPlayerHealth( playerid, 0 );
    SendClientMessage( playerid, -1, "You just commit suicide!" );
    return 1;
}
By a command ofcourse you can do it.

EDIT: it's like 2 seconds difference between mine and the above post but it shows 1 min because I was writing it on 55 seconds and I posted it on the next minute. I am 5 seconds late

-FalconX


Re: /kill command? - TheDiscussionCafe - 04.06.2012

wow both is good! thanks!