Beiträge von Knölch

    das hier ist von mein Gamemod



    PHP
    if(strcmp(cmd, "/sbiz", true) == 0)	{	    if(IsPlayerConnected(playerid))		{		    if(PlayerInfo[playerid][pAdmin] >= 1337)		    {				tmp = strtok(cmdtext, idx);				if(!strlen(tmp))				{					SendClientMessage(playerid, COLOR_GRAD2, "NUTZE: /sbiz [biznummer]");					return 1;				}				new housenum = strval(tmp);				SetPlayerInterior(playerid,SBizzInfo[housenum][sbInterior]);				SetPlayerPos(playerid,SBizzInfo[housenum][sbEntranceX],SBizzInfo[housenum][sbEntranceY],SBizzInfo[housenum][sbEntranceZ]);				GameTextForPlayer(playerid, "~w~Teleporting", 5000, 1);

    das ist die sbiz.cfg ?



    0|||£|0.000000|0.000000|0.000000|0|0|0|14798875|0|0|0|0|0
    0|||£|0.000000|0.000000|0.000000|0|0|0|14107945|0|0|0|0|0
    0|||£|0.000000|0.000000|0.000000|0|0|0|14107875|0|0|0|0|0
    0|||£|0.000000|0.000000|0.000000|0|0|0|14107901|0|0|0|0|0
    0|||£|0.000000|0.000000|0.000000|0|0|0|14107875|0|0|0|0|0
    0|||£|0.000000|0.000000|0.000000|0|0|0|14107875|0|0|0|0|0
    0|||£|0.000000|0.000000|0.000000|0|0|0|14107875|0|0|0|0|0
    0|||£|0.000000|0.000000|0.000000|0|0|0|14107875|0|0|0|0|0
    0|||£|0.000000|0.000000|0.000000|0|0|0|14107875|0|0|0|0|0







    //==============================hier der 2teile habe ich vergessen mit zu posten von 24/7 also das von oben====



    format(symb1, sizeof(symb1), "~b~]"); randcard1 = 1; } else if(randcard1 <= 4 && randcard1 >= 2) { format(symb1, sizeof(symb1), "~g~]"); randcard1 = 2; } else if(randcard1 < 2) { format(symb1, sizeof(symb1), "~y~]"); randcard1 = 3; } if(randcard2 >= 5) { format(symb2, sizeof(symb2), "~b~]"); randcard2 = 1; } else if(randcard2 <= 4 && randcard2 >= 2) { format(symb2, sizeof(symb2), "~g~]"); randcard2 = 2; } else if(randcard2 < 2) { format(symb2, sizeof(symb2), "~y~]"); randcard2 = 3; } if(randcard3 >= 5) { format(symb3, sizeof(symb3), "~b~]"); randcard3 = 1; } else if(randcard3 <= 4 && randcard3 >= 2) { format(symb3, sizeof(symb3), "~g~]"); randcard3 = 2; } else if(randcard3 < 2) { format(symb3, sizeof(symb3), "~y~]"); randcard3 = 3; } if(randcard1 == randcard2 && randcard1 == randcard3) { if(randcard1 > 5) { prize = 100; } if(randcard1 <= 4 && randcard1 >= 2) { prize = 50; } if(randcard1 < 2) { prize = 10; } GivePlayerMoney(playerid,prize); SBizzInfo[8][sbTill] -= prize; ExtortionSBiz(8, prize); format(string, sizeof(string), "%s %s %s ~n~~n~~w~~g~$%d",symb1,symb2,symb3, prize); } else { format(string, sizeof(string), "%s %s %s ~n~~n~~w~~r~$0",symb1,symb2,symb3); } GameTextForPlayer(playerid, string, 3000, 3); return 1; } else if (item == 3 && GetPlayerMoney(playerid) > 40) { if(PlayerInfo[playerid][pTraderPerk] > 0) { new skill = 40 / 100; new price = (skill)*(PlayerInfo[playerid][pTraderPerk]); new payout = 40 - price; GivePlayerMoney(playerid,- payout); SBizzInfo[8][sbProducts] -= 1; SBizzInfo[8][sbTill] += payout; ExtortionSBiz(8, payout); format(string, sizeof(string), "~r~-$%d", payout); GameTextForPlayer(playerid, string, 5000, 1); } else { GivePlayerMoney(playerid,-50); SBizzInfo[8][sbTill] += 50; ExtortionSBiz(8, 50); format(string, sizeof(string), "~r~-$%d", 5000); GameTextForPlayer(playerid, string, 5000, 1); } PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); PlayerInfo[playerid][pPhoneBook] = 1; format(string, sizeof(string), " Telefonbuch gekauft! Du kannst damit die Telefonnummern von anderen Spielern nachgucken."); SendClientMessage(playerid, COLOR_GRAD4, string); SendClientMessage(playerid, COLOR_WHITE, "HILFE: Gib /number [id] ein um die Nummer zu sehen."); return 1; } else if (item == 4 && GetPlayerMoney(playerid) > 5) { if(PlayerInfo[playerid][pTraderPerk] > 0) { new skill = 1 / 100; new price = (skill)*(PlayerInfo[playerid][pTraderPerk]); new payout = 1 - price; GivePlayerMoney(playerid,- payout); SBizzInfo[8][sbProducts] -= 1; SBizzInfo[8][sbTill] += payout; ExtortionSBiz(8, payout); format(string, sizeof(string), "~r~-$%d", payout); GameTextForPlayer(playerid, string, 5000, 1); } else { GivePlayerMoney(playerid,-5); SBizzInfo[8][sbTill] += 5; SBizzInfo[8][sbProducts] -= 1; ExtortionSBiz(8, 5); format(string, sizeof(string), "~r~-$%d", 500); GameTextForPlayer(playerid, string, 5000, 1); } PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); gDice[playerid] = 1; format(string, sizeof(string), " Würfel gekauft."); SendClientMessage(playerid, COLOR_GRAD4, string); SendClientMessage(playerid, COLOR_WHITE, "HILFE: Gib /dice um den Würfel zu werfen. "); return 1; } else if (item == 5 && GetPlayerMoney(playerid) > 8) { if(PlayerInfo[playerid][pTraderPerk] > 0) { new skill = 50 / 100; new price = (skill)*(PlayerInfo[playerid][pTraderPerk]); new payout = 50 - price; GivePlayerMoney(playerid,- payout); format(string, sizeof(string), "~r~-$%d", payout); GameTextForPlayer(playerid, string, 5000, 1); SBizzInfo[8][sbProducts] -= 1; } else { GivePlayerMoney(playerid,-50); format(string, sizeof(string), "~r~-$%d", 50); GameTextForPlayer(playerid, string, 5000, 1); SBizzInfo[8][sbProducts] -= 1; } Condom[playerid] ++; PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); format(string, sizeof(string), "Kondom Gekauft."); SendClientMessage(playerid, COLOR_GRAD4, string); return 1; } else if (item == 6 && GetPlayerMoney(playerid) > 50) { if(PlayerInfo[playerid][pTraderPerk] > 0) { new skill = 25 / 100; new price = (skill)*(PlayerInfo[playerid][pTraderPerk]); new payout = 2500 - price; GivePlayerMoney(playerid, - payout); SBizzInfo[8][sbProducts] -= 1; format(string, sizeof(string), "~r~-$%d", payout); GameTextForPlayer(playerid, string, 5000, 1); } else { GivePlayerMoney(playerid, - 25); SBizzInfo[8][sbProducts] -= 1; format(string, sizeof(string), "~r~-$%d", 2500); GameTextForPlayer(playerid, string, 5000, 1); } PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); format(string, sizeof(string), "CD-Player gekauft."); SendClientMessage(playerid, COLOR_GRAD4, string); SendClientMessage(playerid, COLOR_WHITE, "Hilfe: Tipp: /music"); PlayerInfo[playerid][pCDPlayer] = 1; return 1; } else if (item == 7 && GetPlayerMoney(playerid) > 3) { if(Groceries[playerid][pChickens] >= 3) { SendClientMessage(playerid, COLOR_GREY, " Du hast zu viele Chicken, Brate zuerst ein paar !"); return 1; } if(PlayerInfo[playerid][pTraderPerk] > 0) { new skill = 3 / 100; new price = (skill)*(PlayerInfo[playerid][pTraderPerk]); new payout = 3 - price; SBizzInfo[8][sbProducts] -= 1; GivePlayerMoney(playerid, - payout); format(string, sizeof(string), "~r~-$%d", payout); GameTextForPlayer(playerid, string, 5000, 1); } else { GivePlayerMoney(playerid, - 3); SBizzInfo[8][sbProducts] -= 1; format(string, sizeof(string), "~r~-$%d", 10); GameTextForPlayer(playerid, string, 5000, 1); } GivePlayerMoney(playerid, - 10); PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); format(string, sizeof(string), "Chicken gekauft."); SendClientMessage(playerid, COLOR_GRAD4, string); format(string, sizeof(string), "~r~-$%d", 10); GameTextForPlayer(playerid, string, 5000, 1); new rand = random(15); Groceries[playerid][pChickens] += 1; Groceries[playerid][pChicken] += rand; return 1; } else if (item == 8 && GetPlayerMoney(playerid) > 3) { if(Groceries[playerid][pHamburgers] >= 3) { SendClientMessage(playerid, COLOR_GREY, " Du hast zu viele Hamburger, Koche zuerst ein paar !"); return 1; } if(PlayerInfo[playerid][pTraderPerk] > 0) { new skill = 1 / 100; new price = (skill)*(PlayerInfo[playerid][pTraderPerk]); new payout = 1 - price; GivePlayerMoney(playerid, - payout); SBizzInfo[8][sbProducts] -= 1; format(string, sizeof(string), "~r~-$%d", payout); GameTextForPlayer(playerid, string, 5000, 1); } else { GivePlayerMoney(playerid, - 1); SBizzInfo[8][sbProducts] -= 1; format(string, sizeof(string), "~r~-$%d", 10); GameTextForPlayer(playerid, string, 5000, 1); } GivePlayerMoney(playerid, - 10); PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); format(string, sizeof(string), "Hamburger gekauft."); SendClientMessage(playerid, COLOR_GRAD4, string); format(string, sizeof(string), "~r~-$%d", 10); GameTextForPlayer(playerid, string, 5000, 1); new rand = random(15); Groceries[playerid][pHamburgers] += 1; Groceries[playerid][pHamburger] += rand; return 1; } else if (item == 9 && GetPlayerMoney(playerid) > 10) { GivePlayerMoney(playerid, - 10); format(string, sizeof(string), "~r~-$%d", 10); SBizzInfo[8][sbProducts] -= 1; GameTextForPlayer(playerid, string, 5000, 1); PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); format(string, sizeof(string), "Schachtel Kekse Gekauft."); SendClientMessage(playerid, COLOR_GRAD4, string); PlayerInfo[playerid][pKekse] = 10; return 1; } else if (item == 10 && GetPlayerMoney(playerid) > 50) { GivePlayerMoney(playerid, - 50); SBizzInfo[8][sbProducts] -= 1; format(string, sizeof(string), "~r~-$%d", 50); GameTextForPlayer(playerid, string, 5000, 1); PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); format(string, sizeof(string), "Schachtel Zigaretten Gekauft."); SendClientMessage(playerid, COLOR_GRAD4, string); PlayerInfo[playerid][pZig] = 5; return 1; } else if (item == 11 && GetPlayerMoney(playerid) > 1000000) { SendClientMessage(playerid, COLOR_GREEN," Du hast dir nun Dynamite gekauft .. "); PlayerInfo[playerid][pDynamite] = 1; return 1; } else { SendClientMessage(playerid, COLOR_WHITE, "Du hast nicht genug Geld Dafür!"); } } return 1; }

    Hay Leute ich habe da so ein Problem mit meinem 24/7 laden ja ämm wenn ich was kaufen will steht da die ganze zeit ausverkauft und bei meinem Houseupgrade die selber scheiße ich weiß nicht was für bug das ist hier mal 24/7 shop