22.06.2012, 13:03
Nice one,Ibnu ane farhan gimma rep
One suggestion :
At eat you should have something like : Код:
if( health < 100 ) { if(IsPlayerInRangeOfPoint(playerid, 20, 366.0248, -73.3478, 1001.5078)) { GivePlayerMoney(playerid, -50); SetPlayerHealth(playerid,health+6); SetProgressBarValue(hungry[playerid], GetProgressBarValue(hungry[playerid])+15); return SendClientMessage(playerid, COLOR_BLUE, "Thanks For Buying Burger Enjoy The Food"); } if(IsPlayerInRangeOfPoint(playerid, 50, 372.3520, -131.6510, 1001.4922)) { GivePlayerMoney(playerid, -70); SetPlayerHealth(playerid,health+15); SetProgressBarValue(hungry[playerid], GetProgressBarValue(hungry[playerid])+25); return SendClientMessage(playerid, COLOR_BLUE, "Thanks For Buying Pizza Enjoy The Food"); } if(!IsPlayerInRangeOfPoint(playerid, 50, 365.7158, -9.8873, 1001.8516)) { GivePlayerMoney(playerid, -35); SetPlayerHealth(playerid,health+4); SetProgressBarValue(hungry[playerid], GetProgressBarValue(hungry[playerid])+12); return SendClientMessage(playerid, COLOR_BLUE, "Thanks For Buying Fried Chicken Enjoy The Food"); } } else { SendClientMessage(playerid, COLOR_BLUE, "Your hp is full."); } ![]() |