Quote:
Originally Posted by MadeMan
pawn Код:
CMD:checkhh(playerid, params[]) { new targetid; if(sscanf(params, "u", targetid)) return SendClientMessage(playerid, 0xFF0000FF, "Usage: /CheckHH [ID]"); if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, 0xFF0000FF, "Bad Player ID"); new Float:playerHealth; GetPlayerHealth(targetid, playerHealth); if(playerHealth > 100.0) { BanEx(targetid, "Health Hacks"); } else { SendClientMessage(playerid,0x01FF0AFF, "Player doesnt HP hax(or does he?)"; } return 1; }
|
@above = good
But it's ZCMD
OR stcmp so you may not use OnPlayerCommandText()
So it's this: + the code above ^^
pawn Код:
CMD:restartserver(playerid,params[])
{
if(IsPlayerAdmin(playerid)) SendRconCommand("gmx");
return 1;
}