SHARE
TWEET

Jizzy Online Shop

Raminkh78 Sep 14th, 2015 (edited) 251 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.         †††††††††††††††† [Jizzy Shop System] ††††††††††††††††
  3.         Good Luck With It !
  4.         ***********************************
  5.         ***    Created By [R]amin_       **
  6.         ***    khramin78@gmail.com       **
  7.         ***        Mobin.dfer@yahoo.com      **
  8.         ***********************************
  9.          I Hope This Onlnine shop FilterScript Will be usefull for you
  10.         †††††††††††††††† [Jizzy Shop System] ††††††††††††††††
  11.         credits :
  12.         [R]amin_ for Scripting
  13.         Zeex For Zcmd
  14.         Y_Less Sscanf
  15. */
  16.  
  17. #include <a_samp>
  18. #include <sscanf2>
  19. #include <Zcmd>
  20.  
  21. #define FILTERSCRIPT
  22.  
  23. #define COLOR_RED 0xAA3333AA
  24. #define COLOR_LIGHTRED 0xFF6347AA
  25. #define COLOR_LIGHTBLUE 0x33CCFFAA
  26. #define COLOR_YELLOW 0xFFFF00AA
  27. #define COLOR_WHITE 0xFFFFFFAA
  28.  
  29. #define COL_WHITE "{FFFFFF}"
  30. #define COL_RED "{F81414}"
  31. #define COL_YELLOW "{F3FF02}"
  32. #define COL_LRED "{FFA1A1}"
  33.  
  34. #define Dialog_Shop 1100
  35. #define Dialog_Weapons 1101
  36. #define Dialog_Vehicles 1102
  37. #define Dialog_Foods 1103
  38. #define Dialog_Accessories 1106
  39. #define Dialog_Hats 1107
  40. #define Dialog_Glasses 1108
  41. #define Dialog_Masks 1109
  42.  
  43. stock ApplyPlayerAnimation(playerid, animlib[], animname[], Float:fDelta, loop, lockx, locky, freeze, time, forcesync = 0)
  44. {
  45.     ApplyAnimation(playerid, animlib, "null", fDelta, loop, lockx, locky, freeze, time, forcesync); // Pre-load animation library
  46.     return ApplyAnimation(playerid, animlib, animname, fDelta, loop, lockx, locky, freeze, time, forcesync);
  47. }
  48. stock PreloadAnimLib(playerid, animlib[])
  49. {
  50.         ApplyAnimation(playerid, animlib, "null", 0.0, 0, 0, 0, 0, 0);
  51.         return 1;
  52. }
  53.  
  54. enum PAttachedObjectPos
  55. {
  56.         Po_Mod,
  57.         Po_Bond,
  58.         Float:Po_X,
  59.         Float:Po_Y,
  60.         Float:Po_Z,
  61.         Float:Po_RX,
  62.         Float:Po_RY,
  63.         Float:Po_RZ,
  64.         Float:Po_SX,
  65.         Float:Po_SY,
  66.         Float:Po_SZ
  67. }
  68.  
  69. new PAttached[MAX_PLAYERS][MAX_PLAYER_ATTACHED_OBJECTS][PAttachedObjectPos];
  70. new PCreatedVehicleid[MAX_PLAYERS] = 999;
  71. new bool:PBoughtVehicle[MAX_PLAYERS];
  72. new bool:PGotHat[MAX_PLAYERS];
  73. new bool:PGotGlass[MAX_PLAYERS];
  74. new bool:PGotMask[MAX_PLAYERS];
  75.  
  76. new LastVehicleid = 17; // Put id of your last car
  77.  
  78. #if defined FILTERSCRIPT
  79.  
  80. public OnFilterScriptInit()
  81. {
  82.         print("\n--------------------------------------");
  83.         print(" This FilterScript Has Been Made By [R]amin_");
  84.         print(" Conntect me on :");
  85.         print(" khramin78@gmail.com");
  86.         print(" mobin.dfer@yahoo.com");
  87.         print("--------------------------------------\n");
  88.        
  89.         return 1;
  90. }
  91.  
  92. public OnFilterScriptExit()
  93. {
  94.         return 1;
  95. }
  96.  
  97. #endif
  98.  
  99. public OnPlayerRequestClass(playerid, classid)
  100. {
  101.         SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  102.         SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  103.         SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  104.         return 1;
  105. }
  106.  
  107. public OnPlayerConnect(playerid)
  108. {
  109.         PBoughtVehicle[playerid] = false;
  110.         PCreatedVehicleid[playerid] = 999;
  111.         PGotHat[playerid] = false;
  112.         PGotGlass[playerid] = false;
  113.         PGotMask[playerid] = false;
  114.        
  115.         PreloadAnimLib(playerid,"BOMBER");
  116.         PreloadAnimLib(playerid,"FOOD");
  117.         PreloadAnimLib(playerid,"VENDING" );
  118.         PreloadAnimLib(playerid,"PED" );
  119.         return 1;
  120. }
  121.  
  122. public OnPlayerDisconnect(playerid, reason)
  123. {
  124.         DestroyVehicle(PCreatedVehicleid[playerid]);
  125.         LastVehicleid--;
  126.         return 1;
  127. }
  128.  
  129. public OnPlayerSpawn(playerid)
  130. {
  131.         return 1;
  132. }
  133.  
  134. public OnPlayerDeath(playerid, killerid, reason)
  135. {
  136.         return 1;
  137. }
  138.  
  139. public OnVehicleSpawn(vehicleid)
  140. {
  141.         return 1;
  142. }
  143.  
  144. public OnVehicleDeath(vehicleid, killerid)
  145. {
  146.         return 1;
  147. }
  148.  
  149. public OnPlayerText(playerid, text[])
  150. {
  151.         return 1;
  152. }
  153.  
  154. public OnPlayerCommandText(playerid, cmdtext[])
  155. {
  156.         return 1;
  157. }
  158.  
  159. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  160. {
  161.         return 1;
  162. }
  163.  
  164. public OnPlayerExitVehicle(playerid, vehicleid)
  165. {
  166.         return 1;
  167. }
  168.  
  169. public OnPlayerStateChange(playerid, newstate, oldstate)
  170. {
  171.         return 1;
  172. }
  173.  
  174. public OnPlayerEnterCheckpoint(playerid)
  175. {
  176.         return 1;
  177. }
  178.  
  179. public OnPlayerLeaveCheckpoint(playerid)
  180. {
  181.         return 1;
  182. }
  183.  
  184. public OnPlayerEnterRaceCheckpoint(playerid)
  185. {
  186.         return 1;
  187. }
  188.  
  189. public OnPlayerLeaveRaceCheckpoint(playerid)
  190. {
  191.         return 1;
  192. }
  193.  
  194. public OnRconCommand(cmd[])
  195. {
  196.         return 1;
  197. }
  198.  
  199. public OnPlayerRequestSpawn(playerid)
  200. {
  201.         return 1;
  202. }
  203.  
  204. public OnObjectMoved(objectid)
  205. {
  206.         return 1;
  207. }
  208.  
  209. public OnPlayerObjectMoved(playerid, objectid)
  210. {
  211.         return 1;
  212. }
  213.  
  214. public OnPlayerPickUpPickup(playerid, pickupid)
  215. {
  216.         return 1;
  217. }
  218.  
  219. public OnVehicleMod(playerid, vehicleid, componentid)
  220. {
  221.         return 1;
  222. }
  223.  
  224. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  225. {
  226.         return 1;
  227. }
  228.  
  229. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  230. {
  231.         return 1;
  232. }
  233.  
  234. public OnPlayerSelectedMenuRow(playerid, row)
  235. {
  236.         return 1;
  237. }
  238.  
  239. public OnPlayerExitedMenu(playerid)
  240. {
  241.         return 1;
  242. }
  243.  
  244. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  245. {
  246.         return 1;
  247. }
  248.  
  249. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  250. {
  251.         return 1;
  252. }
  253.  
  254. public OnRconLoginAttempt(ip[], password[], success)
  255. {
  256.         return 1;
  257. }
  258.  
  259. public OnPlayerUpdate(playerid)
  260. {
  261.         return 1;
  262. }
  263.  
  264. public OnPlayerStreamIn(playerid, forplayerid)
  265. {
  266.         return 1;
  267. }
  268.  
  269. public OnPlayerStreamOut(playerid, forplayerid)
  270. {
  271.         return 1;
  272. }
  273.  
  274. public OnVehicleStreamIn(vehicleid, forplayerid)
  275. {
  276.         return 1;
  277. }
  278.  
  279. public OnVehicleStreamOut(vehicleid, forplayerid)
  280. {
  281.         return 1;
  282. }
  283.  
  284. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  285. {
  286.         if(dialogid == Dialog_Shop)
  287.         {
  288.             if(!response) return SendClientMessage(playerid,COLOR_YELLOW,"Please Visit Our Online Shop Again");
  289.                 switch(listitem)
  290.                 {
  291.                         case 0:
  292.                         {
  293.                                 ShowPlayerDialog(playerid,Dialog_Weapons,5,"Weapon Shop :","Weapon\tPrice\tAmmo\nDeagle\t$1000\t90\nPump Shotgun\t$1800\t150\nSawnoff\t$2500\t85\nM4\t$3500\t500\nAK-47\t$3000\t500\nMp5\t$2800\t500\nTec-9\t$2400\t500\nSnipe\t$4800\t40\nArmor\t$5000\t1","Buy","Back");
  294.                                 PlayerPlaySound(playerid,5201,0,0,0);
  295.                         } // weapons
  296.                         case 1:
  297.                         {
  298.                                 ShowPlayerDialog(playerid,Dialog_Vehicles,5,"Vehicle Shop:","Name\tPrice\nNitro\t2300\nBuggalo\t$19000\nInfernus\t$28000\nCheetah\t$21000\nBanshee\t$20000\nTurismo\t$26000\nMaverik\t$40000\nHorting Racer\t$38000\nNRG-500\t$15000\nKart\t$13000","Buy","Back");
  299.                                 PlayerPlaySound(playerid,5201,0,0,0);
  300.                         } //vehicles
  301.                         case 2:
  302.                         {
  303.                             ShowPlayerDialog(playerid,Dialog_Foods,5,"Food Menu :","Name:\tPrice:\tHealling\nSalad\t100\t10\nSoda\t150\t15\nPizza\t400\t20\nPasta\t800\t30\nWine\t1800\t60\nWeed\t2200\tFull Health","Buy","Back");
  304.                 PlayerPlaySound(playerid,5201,0,0,0);
  305.                         } //foods
  306.                         case 3:
  307.                         {
  308.                             ShowPlayerDialog(playerid,Dialog_Accessories,2,"Accessories List :","Hat's\nGlass'es\nMask's","Select","Back");
  309.                 PlayerPlaySound(playerid,5201,0,0,0);
  310.                         } //Accessories
  311.                 }
  312.         }
  313.         if(dialogid == Dialog_Weapons)
  314.         {
  315.                 if(!response) return ShowPlayerDialog(playerid,Dialog_Shop,DIALOG_STYLE_LIST,"Jizzy Online Shop:","Weapon's\nVehicle's\nFoods\nAccessories","Select","Quit");
  316.                 switch(listitem)
  317.                 {
  318.                         case 0:
  319.                         {
  320.                                 if(GetPlayerMoney(playerid) < 1000) return SendClientMessage(playerid,COLOR_RED,"You Dont Have That Much Money");
  321.                                 GivePlayerMoney(playerid,-1000);
  322.                                 GivePlayerWeapon(playerid,24,90);
  323.                                 PlayerPlaySound(playerid,1052,0,0,0);
  324.                                 SendClientMessage(playerid,COLOR_WHITE,"You Have Bought A "COL_RED"Deagle "COL_WHITE"For "COL_RED"$1000");
  325.                         }
  326.                         case 1:
  327.                         {
  328.                 if(GetPlayerMoney(playerid) < 1800) return SendClientMessage(playerid,COLOR_RED,"You Dont Have That Much Money");
  329.                 GivePlayerMoney(playerid,-1800);
  330.                                 GivePlayerWeapon(playerid,25,150);
  331.                                 PlayerPlaySound(playerid,1052,0,0,0);
  332.                                 SendClientMessage(playerid,COLOR_WHITE,"You Have Bought A "COL_RED"Shotgun "COL_WHITE"For "COL_RED"$1800");
  333.                         }
  334.                         case 2:
  335.                         {
  336.                 if(GetPlayerMoney(playerid) < 2500) return SendClientMessage(playerid,COLOR_RED,"You Dont Have That Much Money");
  337.                 GivePlayerMoney(playerid,-2500);
  338.                                 GivePlayerWeapon(playerid,26,85);
  339.                                 PlayerPlaySound(playerid,1052,0,0,0);
  340.                                 SendClientMessage(playerid,COLOR_WHITE,"You Have Bought A "COL_RED"SawnOff Shotgun "COL_WHITE"For "COL_RED"$2500");
  341.                         }
  342.                         case 3:
  343.                         {
  344.                 if(GetPlayerMoney(playerid) < 3500) return SendClientMessage(playerid,COLOR_RED,"You Dont Have That Much Money");
  345.                 GivePlayerMoney(playerid,-3500);
  346.                                 GivePlayerWeapon(playerid,31,500);
  347.                                 PlayerPlaySound(playerid,1052,0,0,0);
  348.                                 SendClientMessage(playerid,COLOR_WHITE,"You Have Bought A "COL_RED"M4 "COL_WHITE"For "COL_RED"$3500");
  349.                         }
  350.                         case 4:
  351.                         {
  352.                 if(GetPlayerMoney(playerid) < 3000) return SendClientMessage(playerid,COLOR_RED,"You Dont Have That Much Money");
  353.                 GivePlayerMoney(playerid,-3000);
  354.                                 GivePlayerWeapon(playerid,30,500);
  355.                                 PlayerPlaySound(playerid,1052,0,0,0);
  356.                                 SendClientMessage(playerid,COLOR_WHITE,"You Have Bought A "COL_RED"AK-47 "COL_WHITE"For "COL_RED"$3000");
  357.                         }
  358.                         case 5:
  359.                         {
  360.                 if(GetPlayerMoney(playerid) < 2800) return SendClientMessage(playerid,COLOR_RED,"You Dont Have That Much Money");
  361.                 GivePlayerMoney(playerid,-2800);
  362.                                 GivePlayerWeapon(playerid,29,500);
  363.                                 PlayerPlaySound(playerid,1052,0,0,0);
  364.                                 SendClientMessage(playerid,COLOR_WHITE,"You Have Bought A "COL_RED"Mp5 "COL_WHITE"For "COL_RED"$2800");
  365.                         }
  366.                         case 6:
  367.                         {
  368.                 if(GetPlayerMoney(playerid) < 2400) return SendClientMessage(playerid,COLOR_RED,"You Dont Have That Much Money");
  369.                 GivePlayerMoney(playerid,-2400);
  370.                                 GivePlayerWeapon(playerid,32,500);
  371.                                 PlayerPlaySound(playerid,1052,0,0,0);
  372.                                 SendClientMessage(playerid,COLOR_WHITE,"You Have Bought A "COL_RED"Tec-9 "COL_WHITE"For "COL_RED"$2400");
  373.                         }
  374.                         case 7:
  375.                         {
  376.                 if(GetPlayerMoney(playerid) < 4800) return SendClientMessage(playerid,COLOR_RED,"You Dont Have That Much Money");
  377.                 GivePlayerMoney(playerid,-4800);
  378.                                 GivePlayerWeapon(playerid,34,40);
  379.                                 PlayerPlaySound(playerid,1052,0,0,0);
  380.                                 SendClientMessage(playerid,COLOR_WHITE,"You Have Bought A "COL_RED"Snipe "COL_WHITE"For "COL_RED"$4800");
  381.                         }
  382.                         case 8:
  383.                         {
  384.                 if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid,COLOR_RED,"You Dont Have That Much Money");
  385.                 SetPlayerArmour(playerid,100.0);
  386.                 GivePlayerMoney(playerid,-5000);
  387.                 PlayerPlaySound(playerid,1052,0,0,0);
  388.                 SendClientMessage(playerid,COLOR_LIGHTRED,"Please Try To Wear This Also Every Where To Be Safe");
  389.                         }
  390.                 }
  391.         }
  392.         if(dialogid == Dialog_Vehicles)
  393.         {
  394.         if(!response) return ShowPlayerDialog(playerid,Dialog_Shop,DIALOG_STYLE_LIST,"Jizzy Online Shop:","Weapon's\nVehicle's\nFoods\nAccessories","Select","Quit");
  395.         switch(listitem)
  396.         {
  397.                         case 0:
  398.                         {
  399.                             new pvehid;
  400.                             pvehid = GetPlayerVehicleID(playerid);
  401.                                 if(GetPlayerMoney(playerid) < 2300) return SendClientMessage(playerid,COLOR_RED,"You Dont Have That Much Money");
  402.                                 GivePlayerMoney(playerid,-2300);
  403.                                 AddVehicleComponent(pvehid,1010);
  404.                                 PlayerPlaySound(playerid,39076,0,0,0);
  405.                                 SendClientMessage(playerid,COLOR_YELLOW,"Try To Not Go So Fast if You Can!");
  406.                         }
  407.                         case 1:
  408.                         {
  409.                                 if(GetPlayerMoney(playerid) < 19000) return SendClientMessage(playerid,COLOR_RED,"You Dont Have That Much Money");
  410.                                 if(PBoughtVehicle[playerid] == true) return SendClientMessage(playerid,COLOR_RED,"You Can Not Have 2 Vehicle's Use "COL_YELLOW"<< /Destroyveh >>");
  411.                                
  412.                                 new Float:X,Float:Y,Float:Z,Float:A;
  413.                                
  414.                                 GetPlayerPos(playerid,X,Y,Z);
  415.                                 GetPlayerFacingAngle(playerid,A);
  416.                                 GivePlayerMoney(playerid,-19000);
  417.                                 CreateVehicle(402,X,Y,Z,A,-1,-1,60000);
  418.                                 PBoughtVehicle[playerid] = true;
  419.                                 PCreatedVehicleid[playerid] = LastVehicleid;
  420.                                 LastVehicleid++;
  421.                                 PlayerPlaySound(playerid,39076,0,0,0);
  422.                                 SendClientMessage(playerid,COLOR_WHITE,"You Have Bought A "COL_RED"Buffalo "COL_WHITE"For "COL_RED"$19000");
  423.                                
  424.                         }
  425.                         case 2:
  426.                         {
  427.                                 if(GetPlayerMoney(playerid) < 28000) return SendClientMessage(playerid,COLOR_RED,"You Dont Have That Much Money");
  428.                                 if(PBoughtVehicle[playerid] == true) return SendClientMessage(playerid,COLOR_RED,"You Can Not Have 2 Vehicle's Use "COL_YELLOW"<< /Destroyveh >>");
  429.                                 new Float:X,Float:Y,Float:Z,Float:A;
  430.  
  431.                                 GetPlayerPos(playerid,X,Y,Z);
  432.                                 GetPlayerFacingAngle(playerid,A);
  433.                                 GivePlayerMoney(playerid,-28000);
  434.                                 CreateVehicle(411,X,Y,Z,A,-1,-1,60000);
  435.                                 PBoughtVehicle[playerid] = true;
  436.                                 PCreatedVehicleid[playerid] = LastVehicleid;
  437.                                 LastVehicleid++;
  438.                                 PlayerPlaySound(playerid,39076,0,0,0);
  439.                                 SendClientMessage(playerid,COLOR_WHITE,"You Have Bought An "COL_RED"Infernus "COL_WHITE"For "COL_RED"$28000");
  440.                         }
  441.                         case 3:
  442.                         {
  443.                                 if(GetPlayerMoney(playerid) < 21000) return SendClientMessage(playerid,COLOR_RED,"You Dont Have That Much Money");
  444.                                 if(PBoughtVehicle[playerid] == true) return SendClientMessage(playerid,COLOR_RED,"You Can Not Have 2 Vehicle's Use "COL_YELLOW"<< /Destroyveh >>");
  445.                                 new Float:X,Float:Y,Float:Z,Float:A;
  446.  
  447.                                 GetPlayerPos(playerid,X,Y,Z);
  448.                                 GetPlayerFacingAngle(playerid,A);
  449.                                 GivePlayerMoney(playerid,-21000);
  450.                                 CreateVehicle(415,X,Y,Z,A,-1,-1,60000);
  451.                                 PBoughtVehicle[playerid] = true;
  452.                                 PCreatedVehicleid[playerid] = LastVehicleid;
  453.                                 LastVehicleid++;
  454.                                 PlayerPlaySound(playerid,39076,0,0,0);
  455.                                 SendClientMessage(playerid,COLOR_WHITE,"You Have Bought A "COL_RED"Cheetah "COL_WHITE"For "COL_RED"$21000");
  456.                         }
  457.                         case 4:
  458.                         {
  459.                                 if(GetPlayerMoney(playerid) < 20000) return SendClientMessage(playerid,COLOR_RED,"You Dont Have That Much Money");
  460.                                 if(PBoughtVehicle[playerid] == true) return SendClientMessage(playerid,COLOR_RED,"You Can Not Have 2 Vehicle's Use "COL_YELLOW"<< /Destroyveh >>");
  461.                                 new Float:X,Float:Y,Float:Z,Float:A;
  462.  
  463.                                 GetPlayerPos(playerid,X,Y,Z);
  464.                                 GetPlayerFacingAngle(playerid,A);
  465.                                 GivePlayerMoney(playerid,-20000);
  466.                                 CreateVehicle(429,X,Y,Z,A,-1,-1,60000);
  467.                                 PBoughtVehicle[playerid] = true;
  468.                                 PCreatedVehicleid[playerid] = LastVehicleid;
  469.                                 LastVehicleid++;
  470.                                 PlayerPlaySound(playerid,39076,0,0,0);
  471.                                 SendClientMessage(playerid,COLOR_WHITE,"You Have Bought A "COL_RED"Banshee "COL_WHITE"For "COL_RED"$20000");
  472.                         }
  473.                         case 5:
  474.                         {
  475.                                 if(GetPlayerMoney(playerid) < 26000) return SendClientMessage(playerid,COLOR_RED,"You Dont Have That Much Money");
  476.                                 if(PBoughtVehicle[playerid] == true) return SendClientMessage(playerid,COLOR_RED,"You Can Not Have 2 Vehicle's Use "COL_YELLOW"<< /Destroyveh >>");
  477.                                 new Float:X,Float:Y,Float:Z,Float:A;
  478.  
  479.                                 GetPlayerPos(playerid,X,Y,Z);
  480.                                 GetPlayerFacingAngle(playerid,A);
  481.                                 GivePlayerMoney(playerid,-26000);
  482.                                 CreateVehicle(451,X,Y,Z,A,-1,-1,60000);
  483.                                 PBoughtVehicle[playerid] = true;
  484.                                 PCreatedVehicleid[playerid] = LastVehicleid;
  485.                                 LastVehicleid++;
  486.                                 PlayerPlaySound(playerid,39076,0,0,0);
  487.                                 SendClientMessage(playerid,COLOR_WHITE,"You Have Bought A "COL_RED"Banshee "COL_WHITE"For "COL_RED"$26000");
  488.                         }
  489.                         case 6:
  490.                         {
  491.                                 if(GetPlayerMoney(playerid) < 40000) return SendClientMessage(playerid,COLOR_RED,"You Dont Have That Much Money");
  492.                                 if(PBoughtVehicle[playerid] == true) return SendClientMessage(playerid,COLOR_RED,"You Can Not Have 2 Vehicle's Use "COL_YELLOW"<< /Destroyveh >>");
  493.                                 new Float:X,Float:Y,Float:Z,Float:A;
  494.  
  495.                                 GetPlayerPos(playerid,X,Y,Z);
  496.                                 GetPlayerFacingAngle(playerid,A);
  497.                                 GivePlayerMoney(playerid,-40000);
  498.                                 CreateVehicle(487,X,Y,Z,A,-1,-1,60000);
  499.                                 PBoughtVehicle[playerid] = true;
  500.                                 PCreatedVehicleid[playerid] = LastVehicleid;
  501.                                 LastVehicleid++;
  502.                                 PlayerPlaySound(playerid,39076,0,0,0);
  503.                                 SendClientMessage(playerid,COLOR_WHITE,"You Have Bought A "COL_RED"Maverick "COL_WHITE"For "COL_RED"$40000");
  504.                         }
  505.                         case 7:
  506.                         {
  507.                                 if(GetPlayerMoney(playerid) < 38000) return SendClientMessage(playerid,COLOR_RED,"You Dont Have That Much Money");
  508.                                 if(PBoughtVehicle[playerid] == true) return SendClientMessage(playerid,COLOR_RED,"You Can Not Have 2 Vehicle's Use "COL_YELLOW"<< /Destroyveh >>");
  509.                                 new Float:X,Float:Y,Float:Z,Float:A;
  510.  
  511.                                 GetPlayerPos(playerid,X,Y,Z);
  512.                                 GetPlayerFacingAngle(playerid,A);
  513.                                 GivePlayerMoney(playerid,-38000);
  514.                                 CreateVehicle(494,X,Y,Z,A,-1,-1,60000);
  515.                                 PBoughtVehicle[playerid] = true;
  516.                                 PCreatedVehicleid[playerid] = LastVehicleid;
  517.                                 LastVehicleid++;
  518.                                 PlayerPlaySound(playerid,39076,0,0,0);
  519.                                 SendClientMessage(playerid,COLOR_WHITE,"You Have Bought A "COL_RED"Horting Racer "COL_WHITE"For "COL_RED"$38000");
  520.                         }
  521.                         case 8:
  522.                         {
  523.                                 if(GetPlayerMoney(playerid) < 15000) return SendClientMessage(playerid,COLOR_RED,"You Dont Have That Much Money");
  524.                                 if(PBoughtVehicle[playerid] == true) return SendClientMessage(playerid,COLOR_RED,"You Can Not Have 2 Vehicle's Use "COL_YELLOW"<< /Destroyveh >>");
  525.                                 new Float:X,Float:Y,Float:Z,Float:A;
  526.  
  527.                                 GetPlayerPos(playerid,X,Y,Z);
  528.                                 GetPlayerFacingAngle(playerid,A);
  529.                                 GivePlayerMoney(playerid,-15000);
  530.                                 CreateVehicle(522,X,Y,Z,A,-1,-1,60000);
  531.                                 PBoughtVehicle[playerid] = true;
  532.                                 PCreatedVehicleid[playerid] = LastVehicleid;
  533.                                 LastVehicleid++;
  534.                                 PlayerPlaySound(playerid,39076,0,0,0);
  535.                                 SendClientMessage(playerid,COLOR_WHITE,"You Have Bought A "COL_RED"NRG-500 "COL_WHITE"For "COL_RED"$15000");
  536.                         }
  537.                         case 9:
  538.                         {
  539.                                 if(GetPlayerMoney(playerid) < 13000) return SendClientMessage(playerid,COLOR_RED,"You Dont Have That Much Money");
  540.                                 if(PBoughtVehicle[playerid] == true) return SendClientMessage(playerid,COLOR_RED,"You Can Not Have 2 Vehicle's Use "COL_YELLOW"<< /Destroyveh >>");
  541.                                 new Float:X,Float:Y,Float:Z,Float:A;
  542.  
  543.                                 GetPlayerPos(playerid,X,Y,Z);
  544.                                 GetPlayerFacingAngle(playerid,A);
  545.                                 GivePlayerMoney(playerid,-13000);
  546.                                 CreateVehicle(571,X,Y,Z,A,-1,-1,60000);
  547.                                 PBoughtVehicle[playerid] = true;
  548.                                 PCreatedVehicleid[playerid] = LastVehicleid;
  549.                                 LastVehicleid++;
  550.                                 PlayerPlaySound(playerid,39076,0,0,0);
  551.                                 SendClientMessage(playerid,COLOR_WHITE,"You Have Bought A "COL_RED"Kart "COL_WHITE"For "COL_RED"$13000");
  552.                         }
  553.                 }
  554.         }
  555.         if(dialogid == Dialog_Foods)
  556.         {
  557.         if(!response) return ShowPlayerDialog(playerid,Dialog_Shop,DIALOG_STYLE_LIST,"Jizzy Online Shop:","Weapon's\nVehicle's\nFoods\nAccessories","Select","Quit");
  558.         switch(listitem)
  559.         {
  560.                         case 0:
  561.                         {
  562.                                 new Float:HP;
  563.                                 if(GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid,COLOR_RED,"You Dont Have Enough Money!");
  564.                                 GivePlayerMoney(playerid,-100);
  565.                                 GetPlayerHealth(playerid,HP);
  566.                                 SetPlayerHealth(playerid,HP+10);
  567.                                 PlayerPlaySound(playerid,1150,0,0,0);
  568.                                 ApplyAnimation(playerid,"VENDING","VEND_Eat_P",4.1,0,0,0,0,5000,1);
  569.                                 SendClientMessage(playerid,COLOR_LIGHTRED,"Please Help Your Self!");
  570.                         }
  571.                         case 1:
  572.                         {
  573.                                 new Float:HP;
  574.                                 if(GetPlayerMoney(playerid) < 150) return SendClientMessage(playerid,COLOR_RED,"You Dont Have Enough Money!");
  575.                                 GivePlayerMoney(playerid,-150);
  576.                                 GetPlayerHealth(playerid,HP);
  577.                                 SetPlayerHealth(playerid,HP+15);
  578.                                 PlayerPlaySound(playerid,1150,0,0,0);
  579.                                 ApplyAnimation(playerid,"VENDING","VEND_Drink_P",4.1,0,0,0,0,5000,1);
  580.                                 SendClientMessage(playerid,COLOR_LIGHTRED,"Please Help Your Self!");
  581.                         }
  582.                         case 2:
  583.                         {
  584.                                 new Float:HP;
  585.                                 if(GetPlayerMoney(playerid) < 400) return SendClientMessage(playerid,COLOR_RED,"You Dont Have Enough Money!");
  586.                                 GivePlayerMoney(playerid,-400);
  587.                                 GetPlayerHealth(playerid,HP);
  588.                                 SetPlayerHealth(playerid,HP+20);
  589.                                 PlayerPlaySound(playerid,1150,0,0,0);
  590.                                 ApplyAnimation(playerid,"VENDING","VEND_Eat_P",4.1,0,0,0,0,5000,1);
  591.                                 SendClientMessage(playerid,COLOR_LIGHTRED,"Please Help Your Self!");
  592.                         }
  593.                         case 3:
  594.                         {
  595.                                 new Float:HP;
  596.                                 if(GetPlayerMoney(playerid) < 800) return SendClientMessage(playerid,COLOR_RED,"You Dont Have Enough Money!");
  597.                                 GivePlayerMoney(playerid,-800);
  598.                                 GetPlayerHealth(playerid,HP);
  599.                                 SetPlayerHealth(playerid,HP+30);
  600.                                 PlayerPlaySound(playerid,1150,0,0,0);
  601.                                 ApplyAnimation(playerid,"VENDING","VEND_Eat_P",4.1,0,0,0,0,5000,1);
  602.                                 SendClientMessage(playerid,COLOR_LIGHTRED,"Please Help Your Self!");
  603.                         }
  604.                         case 4:
  605.                         {
  606.                                 new Float:HP;
  607.                                 if(GetPlayerMoney(playerid) < 1800) return SendClientMessage(playerid,COLOR_RED,"You Dont Have Enough Money!");
  608.                                 GivePlayerMoney(playerid,-1800);
  609.                                 GetPlayerHealth(playerid,HP);
  610.                                 SetPlayerHealth(playerid,HP+60);
  611.                                 PlayerPlaySound(playerid,1150,0,0,0);
  612.                                 ApplyAnimation(playerid,"VENDING","VEND_Drink_P",4.1,0,0,0,0,5000,1);
  613.                                 SendClientMessage(playerid,COLOR_LIGHTRED,"Please Help Your Self!");
  614.                         }
  615.                         case 5:
  616.                         {
  617.                                 if(GetPlayerMoney(playerid) < 2200) return SendClientMessage(playerid,COLOR_RED,"You Dont Have Enough Money!");
  618.                                 SetPlayerHealth(playerid,100.0);
  619.                                 ApplyAnimation(playerid,"BOMBER","BOM_Plant",4.1,0,0,0,0,5000,1);
  620.                                 SetPlayerDrunkLevel(playerid,1);
  621.                         }
  622.                 }
  623.         }
  624.         if(dialogid == Dialog_Accessories)
  625.         {
  626.         if(!response) return ShowPlayerDialog(playerid,Dialog_Shop,DIALOG_STYLE_LIST,"Jizzy Online Shop:","Weapon's\nVehicle's\nFoods\nAccessories","Select","Quit");
  627.         switch(listitem)
  628.         {
  629.                         case 0:
  630.                         {
  631.                                 ShowPlayerDialog(playerid,Dialog_Hats,5,"Hats List :","Hat Mode\tPrice\n\
  632.                                 Red Helmet\t$1200\n\
  633.                                 Blue Helpmet\t$1200\n\
  634.                                 Army Cap\t$2200\n\
  635.                                 Red Cap\t$2000\n\
  636.                                 Blue Cap\t$2000\n\
  637.                                 Black Hat\t$1200\n\
  638.                                 Red Hat\t$1200\n\
  639.                                 Black Cop Cap\t$4800\n\
  640.                                 Red Cop Cap\t$4800\n\
  641.                                 Tiger Skin Hat\t$6000","Buy","Back");
  642.                                 PlayerPlaySound(playerid,5201,0,0,0);
  643.                         }
  644.                         case 1:
  645.                         {
  646.                 ShowPlayerDialog(playerid,Dialog_Glasses,5,"Glasses List :","Glass Mode\tPrice\n\
  647.                                 Normal Red Glass\t$1000\n\
  648.                                 Normal Yellow Glass\t$1000\n\
  649.                                 Nice Black Glass\t$2000\n\
  650.                                 Nice Red Glass\t$2000\n\
  651.                                 Cop Red Glass\t$3800\n\
  652.                                 Cop Blue Glass\t$3800","Buy","Back");
  653.                 PlayerPlaySound(playerid,5201,0,0,0);
  654.                         }
  655.                         case 2:
  656.                         {
  657.                 ShowPlayerDialog(playerid,Dialog_Masks,5,"Masks List :","Mask Mode\tPrice\n\
  658.                                 Tiger Mask\t$6000\n\
  659.                                 Skull Mask\t$2000\n\
  660.                                 Black Gang Mask\t$1200\n\
  661.                                 Green Gang Mask\t$1200\n\
  662.                                 Army Mask\t$3200\n\
  663.                                 Blue Mask\t$2800\n\
  664.                                 Hokey Mask\t$1400","Buy","Back");
  665.                 PlayerPlaySound(playerid,5201,0,0,0);
  666.                         }
  667.                 }
  668.         }
  669.         if(dialogid == Dialog_Hats)
  670.         {
  671.         if(!response) return ShowPlayerDialog(playerid,Dialog_Accessories,2,"Accessories List :","Hat's\nGlass'es\nMask's","Select","Back");
  672.         switch(listitem)
  673.         {
  674.                         case 0:
  675.                         {
  676.                                 if(GetPlayerMoney(playerid) < 1200) return SendClientMessage(playerid,COLOR_RED,"You Dont Have Enough Money");
  677.                                 if(PGotHat[playerid] == true) return SendClientMessage(playerid,COLOR_RED,"You Already Got One Hat use "COL_YELLOW"<< /DeletAccess >> ");
  678.                                 PlayerPlaySound(playerid,1052,0,0,0);
  679.                                 GivePlayerMoney(playerid,-1200);
  680.                                 SetPlayerAttachedObject(playerid,0,18645,2,0.0,0.0,0.0,0.0,0.0,0.0,1.0,1.0,1.0,0,0);
  681.                                 PGotHat[playerid] = true;
  682.                                 SendClientMessage(playerid,COLOR_WHITE,"You Have Bought A "COL_RED"Red Helmet");
  683.                                 SendClientMessage(playerid,COLOR_WHITE,"You Can Fit Your Hat By Using "COL_YELLOW"<< /EditAccess >>");
  684.                         }
  685.                         case 1:
  686.                         {
  687.                                 if(GetPlayerMoney(playerid) < 1200) return SendClientMessage(playerid,COLOR_RED,"You Dont Have Enough Money");
  688.                                 if(PGotHat[playerid] == true) return SendClientMessage(playerid,COLOR_RED,"You Already Got One Hat use "COL_YELLOW"<< /DeletAccess >> ");
  689.                                 PlayerPlaySound(playerid,1052,0,0,0);
  690.                                 GivePlayerMoney(playerid,-1200);
  691.                                 SetPlayerAttachedObject(playerid,0,18646,2,0.0,0.0,0.0,0.0,0.0,0.0,1.0,1.0,1.0,0,0);
  692.                                 PGotHat[playerid] = true;
  693.                                 SendClientMessage(playerid,COLOR_WHITE,"You Have Bought A "COL_RED"Blue Helmet");
  694.                                 SendClientMessage(playerid,COLOR_WHITE,"You Can Fit Your Hat By Using "COL_YELLOW"<< /EditAccess >>");
  695.                         }
  696.                         case 2:
  697.                         {
  698.                                 if(GetPlayerMoney(playerid) < 2200) return SendClientMessage(playerid,COLOR_RED,"You Dont Have Enough Money");
  699.                                 if(PGotHat[playerid] == true) return SendClientMessage(playerid,COLOR_RED,"You Already Got One Hat use "COL_YELLOW"<< /DeletAccess >> ");
  700.                                 PlayerPlaySound(playerid,1052,0,0,0);
  701.                                 GivePlayerMoney(playerid,-2200);
  702.                                 SetPlayerAttachedObject(playerid,0,18926,2,0.0,0.0,0.0,0.0,0.0,0.0,1.0,1.0,1.0,0,0);
  703.                                 PGotHat[playerid] = true;
  704.                                 SendClientMessage(playerid,COLOR_WHITE,"You Have Bought A "COL_RED"Army Cap");
  705.                                 SendClientMessage(playerid,COLOR_WHITE,"You Can Fit Your Hat By Using "COL_YELLOW"<< /EditAccess >>");
  706.                         }
  707.                         case 3:
  708.                         {
  709.                                 if(GetPlayerMoney(playerid) < 2000) return SendClientMessage(playerid,COLOR_RED,"You Dont Have Enough Money");
  710.                                 if(PGotHat[playerid] == true) return SendClientMessage(playerid,COLOR_RED,"You Already Got One Hat use "COL_YELLOW"<< /DeletAccess >> ");
  711.                                 PlayerPlaySound(playerid,1052,0,0,0);
  712.                                 GivePlayerMoney(playerid,-2000);
  713.                                 SetPlayerAttachedObject(playerid,0,18930,2,0.0,0.0,0.0,0.0,0.0,0.0,1.0,1.0,1.0,0,0);
  714.                                 PGotHat[playerid] = true;
  715.                                 SendClientMessage(playerid,COLOR_WHITE,"You Have Bought A "COL_RED"Red Cap");
  716.                                 SendClientMessage(playerid,COLOR_WHITE,"You Can Fit Your Hat By Using "COL_YELLOW"<< /EditAccess >>");
  717.                         }
  718.                         case 4:
  719.                         {
  720.                                 if(GetPlayerMoney(playerid) < 2000) return SendClientMessage(playerid,COLOR_RED,"You Dont Have Enough Money");
  721.                                 if(PGotHat[playerid] == true) return SendClientMessage(playerid,COLOR_RED,"You Already Got One Hat use "COL_YELLOW"<< /DeletAccess >> ");
  722.                                 PlayerPlaySound(playerid,1052,0,0,0);
  723.                                 GivePlayerMoney(playerid,-2000);
  724.                                 SetPlayerAttachedObject(playerid,0,18931,2,0.0,0.0,0.0,0.0,0.0,0.0,1.0,1.0,1.0,0,0);
  725.                                 PGotHat[playerid] = true;
  726.                                 SendClientMessage(playerid,COLOR_WHITE,"You Have Bought A "COL_RED"Blue Cap");
  727.                                 SendClientMessage(playerid,COLOR_WHITE,"You Can Fit Your Hat By Using "COL_YELLOW"<< /EditAccess >>");
  728.                         }
  729.                         case 5:
  730.                         {
  731.                                 if(GetPlayerMoney(playerid) < 1200) return SendClientMessage(playerid,COLOR_RED,"You Dont Have Enough Money");
  732.                                 if(PGotHat[playerid] == true) return SendClientMessage(playerid,COLOR_RED,"You Already Got One Hat use "COL_YELLOW"<< /DeletAccess >> ");
  733.                                 PlayerPlaySound(playerid,1052,0,0,0);
  734.                                 GivePlayerMoney(playerid,-1200);
  735.                                 SetPlayerAttachedObject(playerid,0,18944,2,0.0,0.0,0.0,0.0,0.0,0.0,1.0,1.0,1.0,0,0);
  736.                                 PGotHat[playerid] = true;
  737.                                 SendClientMessage(playerid,COLOR_WHITE,"You Have Bought A "COL_RED"Black Hat");
  738.                                 SendClientMessage(playerid,COLOR_WHITE,"You Can Fit Your Hat By Using "COL_YELLOW"<< /EditAccess >>");
  739.                         }
  740.                         case 6:
  741.                         {
  742.                                 if(GetPlayerMoney(playerid) < 1200) return SendClientMessage(playerid,COLOR_RED,"You Dont Have Enough Money");
  743.                                 if(PGotHat[playerid] == true) return SendClientMessage(playerid,COLOR_RED,"You Already Got One Hat use "COL_YELLOW"<< /DeletAccess >> ");
  744.                                 PlayerPlaySound(playerid,1052,0,0,0);
  745.                                 GivePlayerMoney(playerid,-1200);
  746.                                 SetPlayerAttachedObject(playerid,0,18950,2,0.0,0.0,0.0,0.0,0.0,0.0,1.0,1.0,1.0,0,0);
  747.                                 PGotHat[playerid] = true;
  748.                                 SendClientMessage(playerid,COLOR_WHITE,"You Have Bought A "COL_RED"Red Hat");
  749.                                 SendClientMessage(playerid,COLOR_WHITE,"You Can Fit Your Hat By Using "COL_YELLOW"<< /EditAccess >>");
  750.                         }
  751.                         case 7:
  752.                         {
  753.                                 if(GetPlayerMoney(playerid) < 4800) return SendClientMessage(playerid,COLOR_RED,"You Dont Have Enough Money");
  754.                                 if(PGotHat[playerid] == true) return SendClientMessage(playerid,COLOR_RED,"You Already Got One Hat use "COL_YELLOW"<< /DeletAccess >> ");
  755.                                 PlayerPlaySound(playerid,1052,0,0,0);
  756.                                 GivePlayerMoney(playerid,-4800);
  757.                                 SetPlayerAttachedObject(playerid,0,19161,2,0.0,0.0,0.0,0.0,0.0,0.0,1.0,1.0,1.0,0,0);
  758.                                 PGotHat[playerid] = true;
  759.                                 SendClientMessage(playerid,COLOR_WHITE,"You Have Bought A "COL_RED"Black Police Cap ");
  760.                                 SendClientMessage(playerid,COLOR_WHITE,"You Can Fit Your Hat By Using "COL_YELLOW"<< /EditAccess >>");
  761.                         }
  762.                         case 8:
  763.                         {
  764.                                 if(GetPlayerMoney(playerid) < 4800) return SendClientMessage(playerid,COLOR_RED,"You Dont Have Enough Money");
  765.                                 if(PGotHat[playerid] == true) return SendClientMessage(playerid,COLOR_RED,"You Already Got One Hat use "COL_YELLOW"<< /DeletAccess >> ");
  766.                                 PlayerPlaySound(playerid,1052,0,0,0);
  767.                                 GivePlayerMoney(playerid,-4800);
  768.                                 SetPlayerAttachedObject(playerid,0,19162,2,0.0,0.0,0.0,0.0,0.0,0.0,1.0,1.0,1.0,0,0);
  769.                                 PGotHat[playerid] = true;
  770.                                 SendClientMessage(playerid,COLOR_WHITE,"You Have Bought A "COL_RED"Blue Police Cap ");
  771.                                 SendClientMessage(playerid,COLOR_WHITE,"You Can Fit Your Hat By Using "COL_YELLOW"<< /EditAccess >>");
  772.                         }
  773.                         case 9:
  774.                         {
  775.                                 if(GetPlayerMoney(playerid) < 6000) return SendClientMessage(playerid,COLOR_RED,"You Dont Have Enough Money");
  776.                                 if(PGotHat[playerid] == true) return SendClientMessage(playerid,COLOR_RED,"You Already Got One Hat use "COL_YELLOW"<< /DeletAccess >> ");
  777.                                 PlayerPlaySound(playerid,1052,0,0,0);
  778.                                 GivePlayerMoney(playerid,-6000);
  779.                                 SetPlayerAttachedObject(playerid,0,18970,2,0.0,0.0,0.0,0.0,0.0,0.0,1.0,1.0,1.0,0,0);
  780.                                 PGotHat[playerid] = true;
  781.                                 SendClientMessage(playerid,COLOR_WHITE,"You Have Bought A "COL_RED"Tiger Skined Hat");
  782.                                 SendClientMessage(playerid,COLOR_WHITE,"You Can Fit Your Hat By Using "COL_YELLOW"<< /EditAccess >>");
  783.                         }
  784.                        
  785.                 }
  786.         }
  787.         if(dialogid == Dialog_Glasses)
  788.         {
  789.         if(!response) return ShowPlayerDialog(playerid,Dialog_Accessories,2,"Accessories List :","Hat's\nGlass'es\nMask's","Select","Back");
  790.         switch(listitem)
  791.         {
  792.                         case 0:
  793.                         {
  794.                                 if(GetPlayerMoney(playerid) < 1000) return SendClientMessage(playerid,COLOR_RED,"You Dont Have Enough Cash!");
  795.                                 if(PGotGlass[playerid] == true) return SendClientMessage(playerid,COLOR_RED,"You Already Have Glass Use "COL_YELLOW"<< /DeletAccess >>");
  796.                                 PlayerPlaySound(playerid,1052,0,0,0);
  797.                                 GivePlayerMoney(playerid,-1000);
  798.                                 SetPlayerAttachedObject(playerid,1,19006,2,0.0,0.0,0.0,0.0,0.0,0.0,1.0,1.0,1.0,0,0);
  799.                                 PGotGlass[playerid] = true;
  800.                                 SendClientMessage(playerid,COLOR_WHITE,"You Have Bought A "COL_RED"Normal Red Glass");
  801.                                 SendClientMessage(playerid,COLOR_WHITE,"You Can Fit Your Glass By Using "COL_YELLOW"<< /EditAccess >>");
  802.                         }
  803.                         case 1:
  804.                         {
  805.                 if(GetPlayerMoney(playerid) < 1000) return SendClientMessage(playerid,COLOR_RED,"You Dont Have Enough Cash!");
  806.                                 if(PGotGlass[playerid] == true) return SendClientMessage(playerid,COLOR_RED,"You Already Have Glass Use "COL_YELLOW"<< /DeletAccess >>");
  807.                                 PlayerPlaySound(playerid,1052,0,0,0);
  808.                                 GivePlayerMoney(playerid,-1000);
  809.                                 SetPlayerAttachedObject(playerid,1,19007,2,0.0,0.0,0.0,0.0,0.0,0.0,1.0,1.0,1.0,0,0);
  810.                                 PGotGlass[playerid] = true;
  811.                                 SendClientMessage(playerid,COLOR_WHITE,"You Have Bought A "COL_RED"Normal Yellow Glass");
  812.                                 SendClientMessage(playerid,COLOR_WHITE,"You Can Fit Your Glass By Using "COL_YELLOW"<< /EditAccess >>");
  813.                         }
  814.                         case 2:
  815.                         {
  816.                 if(GetPlayerMoney(playerid) < 2000) return SendClientMessage(playerid,COLOR_RED,"You Dont Have Enough Cash!");
  817.                                 if(PGotGlass[playerid] == true) return SendClientMessage(playerid,COLOR_RED,"You Already Have Glass Use "COL_YELLOW"<< /DeletAccess >>");
  818.                                 PlayerPlaySound(playerid,1052,0,0,0);
  819.                                 GivePlayerMoney(playerid,-2000);
  820.                                 SetPlayerAttachedObject(playerid,1,19022,2,0.0,0.0,0.0,0.0,0.0,0.0,1.0,1.0,1.0,0,0);
  821.                                 PGotGlass[playerid] = true;
  822.                                 SendClientMessage(playerid,COLOR_WHITE,"You Have Bought A "COL_RED"Nice Black Glass");
  823.                                 SendClientMessage(playerid,COLOR_WHITE,"You Can Fit Your Glass By Using "COL_YELLOW"<< /EditAccess >>");
  824.                         }
  825.                         case 3:
  826.                         {
  827.                 if(GetPlayerMoney(playerid) < 2000) return SendClientMessage(playerid,COLOR_RED,"You Dont Have Enough Cash!");
  828.                                 if(PGotGlass[playerid] == true) return SendClientMessage(playerid,COLOR_RED,"You Already Have Glass Use "COL_YELLOW"<< /DeletAccess >>");
  829.                                 PlayerPlaySound(playerid,1052,0,0,0);
  830.                                 GivePlayerMoney(playerid,-2000);
  831.                                 SetPlayerAttachedObject(playerid,1,19026,2,0.0,0.0,0.0,0.0,0.0,0.0,1.0,1.0,1.0,0,0);
  832.                                 PGotGlass[playerid] = true;
  833.                                 SendClientMessage(playerid,COLOR_WHITE,"You Have Bought A "COL_RED"Nice Red Glass");
  834.                                 SendClientMessage(playerid,COLOR_WHITE,"You Can Fit Your Glass By Using "COL_YELLOW"<< /EditAccess >>");
  835.                         }
  836.                         case 4:
  837.                         {
  838.                 if(GetPlayerMoney(playerid) < 2000) return SendClientMessage(playerid,COLOR_RED,"You Dont Have Enough Cash!");
  839.                                 if(PGotGlass[playerid] == true) return SendClientMessage(playerid,COLOR_RED,"You Already Have Glass Use "COL_YELLOW"<< /DeletAccess >>");
  840.                                 PlayerPlaySound(playerid,1052,0,0,0);
  841.                                 GivePlayerMoney(playerid,-2000);
  842.                                 SetPlayerAttachedObject(playerid,1,19028,2,0.0,0.0,0.0,0.0,0.0,0.0,1.0,1.0,1.0,0,0);
  843.                                 PGotGlass[playerid] = true;
  844.                                 SendClientMessage(playerid,COLOR_WHITE,"You Have Bought A "COL_RED"Nice Yellow Glass");
  845.                                 SendClientMessage(playerid,COLOR_WHITE,"You Can Fit Your Glass By Using "COL_YELLOW"<< /EditAccess >>");
  846.                         }
  847.                         case 5:
  848.                         {
  849.                 if(GetPlayerMoney(playerid) < 3800) return SendClientMessage(playerid,COLOR_RED,"You Dont Have Enough Cash!");
  850.                                 if(PGotGlass[playerid] == true) return SendClientMessage(playerid,COLOR_RED,"You Already Have Glass Use "COL_YELLOW"<< /DeletAccess >>");
  851.                                 PlayerPlaySound(playerid,1052,0,0,0);
  852.                                 GivePlayerMoney(playerid,-3800);
  853.                                 SetPlayerAttachedObject(playerid,1,19139,2,0.0,0.0,0.0,0.0,0.0,0.0,1.0,1.0,1.0,0,0);
  854.                                 PGotGlass[playerid] = true;
  855.                                 SendClientMessage(playerid,COLOR_WHITE,"You Have Bought A "COL_RED"Red Cop Glass");
  856.                                 SendClientMessage(playerid,COLOR_WHITE,"You Can Fit Your Glass By Using "COL_YELLOW"<< /EditAccess >>");
  857.                         }
  858.                         case 6:
  859.                         {
  860.                 if(GetPlayerMoney(playerid) < 3800) return SendClientMessage(playerid,COLOR_RED,"You Dont Have Enough Cash!");
  861.                                 if(PGotGlass[playerid] == true) return SendClientMessage(playerid,COLOR_RED,"You Already Have Glass Use "COL_YELLOW"<< /DeletAccess >>");
  862.                                 PlayerPlaySound(playerid,1052,0,0,0);
  863.                                 GivePlayerMoney(playerid,-3800);
  864.                                 SetPlayerAttachedObject(playerid,1,19140,2,0.0,0.0,0.0,0.0,0.0,0.0,1.0,1.0,1.0,0,0);
  865.                                 PGotGlass[playerid] = true;
  866.                                 SendClientMessage(playerid,COLOR_WHITE,"You Have Bought A "COL_RED"Blue Cop Glass");
  867.                                 SendClientMessage(playerid,COLOR_WHITE,"You Can Fit Your Glass By Using "COL_YELLOW"<< /EditAccess >>");
  868.                         }
  869.                 }
  870.         }
  871.         if(dialogid == Dialog_Masks)
  872.         {
  873.         if(!response) return ShowPlayerDialog(playerid,Dialog_Accessories,2,"Accessories List :","Hat's\nGlass'es\nMask's","Select","Back");
  874.         switch(listitem)
  875.         {
  876.                         case 0:
  877.                         {
  878.                 if(GetPlayerMoney(playerid) < 6000) return SendClientMessage(playerid,COLOR_RED,"You Dont Have Enough Cash!");
  879.                                 if(PGotMask[playerid] == true) return SendClientMessage(playerid,COLOR_RED,"You Already Have Mask Use "COL_YELLOW"<< /DeleteAccess >>");
  880.                                 PlayerPlaySound(playerid,1052,0,0,0);
  881.                                 GivePlayerMoney(playerid,-6000);
  882.                                 SetPlayerAttachedObject(playerid,2,19163,1,0.0,0.0,0.0,0.0,0.0,0.0,1.0,1.0,1.0,0,0);
  883.                                 PGotMask[playerid] = true;
  884.                                 SendClientMessage(playerid,COLOR_WHITE,"You Have Bought A "COL_RED"Tiger Mask");
  885.                                 SendClientMessage(playerid,COLOR_WHITE,"You Can Fit Your Mask By Using "COL_YELLOW"<< /EditAccess >>");
  886.                         }
  887.                         case 1:
  888.                         {
  889.                                 if(GetPlayerMoney(playerid) < 2000) return SendClientMessage(playerid,COLOR_RED,"You Dont Have Enough Cash!");
  890.                                 if(PGotMask[playerid] == true) return SendClientMessage(playerid,COLOR_RED,"You Already Have Mask Use "COL_YELLOW"<< /DeleteAccess >>");
  891.                                 PlayerPlaySound(playerid,1052,0,0,0);
  892.                                 GivePlayerMoney(playerid,-2000);
  893.                                 SetPlayerAttachedObject(playerid,2,18911,1,0.0,0.0,0.0,0.0,0.0,0.0,1.0,1.0,1.0,0,0);
  894.                                 PGotMask[playerid] = true;
  895.                                 SendClientMessage(playerid,COLOR_WHITE,"You Have Bought A "COL_RED"Skull Mask");
  896.                                 SendClientMessage(playerid,COLOR_WHITE,"You Can Fit Your Mask By Using "COL_YELLOW"<< /EditAccess >>");
  897.                         }
  898.                         case 2:
  899.                         {
  900.                                 if(GetPlayerMoney(playerid) < 1200) return SendClientMessage(playerid,COLOR_RED,"You Dont Have Enough Cash!");
  901.                                 if(PGotMask[playerid] == true) return SendClientMessage(playerid,COLOR_RED,"You Already Have Mask Use "COL_YELLOW"<< /DeleteAccess >>");
  902.                                 PlayerPlaySound(playerid,1052,0,0,0);
  903.                                 GivePlayerMoney(playerid,-1200);
  904.                                 SetPlayerAttachedObject(playerid,2,11812,1,0.0,0.0,0.0,0.0,0.0,0.0,1.0,1.0,1.0,0,0);
  905.                                 PGotMask[playerid] = true;
  906.                                 SendClientMessage(playerid,COLOR_WHITE,"You Have Bought A "COL_RED"Black Gang Mask");
  907.                                 SendClientMessage(playerid,COLOR_WHITE,"You Can Fit Your Mask By Using "COL_YELLOW"<< /EditAccess >>");
  908.                         }
  909.                         case 3:
  910.                         {
  911.                                 if(GetPlayerMoney(playerid) < 1200) return SendClientMessage(playerid,COLOR_RED,"You Dont Have Enough Cash!");
  912.                                 if(PGotMask[playerid] == true) return SendClientMessage(playerid,COLOR_RED,"You Already Have Mask Use "COL_YELLOW"<< /DeleteAccess >>");
  913.                                 PlayerPlaySound(playerid,1052,0,0,0);
  914.                                 GivePlayerMoney(playerid,-1200);
  915.                                 SetPlayerAttachedObject(playerid,2,18913,1,0.0,0.0,0.0,0.0,0.0,0.0,1.0,1.0,1.0,0,0);
  916.                                 PGotMask[playerid] = true;
  917.                                 SendClientMessage(playerid,COLOR_WHITE,"You Have Bought A "COL_RED"Green Gang Mask ");
  918.                                 SendClientMessage(playerid,COLOR_WHITE,"You Can Fit Your Mask By Using "COL_YELLOW"<< /EditAccess >>");
  919.                         }
  920.                         case 4:
  921.                         {
  922.                                 if(GetPlayerMoney(playerid) < 3200) return SendClientMessage(playerid,COLOR_RED,"You Dont Have Enough Cash!");
  923.                                 if(PGotMask[playerid] == true) return SendClientMessage(playerid,COLOR_RED,"You Already Have Mask Use "COL_YELLOW"<< /DeleteAccess >>");
  924.                                 PlayerPlaySound(playerid,1052,0,0,0);
  925.                                 GivePlayerMoney(playerid,-3200);
  926.                                 SetPlayerAttachedObject(playerid,2,18914,1,0.0,0.0,0.0,0.0,0.0,0.0,1.0,1.0,1.0,0,0);
  927.                                 PGotMask[playerid] = true;
  928.                                 SendClientMessage(playerid,COLOR_WHITE,"You Have Bought A "COL_RED"Army Mask");
  929.                                 SendClientMessage(playerid,COLOR_WHITE,"You Can Fit Your Mask By Using "COL_YELLOW"<< /EditAccess >>");
  930.                         }
  931.                         case 5:
  932.                         {
  933.                                 if(GetPlayerMoney(playerid) < 2800) return SendClientMessage(playerid,COLOR_RED,"You Dont Have Enough Cash!");
  934.                                 if(PGotMask[playerid] == true) return SendClientMessage(playerid,COLOR_RED,"You Already Have Mask Use "COL_YELLOW"<< /DeleteAccess >>");
  935.                                 PlayerPlaySound(playerid,1052,0,0,0);
  936.                                 GivePlayerMoney(playerid,-2800);
  937.                                 SetPlayerAttachedObject(playerid,2,18917,1,0.0,0.0,0.0,0.0,0.0,0.0,1.0,1.0,1.0,0,0);
  938.                                 PGotMask[playerid] = true;
  939.                                 SendClientMessage(playerid,COLOR_WHITE,"You Have Bought A "COL_RED"Blue Lightning Mask");
  940.                                 SendClientMessage(playerid,COLOR_WHITE,"You Can Fit Your Mask By Using "COL_YELLOW"<< /EditAccess >>");
  941.                         }
  942.                         case 6:
  943.                         {
  944.                                 if(GetPlayerMoney(playerid) < 1400) return SendClientMessage(playerid,COLOR_RED,"You Dont Have Enough Cash!");
  945.                                 if(PGotMask[playerid] == true) return SendClientMessage(playerid,COLOR_RED,"You Already Have Mask Use "COL_YELLOW"<< /DeleteAccess >>");
  946.                                 PlayerPlaySound(playerid,1052,0,0,0);
  947.                                 GivePlayerMoney(playerid,-1400);
  948.                                 SetPlayerAttachedObject(playerid,2,19036,1,0.0,0.0,0.0,0.0,0.0,0.0,1.0,1.0,1.0,0,0);
  949.                                 PGotMask[playerid] = true;
  950.                                 SendClientMessage(playerid,COLOR_WHITE,"You Have Bought A "COL_RED"Hokey Mask");
  951.                                 SendClientMessage(playerid,COLOR_WHITE,"You Can Fit Your Mask By Using "COL_YELLOW"<< /EditAccess >>");
  952.                         }
  953.                 }
  954.         }
  955.         return 0;
  956. }
  957.  
  958. public OnPlayerEditAttachedObject(playerid, response, index, modelid, boneid, Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ, Float:fRotX, Float:fRotY, Float:fRotZ, Float:fScaleX, Float:fScaleY, Float:fScaleZ)
  959. {
  960.         if(response)
  961.         {
  962.                 SendClientMessage(playerid,COLOR_YELLOW,"Your Accessories Is Ready To Use");
  963.         }
  964.         return 1;
  965. }
  966.  
  967. CMD:shophelp(playerid, params[])
  968. {
  969.         SendClientMessage(playerid,COLOR_LIGHTRED,"---------------------------------------------------");
  970.         SendClientMessage(playerid,COLOR_WHITE,"List Of Commannds :");
  971.         SendClientMessage(playerid,COLOR_RED,"/shop >> "COL_YELLOW"Display Shop Menu");
  972.         SendClientMessage(playerid,COLOR_RED,"/destroyveh >> "COL_YELLOW"Destroies Bought Vehicle");
  973.         SendClientMessage(playerid,COLOR_RED,"/editaccess (/ea) >> "COL_YELLOW"Edits Your Accessories Place");
  974.         SendClientMessage(playerid,COLOR_RED,"/deleteaccess (/da) >> "COL_YELLOW"Delets Your Accessories");
  975.         SendClientMessage(playerid,COLOR_LIGHTRED,"---------------------------------------------------");
  976.         return 1;
  977. }
  978. CMD:shop(playerid, params[])
  979. {
  980.         ShowPlayerDialog(playerid,Dialog_Shop,DIALOG_STYLE_LIST,"Jizzy Online Shop:","Weapon's\nVehicle's\nFoods\nAccessories","Select","Quit");
  981.         return 1;
  982. }
  983. CMD:destroyveh(playerid, params[])
  984. {
  985.         if(PBoughtVehicle[playerid] == true)
  986.         {
  987.             if(GetPlayerState(playerid) == 2)
  988.             {
  989.                 new vehid = GetPlayerVehicleID(playerid);
  990.                         DestroyVehicle(vehid);
  991.                         PBoughtVehicle[playerid] = false;
  992.                         PCreatedVehicleid[playerid] = 999;
  993.                         PlayerPlaySound(playerid,100005,0,0,0);
  994.                         LastVehicleid--;
  995.                         SendClientMessage(playerid,COLOR_YELLOW,"We Will Take Care Of You Car");
  996.                 }
  997.                 else
  998.                 {
  999.                         SendClientMessage(playerid,COLOR_RED,"Please Get In Your Car");
  1000.                 }
  1001.         }
  1002.         else
  1003.         {
  1004.                 SendClientMessage(playerid,COLOR_RED,"You Dont Have Any Car !");
  1005.         }
  1006.         return 1;
  1007. }
  1008. CMD:deleteaccess(playerid, params[])
  1009. {
  1010.         new ind;
  1011.         if(sscanf(params,"i",ind)) return SendClientMessage(playerid,COLOR_YELLOW,"Usage: "COL_WHITE"/deleteaccess <Acccess Id> "COL_RED"(0 for Hat||1 for Glass||2 for Mask)");
  1012.         if(ind == 0)
  1013.         {
  1014.             if(PGotHat[playerid] == false) return SendClientMessage(playerid,COLOR_YELLOW,"You Dont Have Any Hat's");
  1015.                 RemovePlayerAttachedObject(playerid,0);
  1016.                 SendClientMessage(playerid,COLOR_LIGHTRED,"You Accessorios Remove'd sucsessfully !");
  1017.                 PGotHat[playerid] = false;
  1018.         }
  1019.         if(ind == 1)
  1020.         {
  1021.             if(PGotGlass[playerid] == false) return SendClientMessage(playerid,COLOR_YELLOW,"You Dont Have Any Glasse's");
  1022.                 RemovePlayerAttachedObject(playerid,1);
  1023.                 SendClientMessage(playerid,COLOR_LIGHTRED,"You Accessorios Remove'd sucsessfully !");
  1024.                 PGotGlass[playerid] = false;
  1025.         }
  1026.         if(ind == 2)
  1027.         {
  1028.             if(PGotMask[playerid] == false) return SendClientMessage(playerid,COLOR_YELLOW,"You Dont Have Any Mask's");
  1029.                 RemovePlayerAttachedObject(playerid,2);
  1030.                 SendClientMessage(playerid,COLOR_LIGHTRED,"You Accessorios Remove'd sucsessfully !");
  1031.                 PGotMask[playerid] = false;
  1032.         }
  1033.         return 1;
  1034. }
  1035. CMD:editaccess(playerid, params[])
  1036. {
  1037.         new ind2;
  1038.         if(sscanf(params,"i",ind2)) return SendClientMessage(playerid,COLOR_YELLOW,"Usage : "COL_WHITE"/editaccess <Access id> "COL_RED"(0 for Hat||1 for Glass||2 for Mask)");
  1039.         if(ind2 == 0)
  1040.         {
  1041.             if(PGotHat[playerid] == true)
  1042.             {
  1043.                         EditAttachedObject(playerid,0);
  1044.                         SendClientMessage(playerid,COLOR_LIGHTBLUE,"Accessories Editor....");
  1045.                 }
  1046.                 else
  1047.                 {
  1048.                         SendClientMessage(playerid,COLOR_YELLOW,"You Dont Have Any Hats");
  1049.                 }
  1050.         }
  1051.         if(ind2 == 1)
  1052.         {
  1053.         if(PGotGlass[playerid] == true)
  1054.             {
  1055.                         EditAttachedObject(playerid,1);
  1056.                         SendClientMessage(playerid,COLOR_LIGHTBLUE,"Accessories Editor....");
  1057.                 }
  1058.                 else
  1059.                 {
  1060.                         SendClientMessage(playerid,COLOR_YELLOW,"You Dont Have Any Glasses");
  1061.                 }
  1062.         }
  1063.         if(ind2 == 2)
  1064.         {
  1065.        if(PGotMask[playerid] == true)
  1066.             {
  1067.                         EditAttachedObject(playerid,2);
  1068.                         SendClientMessage(playerid,COLOR_LIGHTBLUE,"Accessories Editor....");
  1069.                 }
  1070.                 else
  1071.                 {
  1072.                         SendClientMessage(playerid,COLOR_YELLOW,"You Dont Have Any Mask");
  1073.                 }
  1074.         }
  1075.         return 1;
  1076. }
  1077. CMD:da(playerid, params[])
  1078. {
  1079.         return cmd_deleteaccess(playerid,params);
  1080. }
  1081. CMD:ea(playerid,params[])
  1082. {
  1083.         return cmd_editaccess(playerid,params);
  1084. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top