How to make command like /Command ID
#9

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;
    }
Reply


Messages In This Thread
How to make command like /Command ID - by henry jiggy - 12.08.2011, 00:37
Re: How to make command like /Command ID - by Laronic - 12.08.2011, 00:49
[No subject] - by henry jiggy - 12.08.2011, 00:53
Re: How to make command like /Command ID - by =WoR=Varth - 12.08.2011, 02:45
Re: How to make command like /Command ID - by Kingunit - 12.08.2011, 03:17
Re: How to make command like /Command ID - by henry jiggy - 12.08.2011, 18:40
Re: How to make command like /Command ID - by MadeMan - 12.08.2011, 18:50
Re: How to make command like /Command ID - by henry jiggy - 12.08.2011, 18:53
Re: How to make command like /Command ID - by Michael@Belgium - 12.08.2011, 19:23
Re: How to make command like /Command ID - by MadeMan - 12.08.2011, 19:27

Forum Jump:


Users browsing this thread: 2 Guest(s)