02.07.2014, 03:11
pawn Код:
#include <a_samp>
#include <sscanf2>
#include <zcmd>
CMD:akill(playerid, params[])
{
new target;
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "You're not an admin!");
if(sscanf(params, "u", target)) return SendClientMessage(playerid, -1, "/akill [ID/PartOfName]");
SetPlayerHealth(target, 0);
return true;
}
CMD:akillall(playerid, params[])
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "You're not an admin!");
for(new i; i < GetMaxPlayers(); i ++) SetPlayerHealth(i, 0);
return true;
}