hustlin'99 Posted November 4, 2015 Posted November 4, 2015 (edited) Problema intalnita (descriere): Bug /clothes (nu iti apare skin selector) , Bug /buygun (iti apare dialogul dar nu poti cumpara o arma) . Ero(area / rile) / warning-(ul / urile): nu imi da eroare / warning. Liniile de cod / sursa / script-ul(obligatoriu): Spoiler // CLOTHES PLACE public IsAtClothShop(playerid) { if(IsPlayerConnected(playerid)) { if(IsPlayerInRangeOfPoint(playerid, 50.0,207.5627,-103.7291,1005.2578) || IsPlayerInRangeOfPoint(playerid, 50.0,203.9068,-41.0728,1001.8047)) {//Binco & Suburban return 1; } else if(IsPlayerInRangeOfPoint(playerid, 50.0,214.4470,-7.6471,1001.2109) || IsPlayerInRangeOfPoint(playerid, 50.0,161.3765,-83.8416,1001.8047) || IsPlayerInRangeOfPoint(playerid, 50.0,204.2205,-168.3091,1000.5234)) {//Zip & Victim return 1; } } return 0; } CMD:clothes(playerid,params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first."); if(IsAtClothShop(playerid)) { if(GetPlayerCash(playerid) < 5000) return SendClientMessage(playerid,COLOR_LIGHTRED,"You don't have 5,000$."); if(PlayerInfo[playerid][pMember] == 0 && PlayerInfo[playerid][pLeader] == 0) { ShowModelSelectionMenu(playerid, skinlist, "Select skin"); } else if(PlayerInfo[playerid][pMember] == 1 && PlayerInfo[playerid][pLeader] == 0) { ShowModelSelectionMenu(playerid, skinlist1, "Select skin"); } else if(PlayerInfo[playerid][pMember] == 2 && PlayerInfo[playerid][pLeader] == 0) { ShowModelSelectionMenu(playerid, skinlist2, "Select skin"); } else if(PlayerInfo[playerid][pMember] == 3 && PlayerInfo[playerid][pLeader] == 0) { ShowModelSelectionMenu(playerid, skinlist3, "Select skin"); } else if(PlayerInfo[playerid][pMember] == 4 && PlayerInfo[playerid][pLeader] == 0) { ShowModelSelectionMenu(playerid, skinlist4, "Select skin"); } else if(PlayerInfo[playerid][pMember] == 5 && PlayerInfo[playerid][pLeader] == 0) { ShowModelSelectionMenu(playerid, skinlist5, "Select skin"); } else if(PlayerInfo[playerid][pMember] == 6 && PlayerInfo[playerid][pLeader] == 0) { ShowModelSelectionMenu(playerid, skinlist6, "Select skin"); } else if(PlayerInfo[playerid][pMember] == 7 && PlayerInfo[playerid][pLeader] == 0) { ShowModelSelectionMenu(playerid, skinlist, "Select skin"); } else if(PlayerInfo[playerid][pMember] == 8 && PlayerInfo[playerid][pLeader] == 0) { ShowModelSelectionMenu(playerid, skinlist8, "Select skin"); } else if(PlayerInfo[playerid][pMember] == 9 && PlayerInfo[playerid][pLeader] == 0) { ShowModelSelectionMenu(playerid, skinlist9, "Select skin"); } else if(PlayerInfo[playerid][pMember] == 10 && PlayerInfo[playerid][pLeader] == 0) { ShowModelSelectionMenu(playerid, skinlist10, "Select skin"); } else if(PlayerInfo[playerid][pMember] == 11 && PlayerInfo[playerid][pLeader] == 0) { ShowModelSelectionMenu(playerid, skinlist11, "Select skin"); } else if(PlayerInfo[playerid][pMember] == 12 && PlayerInfo[playerid][pLeader] == 0) { ShowModelSelectionMenu(playerid, skinlist12, "Select skin"); } else if(PlayerInfo[playerid][pMember] == 13 && PlayerInfo[playerid][pLeader] == 0) { ShowModelSelectionMenu(playerid, skinlist13, "Select skin"); } else if(PlayerInfo[playerid][pMember] == 14 && PlayerInfo[playerid][pLeader] == 0) { ShowModelSelectionMenu(playerid, skinlist14, "Select skin"); } } else { SCM(playerid,COLOR_WHITE,"{FFB870}You're not at clothing store."); } return 1; } Spoiler CMD:buygun(playerid, params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first."); if(PlayerInfo[playerid][pGunLic] == 0) return SendClientMessage(playerid, COLOR_WHITE,"{FFB870}You don't have gun license."); if(IsPlayerInRangeOfPoint(playerid, 150.0, 313.7856,-134.1924,1004.0625)) { if(GetPlayerInterior(playerid) == 0) return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}You are not in a store."); ShowPlayerDialog(playerid,Dialog_gunshop,DIALOG_STYLE_LIST,"Select:","Baseball bat($1,000)\nSD Pistol($2,000)\nDesert eagle($3,000)\nShotgun($4,200)\nMP5($4,600)\nAK47($7,000)\nM4($7,000)","Select","Cancel"); return 1; } else { SendClientMessage(playerid, COLOR_WHITE, "{FFB870}You are not in a Gun shop."); } return 1; } Dialog_gunshop Spoiler if(dialogid == Dialog_gunshop) { if(response) { GetPlayerName(playerid, sendername, sizeof(sendername)); new infostring[512]; if(listitem == 0) { if(IsPlayerInRangeOfPoint(playerid, 150.0, 313.7856,-134.1924,1004.0625) && GetPlayerVirtualWorld(playerid) == 0) { format(infostring, 256, "* %s bought a baseball bat.",sendername); ProxDetector(50.0, playerid, infostring, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GivePlayerCash(playerid, - 1000); BizzInfo[2][bTill] += 1000; Update(playerid,pCashx); mysql_format(SQL,string,sizeof(string),"UPDATE `bizz` SET `Till`='%d' WHERE `ID`='2'",BizzInfo[2][bTill]); mysql_tquery(SQL,string,"",""); GivePlayerWeaponEx(playerid, 5, 1); } else if(IsPlayerInRangeOfPoint(playerid, 150.0, 313.7856,-134.1924,1004.0625) && GetPlayerVirtualWorld(playerid) == 1) { format(infostring, 256, "* %s bought a baseball bat.",sendername); ProxDetector(30.0, playerid, infostring, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GivePlayerCash(playerid, - 1000); BizzInfo[9][bTill] += 1000; Update(playerid,pCashx); mysql_format(SQL,string,sizeof(string),"UPDATE `bizz` SET `Till`='%d' WHERE `ID`='9'",BizzInfo[9][bTill]); mysql_tquery(SQL,string,"",""); GivePlayerWeaponEx(playerid, 5, 1); } else if(IsPlayerInRangeOfPoint(playerid, 150.0, 313.7856,-134.1924,1004.0625) && GetPlayerVirtualWorld(playerid) == 2) { format(infostring, 256, "* %s bought a baseball bat.",sendername); ProxDetector(50.0, playerid, infostring, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GivePlayerCash(playerid, - 1000); BizzInfo[22][bTill] += 1000; Update(playerid,pCashx); mysql_format(SQL,string,sizeof(string),"UPDATE `bizz` SET `Till`='%d' WHERE `ID`='22'",BizzInfo[22][bTill]); mysql_tquery(SQL,string,"",""); GivePlayerWeaponEx(playerid, 5, 1); } } else if(listitem == 1) { if(IsPlayerInRangeOfPoint(playerid, 150.0, 313.7856,-134.1924,1004.0625) && GetPlayerVirtualWorld(playerid) == 0) { format(infostring, 256, "* %s bought a SD Pistol.",sendername); ProxDetector(50.0, playerid, infostring,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GivePlayerCash(playerid, - 2000); BizzInfo[2][bTill] += 2000; Update(playerid,pCashx); mysql_format(SQL,string,sizeof(string),"UPDATE `bizz` SET `Till`='%d' WHERE `ID`='2'",BizzInfo[2][bTill]); mysql_tquery(SQL,string,"",""); GivePlayerWeaponEx(playerid, 23, 30); } else if(IsPlayerInRangeOfPoint(playerid, 150.0, 313.7856,-134.1924,1004.0625) && GetPlayerVirtualWorld(playerid) == 1) { format(infostring, 256, "* %s bought a SD Pistol.",sendername); ProxDetector(50.0, playerid, infostring,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GivePlayerCash(playerid, - 2000); BizzInfo[9][bTill] += 2000; Update(playerid,pCashx); mysql_format(SQL,string,sizeof(string),"UPDATE `bizz` SET `Till`='%d' WHERE `ID`='9'",BizzInfo[9][bTill]); mysql_tquery(SQL,string,"",""); GivePlayerWeaponEx(playerid, 23, 30); } else if(IsPlayerInRangeOfPoint(playerid, 150.0, 313.7856,-134.1924,1004.0625) && GetPlayerVirtualWorld(playerid) == 2) { format(infostring, 256, "* %s bought a SD Pistol.",sendername); ProxDetector(50.0, playerid, infostring,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GivePlayerCash(playerid, - 2000); BizzInfo[22][bTill] += 2000; Update(playerid,pCashx); mysql_format(SQL,string,sizeof(string),"UPDATE `bizz` SET `Till`='%d' WHERE `ID`='22'",BizzInfo[22][bTill]); mysql_tquery(SQL,string,"",""); GivePlayerWeaponEx(playerid, 23, 30); } } else if(listitem == 2) { if(IsPlayerInRangeOfPoint(playerid, 150.0, 313.7856,-134.1924,1004.0625) && GetPlayerVirtualWorld(playerid) == 0) { format(infostring, 256, "* %s bought a Desert eagle.",sendername); ProxDetector(50.0, playerid, infostring,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GivePlayerCash(playerid, - 3000); BizzInfo[2][bTill] += 3000; Update(playerid,pCashx); mysql_format(SQL,string,sizeof(string),"UPDATE `bizz` SET `Till`='%d' WHERE `ID`='2'",BizzInfo[2][bTill]); mysql_tquery(SQL,string,"",""); GivePlayerWeaponEx(playerid, 24, 50); } else if(IsPlayerInRangeOfPoint(playerid, 150.0, 313.7856,-134.1924,1004.0625) && GetPlayerVirtualWorld(playerid) == 1) { format(infostring, 256, "* %s bought a Desert eagle.",sendername); ProxDetector(50.0, playerid, infostring,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GivePlayerCash(playerid, - 3000); BizzInfo[9][bTill] += 3000; Update(playerid,pCashx); mysql_format(SQL,string,sizeof(string),"UPDATE `bizz` SET `Till`='%d' WHERE `ID`='9'",BizzInfo[9][bTill]); mysql_tquery(SQL,string,"",""); GivePlayerWeaponEx(playerid, 24, 50); } else if(IsPlayerInRangeOfPoint(playerid, 150.0, 313.7856,-134.1924,1004.0625) && GetPlayerVirtualWorld(playerid) == 2) { format(infostring, 256, "* %s bought a Desert eagle.",sendername); ProxDetector(50.0, playerid, infostring,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GivePlayerCash(playerid, - 3000); BizzInfo[22][bTill] += 3000; Update(playerid,pCashx); mysql_format(SQL,string,sizeof(string),"UPDATE `bizz` SET `Till`='%d' WHERE `ID`='22'",BizzInfo[22][bTill]); mysql_tquery(SQL,string,"",""); GivePlayerWeaponEx(playerid, 24, 50); } } else if(listitem == 3) { if(IsPlayerInRangeOfPoint(playerid, 150.0, 313.7856,-134.1924,1004.0625) && GetPlayerVirtualWorld(playerid) == 0) { format(infostring, 256, "* %s bought a Shotgun.",sendername); ProxDetector(50.0, playerid, infostring,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GivePlayerCash(playerid, - 4200); BizzInfo[2][bTill] += 4200; Update(playerid,pCashx); mysql_format(SQL,string,sizeof(string),"UPDATE `bizz` SET `Till`='%d' WHERE `ID`='2'",BizzInfo[2][bTill]); mysql_tquery(SQL,string,"",""); GivePlayerWeaponEx(playerid, 25, 20); } else if(IsPlayerInRangeOfPoint(playerid, 150.0, 313.7856,-134.1924,1004.0625) && GetPlayerVirtualWorld(playerid) == 1) { format(infostring, 256, "* %s bought a Shotgun.",sendername); ProxDetector(50.0, playerid, infostring,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GivePlayerCash(playerid, - 4200); BizzInfo[9][bTill] += 4200; Update(playerid,pCashx); mysql_format(SQL,string,sizeof(string),"UPDATE `bizz` SET `Till`='%d' WHERE `ID`='9'",BizzInfo[9][bTill]); mysql_tquery(SQL,string,"",""); GivePlayerWeaponEx(playerid, 25, 20); } else if(IsPlayerInRangeOfPoint(playerid, 150.0, 313.7856,-134.1924,1004.0625) && GetPlayerVirtualWorld(playerid) == 2) { format(infostring, 256, "* %s bought a Shotgun.",sendername); ProxDetector(50.0, playerid, infostring,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GivePlayerCash(playerid, - 4200); BizzInfo[22][bTill] += 4200; Update(playerid,pCashx); mysql_format(SQL,string,sizeof(string),"UPDATE `bizz` SET `Till`='%d' WHERE `ID`='22'",BizzInfo[22][bTill]); mysql_tquery(SQL,string,"",""); GivePlayerWeaponEx(playerid, 25, 20); } } else if(listitem == 4) { if(IsPlayerInRangeOfPoint(playerid, 150.0, 313.7856,-134.1924,1004.0625) && GetPlayerVirtualWorld(playerid) == 0) { format(infostring, 256, "* %s bought a MP5.",sendername); ProxDetector(50.0, playerid, infostring,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GivePlayerCash(playerid, - 4600); BizzInfo[2][bTill] += 4600; Update(playerid,pCashx); mysql_format(SQL,string,sizeof(string),"UPDATE `bizz` SET `Till`='%d' WHERE `ID`='2'",BizzInfo[2][bTill]); mysql_tquery(SQL,string,"",""); GivePlayerWeaponEx(playerid, 29, 150); } else if(IsPlayerInRangeOfPoint(playerid, 150.0, 313.7856,-134.1924,1004.0625) && GetPlayerVirtualWorld(playerid) == 1) { format(infostring, 256, "* %s bought a MP5.",sendername); ProxDetector(50.0, playerid, infostring,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GivePlayerCash(playerid, - 4600); BizzInfo[9][bTill] += 4600; Update(playerid,pCashx); mysql_format(SQL,string,sizeof(string),"UPDATE `bizz` SET `Till`='%d' WHERE `ID`='9'",BizzInfo[9][bTill]); mysql_tquery(SQL,string,"",""); GivePlayerWeaponEx(playerid, 29, 150); } else if(IsPlayerInRangeOfPoint(playerid, 150.0, 313.7856,-134.1924,1004.0625) && GetPlayerVirtualWorld(playerid) == 2) { format(infostring, 256, "* %s bought a MP5.",sendername); ProxDetector(50.0, playerid, infostring,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GivePlayerCash(playerid, - 4600); BizzInfo[22][bTill] += 4600; Update(playerid,pCashx); mysql_format(SQL,string,sizeof(string),"UPDATE `bizz` SET `Till`='%d' WHERE `ID`='22'",BizzInfo[22][bTill]); mysql_tquery(SQL,string,"",""); GivePlayerWeaponEx(playerid, 29, 150); } } else if(listitem == 5) { if(IsPlayerInRangeOfPoint(playerid, 150.0, 313.7856,-134.1924,1004.0625) && GetPlayerVirtualWorld(playerid) == 0) { format(infostring, 256, "* %s bought a AK47.",sendername); ProxDetector(50.0, playerid, infostring,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GivePlayerCash(playerid, - 7000); BizzInfo[2][bTill] += 7000; Update(playerid,pCashx); mysql_format(SQL,string,sizeof(string),"UPDATE `bizz` SET `Till`='%d' WHERE `ID`='2'",BizzInfo[2][bTill]); mysql_tquery(SQL,string,"",""); GivePlayerWeaponEx(playerid, 30, 100); } else if(IsPlayerInRangeOfPoint(playerid, 150.0, 313.7856,-134.1924,1004.0625) && GetPlayerVirtualWorld(playerid) == 1) { format(infostring, 256, "* %s bought a AK47.",sendername); ProxDetector(50.0, playerid, infostring,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GivePlayerCash(playerid, - 7000); BizzInfo[9][bTill] += 7000; Update(playerid,pCashx); mysql_format(SQL,string,sizeof(string),"UPDATE `bizz` SET `Till`='%d' WHERE `ID`='9'",BizzInfo[9][bTill]); mysql_tquery(SQL,string,"",""); GivePlayerWeaponEx(playerid, 30, 100); } else if(IsPlayerInRangeOfPoint(playerid, 150.0, 313.7856,-134.1924,1004.0625) && GetPlayerVirtualWorld(playerid) == 2) { format(infostring, 256, "* %s bought a AK47.",sendername); ProxDetector(50.0, playerid, infostring,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GivePlayerCash(playerid, - 7000); BizzInfo[22][bTill] += 7000; Update(playerid,pCashx); mysql_format(SQL,string,sizeof(string),"UPDATE `bizz` SET `Till`='%d' WHERE `ID`='22'",BizzInfo[22][bTill]); mysql_tquery(SQL,string,"",""); GivePlayerWeaponEx(playerid, 30, 100); } } else if(listitem == 6) { if(IsPlayerInRangeOfPoint(playerid, 150.0, 313.7856,-134.1924,1004.0625) && GetPlayerVirtualWorld(playerid) == 0) { format(infostring, 256, "* %s bought a M4.",sendername); ProxDetector(50.0, playerid, infostring,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GivePlayerCash(playerid, - 7000); BizzInfo[2][bTill] += 7000; Update(playerid,pCashx); mysql_format(SQL,string,sizeof(string),"UPDATE `bizz` SET `Till`='%d' WHERE `ID`='2'",BizzInfo[2][bTill]); mysql_tquery(SQL,string,"",""); GivePlayerWeaponEx(playerid, 31, 100); } else if(IsPlayerInRangeOfPoint(playerid, 150.0, 313.7856,-134.1924,1004.0625) && GetPlayerVirtualWorld(playerid) == 1) { format(infostring, 256, "* %s bought a M4.",sendername); ProxDetector(50.0, playerid, infostring,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GivePlayerCash(playerid, - 7000); BizzInfo[9][bTill] += 7000; Update(playerid,pCashx); mysql_format(SQL,string,sizeof(string),"UPDATE `bizz` SET `Till`='%d' WHERE `ID`='9'",BizzInfo[9][bTill]); mysql_tquery(SQL,string,"",""); GivePlayerWeaponEx(playerid, 31, 100); } else if(IsPlayerInRangeOfPoint(playerid, 150.0, 313.7856,-134.1924,1004.0625) && GetPlayerVirtualWorld(playerid) == 2) { format(infostring, 256, "* %s bought a M4.",sendername); ProxDetector(50.0, playerid, infostring,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GivePlayerCash(playerid, - 7000); BizzInfo[22][bTill] += 7000; Update(playerid,pCashx); mysql_format(SQL,string,sizeof(string),"UPDATE `bizz` SET `Till`='%d' WHERE `ID`='22'",BizzInfo[22][bTill]); mysql_tquery(SQL,string,"",""); GivePlayerWeaponEx(playerid, 31, 100); } } } } Imagini / Video (optional): - Ati incercat sa rezolvati singur?: da Edited February 7, 2016 by ASU57 ..::Contact::..Y!M: [email protected]Skype: asu_snk57
hustlin'99 Posted November 5, 2015 Author Posted November 5, 2015 Nu imi da nici o eroare. ..::Contact::..Y!M: [email protected]Skype: asu_snk57
Джо Posted November 5, 2015 Posted November 5, 2015 Ai in scriptfilles skin.txt cu toate id-urile skinurilor? La /buygun arata ce ai facut la ondialogresponse. 1
hustlin'99 Posted November 5, 2015 Author Posted November 5, 2015 (edited) Acum 4 ore, Adrian_Petre a spus: Ai in scriptfilles skin.txt cu toate id-urile skinurilor? La /buygun arata ce ai facut la ondialogresponse. Am rezolvat cu skin-urile. Uite aici ce am la gunshop ondialogreponse Spoiler if(dialogid == Dialog_gunshop) { if(response) { GetPlayerName(playerid, sendername, sizeof(sendername)); new infostring[512]; if(listitem == 0) { if(IsPlayerInRangeOfPoint(playerid, 150.0, 313.7856,-134.1924,1004.0625) && GetPlayerVirtualWorld(playerid) == 0) { format(infostring, 256, "* %s bought a baseball bat.",sendername); ProxDetector(50.0, playerid, infostring, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GivePlayerCash(playerid, - 1000); BizzInfo[2][bTill] += 1000; Update(playerid,pCashx); mysql_format(SQL,string,sizeof(string),"UPDATE `bizz` SET `Till`='%d' WHERE `ID`='2'",BizzInfo[2][bTill]); mysql_tquery(SQL,string,"",""); GivePlayerWeaponEx(playerid, 5, 1); } else if(IsPlayerInRangeOfPoint(playerid, 150.0, 313.7856,-134.1924,1004.0625) && GetPlayerVirtualWorld(playerid) == 1) { format(infostring, 256, "* %s bought a baseball bat.",sendername); ProxDetector(30.0, playerid, infostring, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GivePlayerCash(playerid, - 1000); BizzInfo[9][bTill] += 1000; Update(playerid,pCashx); mysql_format(SQL,string,sizeof(string),"UPDATE `bizz` SET `Till`='%d' WHERE `ID`='9'",BizzInfo[9][bTill]); mysql_tquery(SQL,string,"",""); GivePlayerWeaponEx(playerid, 5, 1); } else if(IsPlayerInRangeOfPoint(playerid, 150.0, 313.7856,-134.1924,1004.0625) && GetPlayerVirtualWorld(playerid) == 2) { format(infostring, 256, "* %s bought a baseball bat.",sendername); ProxDetector(50.0, playerid, infostring, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GivePlayerCash(playerid, - 1000); BizzInfo[22][bTill] += 1000; Update(playerid,pCashx); mysql_format(SQL,string,sizeof(string),"UPDATE `bizz` SET `Till`='%d' WHERE `ID`='22'",BizzInfo[22][bTill]); mysql_tquery(SQL,string,"",""); GivePlayerWeaponEx(playerid, 5, 1); } } else if(listitem == 1) { if(IsPlayerInRangeOfPoint(playerid, 150.0, 313.7856,-134.1924,1004.0625) && GetPlayerVirtualWorld(playerid) == 0) { format(infostring, 256, "* %s bought a SD Pistol.",sendername); ProxDetector(50.0, playerid, infostring,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GivePlayerCash(playerid, - 2000); BizzInfo[2][bTill] += 2000; Update(playerid,pCashx); mysql_format(SQL,string,sizeof(string),"UPDATE `bizz` SET `Till`='%d' WHERE `ID`='2'",BizzInfo[2][bTill]); mysql_tquery(SQL,string,"",""); GivePlayerWeaponEx(playerid, 23, 30); } else if(IsPlayerInRangeOfPoint(playerid, 150.0, 313.7856,-134.1924,1004.0625) && GetPlayerVirtualWorld(playerid) == 1) { format(infostring, 256, "* %s bought a SD Pistol.",sendername); ProxDetector(50.0, playerid, infostring,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GivePlayerCash(playerid, - 2000); BizzInfo[9][bTill] += 2000; Update(playerid,pCashx); mysql_format(SQL,string,sizeof(string),"UPDATE `bizz` SET `Till`='%d' WHERE `ID`='9'",BizzInfo[9][bTill]); mysql_tquery(SQL,string,"",""); GivePlayerWeaponEx(playerid, 23, 30); } else if(IsPlayerInRangeOfPoint(playerid, 150.0, 313.7856,-134.1924,1004.0625) && GetPlayerVirtualWorld(playerid) == 2) { format(infostring, 256, "* %s bought a SD Pistol.",sendername); ProxDetector(50.0, playerid, infostring,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GivePlayerCash(playerid, - 2000); BizzInfo[22][bTill] += 2000; Update(playerid,pCashx); mysql_format(SQL,string,sizeof(string),"UPDATE `bizz` SET `Till`='%d' WHERE `ID`='22'",BizzInfo[22][bTill]); mysql_tquery(SQL,string,"",""); GivePlayerWeaponEx(playerid, 23, 30); } } else if(listitem == 2) { if(IsPlayerInRangeOfPoint(playerid, 150.0, 313.7856,-134.1924,1004.0625) && GetPlayerVirtualWorld(playerid) == 0) { format(infostring, 256, "* %s bought a Desert eagle.",sendername); ProxDetector(50.0, playerid, infostring,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GivePlayerCash(playerid, - 3000); BizzInfo[2][bTill] += 3000; Update(playerid,pCashx); mysql_format(SQL,string,sizeof(string),"UPDATE `bizz` SET `Till`='%d' WHERE `ID`='2'",BizzInfo[2][bTill]); mysql_tquery(SQL,string,"",""); GivePlayerWeaponEx(playerid, 24, 50); } else if(IsPlayerInRangeOfPoint(playerid, 150.0, 313.7856,-134.1924,1004.0625) && GetPlayerVirtualWorld(playerid) == 1) { format(infostring, 256, "* %s bought a Desert eagle.",sendername); ProxDetector(50.0, playerid, infostring,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GivePlayerCash(playerid, - 3000); BizzInfo[9][bTill] += 3000; Update(playerid,pCashx); mysql_format(SQL,string,sizeof(string),"UPDATE `bizz` SET `Till`='%d' WHERE `ID`='9'",BizzInfo[9][bTill]); mysql_tquery(SQL,string,"",""); GivePlayerWeaponEx(playerid, 24, 50); } else if(IsPlayerInRangeOfPoint(playerid, 150.0, 313.7856,-134.1924,1004.0625) && GetPlayerVirtualWorld(playerid) == 2) { format(infostring, 256, "* %s bought a Desert eagle.",sendername); ProxDetector(50.0, playerid, infostring,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GivePlayerCash(playerid, - 3000); BizzInfo[22][bTill] += 3000; Update(playerid,pCashx); mysql_format(SQL,string,sizeof(string),"UPDATE `bizz` SET `Till`='%d' WHERE `ID`='22'",BizzInfo[22][bTill]); mysql_tquery(SQL,string,"",""); GivePlayerWeaponEx(playerid, 24, 50); } } else if(listitem == 3) { if(IsPlayerInRangeOfPoint(playerid, 150.0, 313.7856,-134.1924,1004.0625) && GetPlayerVirtualWorld(playerid) == 0) { format(infostring, 256, "* %s bought a Shotgun.",sendername); ProxDetector(50.0, playerid, infostring,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GivePlayerCash(playerid, - 4200); BizzInfo[2][bTill] += 4200; Update(playerid,pCashx); mysql_format(SQL,string,sizeof(string),"UPDATE `bizz` SET `Till`='%d' WHERE `ID`='2'",BizzInfo[2][bTill]); mysql_tquery(SQL,string,"",""); GivePlayerWeaponEx(playerid, 25, 20); } else if(IsPlayerInRangeOfPoint(playerid, 150.0, 313.7856,-134.1924,1004.0625) && GetPlayerVirtualWorld(playerid) == 1) { format(infostring, 256, "* %s bought a Shotgun.",sendername); ProxDetector(50.0, playerid, infostring,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GivePlayerCash(playerid, - 4200); BizzInfo[9][bTill] += 4200; Update(playerid,pCashx); mysql_format(SQL,string,sizeof(string),"UPDATE `bizz` SET `Till`='%d' WHERE `ID`='9'",BizzInfo[9][bTill]); mysql_tquery(SQL,string,"",""); GivePlayerWeaponEx(playerid, 25, 20); } else if(IsPlayerInRangeOfPoint(playerid, 150.0, 313.7856,-134.1924,1004.0625) && GetPlayerVirtualWorld(playerid) == 2) { format(infostring, 256, "* %s bought a Shotgun.",sendername); ProxDetector(50.0, playerid, infostring,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GivePlayerCash(playerid, - 4200); BizzInfo[22][bTill] += 4200; Update(playerid,pCashx); mysql_format(SQL,string,sizeof(string),"UPDATE `bizz` SET `Till`='%d' WHERE `ID`='22'",BizzInfo[22][bTill]); mysql_tquery(SQL,string,"",""); GivePlayerWeaponEx(playerid, 25, 20); } } else if(listitem == 4) { if(IsPlayerInRangeOfPoint(playerid, 150.0, 313.7856,-134.1924,1004.0625) && GetPlayerVirtualWorld(playerid) == 0) { format(infostring, 256, "* %s bought a MP5.",sendername); ProxDetector(50.0, playerid, infostring,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GivePlayerCash(playerid, - 4600); BizzInfo[2][bTill] += 4600; Update(playerid,pCashx); mysql_format(SQL,string,sizeof(string),"UPDATE `bizz` SET `Till`='%d' WHERE `ID`='2'",BizzInfo[2][bTill]); mysql_tquery(SQL,string,"",""); GivePlayerWeaponEx(playerid, 29, 150); } else if(IsPlayerInRangeOfPoint(playerid, 150.0, 313.7856,-134.1924,1004.0625) && GetPlayerVirtualWorld(playerid) == 1) { format(infostring, 256, "* %s bought a MP5.",sendername); ProxDetector(50.0, playerid, infostring,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GivePlayerCash(playerid, - 4600); BizzInfo[9][bTill] += 4600; Update(playerid,pCashx); mysql_format(SQL,string,sizeof(string),"UPDATE `bizz` SET `Till`='%d' WHERE `ID`='9'",BizzInfo[9][bTill]); mysql_tquery(SQL,string,"",""); GivePlayerWeaponEx(playerid, 29, 150); } else if(IsPlayerInRangeOfPoint(playerid, 150.0, 313.7856,-134.1924,1004.0625) && GetPlayerVirtualWorld(playerid) == 2) { format(infostring, 256, "* %s bought a MP5.",sendername); ProxDetector(50.0, playerid, infostring,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GivePlayerCash(playerid, - 4600); BizzInfo[22][bTill] += 4600; Update(playerid,pCashx); mysql_format(SQL,string,sizeof(string),"UPDATE `bizz` SET `Till`='%d' WHERE `ID`='22'",BizzInfo[22][bTill]); mysql_tquery(SQL,string,"",""); GivePlayerWeaponEx(playerid, 29, 150); } } else if(listitem == 5) { if(IsPlayerInRangeOfPoint(playerid, 150.0, 313.7856,-134.1924,1004.0625) && GetPlayerVirtualWorld(playerid) == 0) { format(infostring, 256, "* %s bought a AK47.",sendername); ProxDetector(50.0, playerid, infostring,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GivePlayerCash(playerid, - 7000); BizzInfo[2][bTill] += 7000; Update(playerid,pCashx); mysql_format(SQL,string,sizeof(string),"UPDATE `bizz` SET `Till`='%d' WHERE `ID`='2'",BizzInfo[2][bTill]); mysql_tquery(SQL,string,"",""); GivePlayerWeaponEx(playerid, 30, 100); } else if(IsPlayerInRangeOfPoint(playerid, 150.0, 313.7856,-134.1924,1004.0625) && GetPlayerVirtualWorld(playerid) == 1) { format(infostring, 256, "* %s bought a AK47.",sendername); ProxDetector(50.0, playerid, infostring,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GivePlayerCash(playerid, - 7000); BizzInfo[9][bTill] += 7000; Update(playerid,pCashx); mysql_format(SQL,string,sizeof(string),"UPDATE `bizz` SET `Till`='%d' WHERE `ID`='9'",BizzInfo[9][bTill]); mysql_tquery(SQL,string,"",""); GivePlayerWeaponEx(playerid, 30, 100); } else if(IsPlayerInRangeOfPoint(playerid, 150.0, 313.7856,-134.1924,1004.0625) && GetPlayerVirtualWorld(playerid) == 2) { format(infostring, 256, "* %s bought a AK47.",sendername); ProxDetector(50.0, playerid, infostring,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GivePlayerCash(playerid, - 7000); BizzInfo[22][bTill] += 7000; Update(playerid,pCashx); mysql_format(SQL,string,sizeof(string),"UPDATE `bizz` SET `Till`='%d' WHERE `ID`='22'",BizzInfo[22][bTill]); mysql_tquery(SQL,string,"",""); GivePlayerWeaponEx(playerid, 30, 100); } } else if(listitem == 6) { if(IsPlayerInRangeOfPoint(playerid, 150.0, 313.7856,-134.1924,1004.0625) && GetPlayerVirtualWorld(playerid) == 0) { format(infostring, 256, "* %s bought a M4.",sendername); ProxDetector(50.0, playerid, infostring,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GivePlayerCash(playerid, - 7000); BizzInfo[2][bTill] += 7000; Update(playerid,pCashx); mysql_format(SQL,string,sizeof(string),"UPDATE `bizz` SET `Till`='%d' WHERE `ID`='2'",BizzInfo[2][bTill]); mysql_tquery(SQL,string,"",""); GivePlayerWeaponEx(playerid, 31, 100); } else if(IsPlayerInRangeOfPoint(playerid, 150.0, 313.7856,-134.1924,1004.0625) && GetPlayerVirtualWorld(playerid) == 1) { format(infostring, 256, "* %s bought a M4.",sendername); ProxDetector(50.0, playerid, infostring,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GivePlayerCash(playerid, - 7000); BizzInfo[9][bTill] += 7000; Update(playerid,pCashx); mysql_format(SQL,string,sizeof(string),"UPDATE `bizz` SET `Till`='%d' WHERE `ID`='9'",BizzInfo[9][bTill]); mysql_tquery(SQL,string,"",""); GivePlayerWeaponEx(playerid, 31, 100); } else if(IsPlayerInRangeOfPoint(playerid, 150.0, 313.7856,-134.1924,1004.0625) && GetPlayerVirtualWorld(playerid) == 2) { format(infostring, 256, "* %s bought a M4.",sendername); ProxDetector(50.0, playerid, infostring,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GivePlayerCash(playerid, - 7000); BizzInfo[22][bTill] += 7000; Update(playerid,pCashx); mysql_format(SQL,string,sizeof(string),"UPDATE `bizz` SET `Till`='%d' WHERE `ID`='22'",BizzInfo[22][bTill]); mysql_tquery(SQL,string,"",""); GivePlayerWeaponEx(playerid, 31, 100); } } } } Edited November 5, 2015 by ASU57 ..::Contact::..Y!M: [email protected]Skype: asu_snk57
hustlin'99 Posted November 7, 2015 Author Posted November 7, 2015 UP ! ..::Contact::..Y!M: [email protected]Skype: asu_snk57
hustlin'99 Posted November 8, 2015 Author Posted November 8, 2015 UP ! ..::Contact::..Y!M: [email protected]Skype: asu_snk57
hustlin'99 Posted November 10, 2015 Author Posted November 10, 2015 UP ! ..::Contact::..Y!M: [email protected]Skype: asu_snk57
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now