Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:mananci(playerid, params[])
- {
- if(PinLogged[playerid] == 0)return SCM(playerid, COLOR_DARKNICERED,"{FFFFFF}{FFFFFF}Contul tau este {ff0000}blocat{ffffff}, foloseste {ff0000}/pin{ffffff} pentru a-l debloca..");
- if(IsPlayerConnected(playerid))
- {
- if(BizzInfo[InBussines[playerid]][bType] == 7 || BizzInfo[InBussines[playerid]][bType] == 9 || BizzInfo[InBussines[playerid]][bType] == 14 || HouseInfo[InHouse[playerid]][hHel] == 1)
- {
- new bid = InBussines[playerid],str[256];
- if(GetPlayerCash(playerid) < 100) return SCM(playerid,COLOR_GREY,"You don't have enough money.");
- new Float:health;
- GetPlayerHealthEx(playerid,health);
- if(health >= 75)
- {
- SetPlayerHealthEx(playerid, 100);
- ApplyAnimation(playerid,"FOOD","EAT_Burger", 3.0, 0, 0, 0, 0, 0);
- GivePlayerCash(playerid, -100);
- GameTextForPlayer(playerid, "~r~-100$", 5000, 1);
- BizzInfo[bid][bTill] += 100;
- Update(playerid,pCashx);
- mysql_format(SQL,str,sizeof(str),"UPDATE `bizz` SET `Till`='%d' WHERE `ID`='%d'",BizzInfo[bid][bTill],bid);
- mysql_tquery(SQL,str,"","");
- }
- else
- {
- SetPlayerHealthEx (playerid, health+25);
- ApplyAnimation(playerid,"FOOD","EAT_Burger", 3.0, 0, 0, 0, 0, 0);
- GivePlayerCash(playerid, -100);
- GameTextForPlayer(playerid, "~r~-100$", 5000, 1);
- BizzInfo[bid][bTill] += 100;
- Update(playerid,pCashx);
- mysql_format(SQL,str,sizeof(str),"UPDATE `bizz` SET `Till`='%d' WHERE `ID`='%d'",BizzInfo[bid][bTill],bid);
- mysql_tquery(SQL,str,"","");
- }
- if(HealTimer[playerid] != 0) return SendClientMessage(playerid, COLOR_LIGHTGREEN3, "You need to wait 30 seconds before using /heal again.");
- if(InHouse[playerid] > 0)
- {
- if(HouseInfo[InHouse[playerid]][hHel] == 1)
- {
- SetPlayerHealthEx(playerid, 100.0);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(str, sizeof(str),"* %s ate some food.",sendername);
- ProxDetector(30.0, playerid, str, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- HealTimer[playerid] = 30;
- }
- else return SendClientMessage(playerid, COLOR_GREY, "This house don't have a food upgrade.");
- }
- }
- }
- }
- return 1;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement