Check if player is hacking
#6

You should add another parameter "adminid" to your callback.

Like CheckHealthHack(playerid, adminid);
after that, Use SendClientMessage(adminid,......

You are checking "playerid".. if you are sending message to playerid, he will see the message.
I hope you understand what i mean.

pawn Код:
public Explosion(playerid, adminid){
    if(checkinv == 1)
    {
        new Float:health;
        GetPlayerHealth(playerid,health);
        if(health == 100)
        {
            SendClientMessage(adminid,COLOR_YELLOW,"Invulnerability check result : [POSITIVE]");
            checkinv = 0;
        }
        else if(health != 100)
        {
            SendClientMessage(adminid,COLOR_YELLOW,"Invulnerability check result : [NEGATIVE]");
            checkinv = 0;
        }
    }
    return 1;
}

//Example: Admin ID 2 used /check on ID 54.
//Then:
Explosion(54, 2);
Reply


Messages In This Thread
Check if player is hacking - by Kingunit - 27.07.2011, 23:12
Re: Check if player is hacking - by SpiderWalk - 27.07.2011, 23:15
Re: Check if player is hacking - by Kingunit - 27.07.2011, 23:38
Re: Check if player is hacking - by Gamer_Z - 27.07.2011, 23:39
Re: Check if player is hacking - by Kingunit - 27.07.2011, 23:41
Re: Check if player is hacking - by iPLEOMAX - 27.07.2011, 23:44
Re: Check if player is hacking - by Kingunit - 27.07.2011, 23:49
Re: Check if player is hacking - by iPLEOMAX - 27.07.2011, 23:52
Re: Check if player is hacking - by Gamer_Z - 27.07.2011, 23:53

Forum Jump:


Users browsing this thread: 2 Guest(s)