18.06.2013, 22:32
Quote:
|
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");}}}
|
pawn Код:
new Float:Health = GetPlayerHealth ( playerid , Health ) ;
if ( Health < 100 )
{
SetPlayerHealth ( playerid , Health+50 ) ;
return 1;
}
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");
}
}


