19.04.2013, 08:16
I know how to use Y_Commands, But i don't know what is "Help" and how to use it.
Example:
any one explain me what is or how to use "Help" ?
Example:
pawn Код:
#include <YSI\y_commands>
YCMD:pkill(playerid, params[], help) // <-- "Help"
{
new id;
if(sscanf(params,"d",id)) {
SendClientMessage(playerid, COLOR_WHITE, "Usage: /pkill [playerid]");
return 1;
}
if(IsPlayerConnected(id)) {
SetPlayerHealth(id, -1);
new string[128];
if(id == playerid) format(string,128,"(ADMIN) %s has killed himself",PlayerName(playerid));
else format(string,128,"(ADMIN) %s has killed %s",PlayerName(playerid),PlayerName(id));
SendClientMessageToAll(COLOR_YELLOW, string);
return 1;
}else return SendClientMessage(playerid, COLOR_RED, "Player is not connected");
}