27.07.2011, 23:12
(
Последний раз редактировалось Kingunit; 11.09.2011 в 20:27.
)
<fixed>
Hi,
I've made a command to check if a player is hacking (health hacks) it nearly works, but the messages are going wrong. The messages: pawn Код:
Not to the Administrator who did the command. By the way, I hope you understand the problem. But I can't find the solution. ` Kingunit |
//Just a part of the code that is sending the message if he hacks or not
if(health == 1000)
{
SendClientMessage(playerid,COLOR_YELLOW,"Invulnerability check result : [POSITIVE]");
checkinv = 0;
}
else if(health != 100)
{
SendClientMessage(playerid,COLOR_YELLOW,"Invulnerability check result : [NEGATIVE]");
checkinv = 1;
}
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);
I'm so bad with creating a new parameter. If I just copy + paste your new code sure I get a error. Can you help me with creating the new parameter? Via PM or just here, it doens't really matter for me. (If you want / have time)
|