20.05.2011, 15:40
pawn Код:
if( Health == 100 ) // or if( Health = 100)
{
SendClientMessage( playerid, COLOR_RED, "You've 100 HP, so you can not eat cookies!!!");
return 1;
}
pawn Код:
CMD:eatcookies(playerid, params[])
{
new Float:Health;
GetPlayerHealth(playerid, Health);
if( Health > 90.0 )
return SendClientMessage(playerid, RED, "Your health is more than 90. You can't eat cookies, you'll be too fat !");
if( Health = 100.0)
SendClientMessage(playerid, RED, "You've 100 HP, so you can not eat cookies");
//.. rest of the script

