15.09.2012, 18:31
WhilePlayerUseINV(playerid)
{
If(inv_warnings[playerid] == 20 or 30 or 40) SetPlayerHealth(playerid, GetPlayerHealth * 0.5);
If(inv_warnings[playerid] == 50) Kick(playerid);
}
this cant compile w/o errors man :/
or = ||
GetPlayerHealth not work as you do
new Float:h;
GetPlayerHealth(playerid, h);
SetPlayerHealth(playerid, h * 0.5);
{
If(inv_warnings[playerid] == 20 or 30 or 40) SetPlayerHealth(playerid, GetPlayerHealth * 0.5);
If(inv_warnings[playerid] == 50) Kick(playerid);
}
this cant compile w/o errors man :/
or = ||
GetPlayerHealth not work as you do
new Float:h;
GetPlayerHealth(playerid, h);
SetPlayerHealth(playerid, h * 0.5);