is it possible to add health not set health?
#4

Quote:
Originally Posted by Aveger
Посмотреть сообщение
how can i make it so they don't go over 100 health?
also i got this error i don't want to spam another topic so i will post here
Код:
if(listitem == 6) { if(GetPlayerMoney(playerid) > 5000) { GivePlayerMoney(playerid,-5000); return cmd_thelp(playerid, params[]); } else { SendClientMessage(playerid,SERVER_COL, "You don't have enough money to buy this item");}}}
undefined symbol params but it's defined in zcmds
pawn Код:
new Float:Health = GetPlayerHealth ( playerid , Health ) ;
if ( Health < 100 )
{
    SetPlayerHealth ( playerid , Health+50 ) ;
    return 1;
}
and

pawn Код:
if(listitem == 6)
{
    if(GetPlayerMoney(playerid) > 5000)
    {
        GivePlayerMoney(playerid,-5000);
        return cmd_thelp(playerid, params);
    }
    else
    {
        SendClientMessage(playerid,SERVER_COL, "You don't have enough money to buy this item");
    }
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)