/eatcookies
#2

pawn Код:
if( Health == 100 ) // or if( Health = 100)
{
SendClientMessage( playerid, COLOR_RED, "You've 100 HP, so you can not eat cookies!!!");
return 1;
}
Of cours you can put this instead this above:

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
~LetsOWN
Reply


Messages In This Thread
/eatcookies - by Paul.eboy - 20.05.2011, 15:33
Re: /eatcookies - by LetsOWN[PL] - 20.05.2011, 15:40

Forum Jump:


Users browsing this thread: 1 Guest(s)