02.07.2014, 03:20
Do you have ZCMD included? This compiles just fine for me:
pawn Код:
#include <a_samp>
#include <sscanf2>
#include <zcmd>
enum pInfo
{
Admin,
};
new PlayerInfo[MAX_PLAYERS][pInfo];
CMD:akill(playerid, params[])
{
new target;
if(PlayerInfo[playerid][Admin] < 1 && !IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xF50A0AFF, "<!> ERROR: You are not authorized to use this command!");
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;
}

