Advertisement
Guest User

Los Santos Gang Chaos

a guest
Jul 25th, 2014
487
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.55 KB | None | 0 0
  1. // Includes //
  2. #include <a_samp>
  3. #include <zcmd>
  4. #include <foreach>
  5. #include <a_gametext>
  6. // Team Defines //
  7. #define TEAM_BALLA 0
  8. #define TEAM_GROVE 1
  9. // Dialog Defines //
  10. #define DIALOG_CMDS 0
  11. #define DIALOG_CMDS1 1
  12. #define DIALOG_CMDS2 2
  13. #define DIALOG_CMDS3 3
  14. #define DIALOG_CMDS4 4
  15. #define DIALOG_CMDS5 5
  16. #define DIALOG_HELP 6
  17. #define DIALOG_CREDITS 7
  18. #define DIALOG_UPDATES 8
  19. #define DIALOG_RULES 9
  20. #define DIALOG_SHOP 10
  21. #define DIALOG_TEAM 11
  22. // Other Defines //
  23. #define SCM SendClientMessage
  24.  
  25. // Forwards //
  26. forward SendMSG();
  27. forward RandomMessages();
  28. forward PayDay();
  29. // News //
  30. new gTeam[MAX_PLAYERS];
  31. new string[500];
  32. new Text:CNAME;
  33. new Text:CWEBS;
  34. new RandomMSG[][] =
  35. {
  36. "{E10000}<!> {FFFFFF}Welcome to the {00FF22}Los Santos{F81414} Gang Chaos.",
  37. "{E10000}<!> {FFFFFF}Use {00CED1}/pm <ID> <TEXT> {FFFFFF}To send messages to player",
  38. "{E10000}<!> {FFFFFF}Use {00CED1}/updates {FFFFFF}to check the latest version updates of the server",
  39. "{E10000}<!> {FFFFFF}Need help? use {00CED1}/helpme [text] {FFFFFF}to ask from admins",
  40. "{E10000}<!> {FFFFFF}Are you new here? use {00CED1}/help /cmds /rules",
  41. "{E10000}<!> {FFFFFF}Intrested to be an admin? apply at our forums {00CED1}www.coming-soon.com.",
  42. "{E10000}<!> {FFFFFF}Donate to the server and get cool stuffs as rewards like {00CED1}admin status, moderator status and VIP status!",
  43. "{E10000}<!> {FFFFFF}Donate us to keep the server alive! and get an entry pass to the {00CED1}VIP Home!"
  44. };
  45. new Float:GroveRandom[][] =
  46. {
  47. {2523.4185,-1678.6345,19.9302,89.6241}, // Grove Random Spawn 1
  48. {2489.7378,-1647.3156,14.0772,175.1415}, // Grove Random Spawn 2
  49. {2459.4932,-1690.5696,13.5444,354.0331}, // Grove Random Spawn 3
  50. {2512.3826,-1651.0084,13.9556,129.3711} // Grove Random Spawn 4
  51. };
  52. new Float:BallaRandom[][] =
  53. {
  54. {2222.9438,-1174.6432,25.7266,354.9499}, // Ballas Random Spawn 1
  55. {2232.1135,-1177.3505,29.8044,354.6366}, // Ballas Random Spawn 2
  56. {2201.6777,-1176.6641,29.7969,356.5166}, // Ballas Random Spawn 3
  57. {2201.6277,-1152.4890,25.8717,274.8809} // Ballas Random Spawn 4
  58. };
  59. new GroveSkin[] =
  60. {
  61. 105, // Grove Skin Type 1
  62. 106, // Grove Skin Type 2
  63. 107 // Grove Skin Type 3
  64. };
  65. new BallaSkin[] =
  66. {
  67. 102, // Ballas Skin Type 1
  68. 103, // Ballas Skin Type 2
  69. 104 // Ballas Skin Type 3
  70. };
  71. // Stocks //
  72. stock PlayerName(playerid)
  73. {
  74. new playerName[MAX_PLAYER_NAME+1];
  75. GetPlayerName(playerid, playerName, sizeof(playerName));
  76. return playerName;
  77. }
  78.  
  79. public PayDay()
  80. {
  81. foreach(Player, i)
  82. {
  83. GivePlayerMoney(i, 15000);
  84. ShowPlayerDialog(i, DIALOG_CREDITS, DIALOG_STYLE_MSGBOX,"{3BF5C6}LSGC - PayDay","Hello guys, It is PayDay !\nYou received 15000$ Cash!","Done","Close");
  85. }
  86. return 1;
  87. }
  88.  
  89. public SendMSG()
  90. {
  91. new randMSG = random(sizeof(RandomMSG));
  92. SendClientMessageToAll(-1, RandomMSG[randMSG]);
  93. }
  94.  
  95. public OnGameModeInit()
  96. {
  97. print("\n--------------------------------------");
  98. print(" LSGC Version 0.1 - Loaded ");
  99. print("--------------------------------------\n");
  100. SetGameModeText("GangWars/TDM/DM v0.1");
  101. SetTimer("SendMSG", 60000, true);
  102. SetTimer("PayDay", 1200000, true);
  103. AddStaticVehicleEx(492,2508.2000000,-1666.1000000,13.3000000,12.0000000,66,31,15); //Greenwood
  104. AddStaticVehicleEx(492,2506.0000000,-1677.0000000,13.3000000,325.9970000,66,31,15); //Greenwood
  105. AddStaticVehicleEx(535,2473.3000000,-1694.1000000,13.4000000,0.0000000,163,173,15); //Slamvan
  106. AddStaticVehicleEx(535,2473.3000000,-1701.7000000,13.4000000,0.0000000,163,173,15); //Slamvan
  107. AddStaticVehicleEx(412,2487.6001000,-1655.5000000,13.3000000,90.0000000,63,62,15); //Voodoo
  108. AddStaticVehicleEx(412,2479.3999000,-1655.4000000,13.3000000,90.0000000,63,62,15); //Voodoo
  109. AddStaticVehicleEx(412,2472.0000000,-1655.2000000,13.3000000,90.0000000,63,62,15); //Voodoo
  110. AddStaticVehicleEx(405,2498.6001000,-1681.6000000,13.4000000,104.0000000,34,25,15); //Sentinel
  111. AddStaticVehicleEx(405,2487.6001000,-1682.8000000,13.3000000,89.9970000,34,25,15); //Sentinel
  112. AddStaticVehicleEx(461,2509.8999000,-1690.8000000,13.2000000,46.0000000,32,32,15); //PCJ-600
  113. AddStaticVehicleEx(461,2511.0000000,-1689.7000000,13.2000000,46.0000000,32,32,15); //PCJ-600
  114. AddStaticVehicleEx(461,2512.2000000,-1688.5000000,13.2000000,46.0000000,32,32,15); //PCJ-600
  115. AddStaticVehicleEx(461,2513.3999000,-1687.0000000,13.2000000,46.0000000,32,32,15); //PCJ-600
  116. AddStaticVehicleEx(461,2514.8000000,-1685.3000000,13.2000000,46.0000000,32,32,15); //PCJ-600
  117. AddStaticVehicleEx(510,2495.1001000,-1646.4000000,13.2000000,146.0000000,42,119,15); //Mountain Bike
  118. AddStaticVehicleEx(510,2496.5000000,-1646.6000000,13.2000000,145.9970000,42,119,15); //Mountain Bike
  119. AddStaticVehicleEx(510,2497.8999000,-1646.5000000,13.2000000,145.9920000,42,119,15); //Mountain Bike
  120. AddStaticVehicleEx(510,2499.3000000,-1646.6000000,13.2000000,145.9920000,42,119,15); //Mountain Bike
  121. AddStaticVehicleEx(510,2501.0000000,-1646.5000000,13.2000000,145.9920000,42,119,15); //Mountain Bike
  122. AddStaticVehicleEx(487,2533.3000000,-1678.0000000,20.2000000,90.0000000,39,47,15); //Maverick
  123. AddStaticVehicleEx(566,2206.2000000,-1176.6000000,25.6000000,294.0000000,111,130,15); //Tahoma
  124. AddStaticVehicleEx(566,2206.3000000,-1172.4000000,25.6000000,294.0000000,111,130,15); //Tahoma
  125. AddStaticVehicleEx(566,2206.0000000,-1167.7000000,25.6000000,294.0000000,111,130,15); //Tahoma
  126. AddStaticVehicleEx(566,2206.3000000,-1162.2000000,25.6000000,294.0000000,111,130,15); //Tahoma
  127. AddStaticVehicleEx(566,2206.2000000,-1157.4000000,25.6000000,294.0000000,111,130,15); //Tahoma
  128. AddStaticVehicleEx(566,2205.8999000,-1153.3000000,25.6000000,294.0000000,111,130,15); //Tahoma
  129. AddStaticVehicleEx(487,2216.6001000,-1161.9000000,26.0000000,0.0000000,165,169,15); //Maverick
  130. AddStaticVehicleEx(461,2227.7000000,-1177.3000000,25.4000000,88.0000000,45,58,15); //PCJ-600
  131. AddStaticVehicleEx(461,2227.6001000,-1173.9000000,25.4000000,87.9950000,45,58,15); //PCJ-600
  132. AddStaticVehicleEx(461,2227.5000000,-1170.5000000,25.4000000,87.9950000,45,58,15); //PCJ-600
  133. AddStaticVehicleEx(461,2227.6001000,-1166.2000000,25.4000000,87.9950000,45,58,15); //PCJ-600
  134. AddStaticVehicleEx(461,2227.6001000,-1162.9000000,25.4000000,87.9950000,45,58,15); //PCJ-600
  135. AddStaticVehicleEx(434,2227.8000000,-1159.4000000,25.9000000,56.0000000,93,126,15); //Hotknife
  136. AddStaticVehicleEx(434,2228.2000000,-1154.9000000,26.0000000,55.9970000,93,126,15); //Hotknife
  137. AddStaticVehicleEx(434,2227.8000000,-1150.7000000,26.0000000,55.9970000,93,126,15); //Hotknife
  138. AddStaticVehicleEx(542,2328.0000000,-1677.4000000,14.3000000,270.0000000,132,148,15); //Clover
  139. AddStaticVehicleEx(542,2158.8999000,-1794.7000000,13.2000000,270.0000000,132,148,15); //Clover
  140. AddStaticVehicleEx(542,2159.0000000,-1800.5000000,13.2000000,270.0000000,132,148,15); //Clover
  141. AddStaticVehicleEx(542,2159.1001000,-1806.2000000,13.2000000,270.0000000,132,148,15); //Clover
  142. AddStaticVehicleEx(487,2171.8999000,-1739.3000000,20.6000000,0.0000000,151,149,15); //Maverick
  143. AddStaticVehicleEx(487,2142.2000000,-1739.0000000,20.6000000,0.0000000,151,149,15); //Maverick
  144. AddStaticVehicleEx(475,2180.8999000,-1722.1000000,13.3000000,0.0000000,115,46,15); //Sabre
  145. AddStaticVehicleEx(475,2180.8999000,-1708.0000000,13.3000000,356.0000000,115,46,15); //Sabre
  146. AddStaticVehicleEx(475,2182.1001000,-1690.8000000,13.5000000,355.9950000,115,46,15); //Sabre
  147. AddStaticVehicleEx(475,2116.8999000,-1637.0000000,19.4000000,355.9950000,115,46,15); //Sabre
  148. AddStaticVehicleEx(475,2038.7000000,-1636.0000000,13.4000000,359.9950000,115,46,15); //Sabre
  149. AddStaticVehicleEx(545,2068.6001000,-1636.1000000,13.5000000,272.0000000,61,74,15); //Hustler
  150. AddStaticVehicleEx(545,2056.8000000,-1694.6000000,13.5000000,272.0000000,61,74,15); //Hustler
  151. AddStaticVehicleEx(545,2052.6001000,-1903.2000000,13.5000000,272.0000000,61,74,15); //Hustler
  152. AddStaticVehicleEx(545,2052.3999000,-1920.2000000,13.5000000,270.0000000,61,74,15); //Hustler
  153. AddStaticVehicleEx(545,2052.8000000,-1915.7000000,13.5000000,269.9950000,61,74,15); //Hustler
  154. AddStaticVehicleEx(545,2053.2000000,-1911.4000000,13.5000000,269.9950000,61,74,15); //Hustler
  155. AddStaticVehicleEx(545,2053.0000000,-1907.5000000,13.5000000,269.9950000,61,74,15); //Hustler
  156. AddStaticVehicleEx(496,2225.8000000,-1948.6000000,13.3000000,0.0000000,59,78,15); //Blista Compact
  157. AddStaticVehicleEx(496,2135.7000000,-1994.7000000,13.3000000,314.0000000,59,78,15); //Blista Compact
  158. // Text Draws
  159. // Community Website //
  160. CWEBS = TextDrawCreate(635.0,433.0,"~w~www.~b~your~w~-~b~website~w~.com");
  161. TextDrawUseBox(CWEBS,0);
  162. TextDrawAlignment(CWEBS,3);
  163. TextDrawBoxColor(CWEBS,0x000000FF);
  164. TextDrawFont(CWEBS, 3);
  165. TextDrawLetterSize(CWEBS, 0.37, 1.1);
  166. TextDrawBackgroundColor(CWEBS,0x000000FF);
  167. TextDrawColor(CWEBS,0xFF0000CC);
  168. TextDrawSetOutline(CWEBS,1);
  169. TextDrawSetShadow(CWEBS,1);
  170. // Community Name //
  171. CNAME = TextDrawCreate(635.0,10.0,"~b~YourName");
  172. TextDrawUseBox(CNAME,0);
  173. TextDrawAlignment(CNAME,3);
  174. TextDrawBoxColor(CNAME,0x000000FF);
  175. TextDrawFont(CNAME, 3);
  176. TextDrawLetterSize(CNAME, 0.40, 1.1);
  177. TextDrawBackgroundColor(CNAME,0x000000AA);
  178. TextDrawColor(CNAME,0xFF0000CC); //
  179. TextDrawSetOutline(CNAME,1); //
  180. TextDrawSetShadow(CNAME,1);
  181. return 1;
  182. }
  183.  
  184. public OnGameModeExit()
  185. {
  186. print("\n--------------------------------------");
  187. print(" LSGC Version 0.1 - Unloaded ");
  188. print("--------------------------------------\n");
  189. return 1;
  190. }
  191.  
  192. public OnPlayerRequestClass(playerid, classid)
  193. {
  194. ShowPlayerDialog(playerid, DIALOG_TEAM, DIALOG_STYLE_LIST,"{3BF5C6}LSGC - Team Select","{00FF00}Grove Street Famillies\n{A020F0}Front Yard Ballas","Choose","Close");
  195. return 1;
  196. }
  197.  
  198. public OnPlayerConnect(playerid)
  199. {
  200. new pName[MAX_PLAYER_NAME], str[500];
  201. GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
  202. format(str,sizeof str,"~g~Player ~r~%s ~g~has joined Los Santos Gang Chaos!",pName);
  203. TextDrawShowForPlayer(playerid, CWEBS);
  204. TextDrawShowForPlayer(playerid, CNAME);
  205. GameTextForAllOthers_(playerid, str, 5000, 4, 0x00C8FFFF);
  206. GameTextForPlayer_(playerid, "Welcome To ~g~Los ~y~Santos~b~ Gang~r~ Chaos~g~ !!!", 5000, 10, 0x00C8FFFF);
  207. return 1;
  208. }
  209.  
  210. public OnPlayerDisconnect(playerid, reason)
  211. {
  212. new pName[MAX_PLAYER_NAME], str[500];
  213. GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
  214.  
  215. switch(reason)
  216. {
  217. case 0: format(str, sizeof str, "~g~Player ~r~%s ~g~has left Los Santos Gang Chaos. (Crashed)", pName);
  218. case 1: format(str, sizeof str, "~g~Player ~r~%s ~g~has left Los Santos Gang Chaos. (Left)", pName);
  219. case 2: format(str, sizeof str, "~g~Player ~r~%s ~g~has left Los Santos Gang Chaos. (Kicked/Banned)", pName);
  220. }
  221.  
  222. GameTextForAllOthers_(playerid, str, 5000, 4, 0x00C8FFFF);
  223. return 1;
  224. }
  225.  
  226. public OnPlayerSpawn(playerid)
  227. {
  228. if(gTeam[playerid] == TEAM_GROVE)
  229. {
  230. new Random = random(sizeof(GroveRandom));
  231. SetPlayerPos(playerid, GroveRandom[Random][0], GroveRandom[Random][1], GroveRandom[Random][2]);
  232. SetPlayerFacingAngle(playerid, GroveRandom[Random][3]);
  233. SetPlayerSkin(playerid, GroveSkin[random(3)]);
  234. }
  235. if(gTeam[playerid] == TEAM_BALLA)
  236. {
  237. new Random = random(sizeof(BallaRandom));
  238. SetPlayerPos(playerid, BallaRandom[Random][0], BallaRandom[Random][1], BallaRandom[Random][2]);
  239. SetPlayerFacingAngle(playerid, BallaRandom[Random][3]);
  240. SetPlayerSkin(playerid, BallaSkin[random(3)]);
  241. }
  242. GivePlayerWeapon(playerid, 24, 750);
  243. GivePlayerWeapon(playerid, 27, 750);
  244. GivePlayerWeapon(playerid, 29, 750);
  245. GivePlayerWeapon(playerid, 31, 750);
  246. GivePlayerWeapon(playerid, 34, 750);
  247. return 1;
  248. }
  249.  
  250. public OnPlayerDeath(playerid, killerid, reason)
  251. {
  252. new kName[MAX_PLAYER_NAME], pName[MAX_PLAYER_NAME];
  253. GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
  254. GetPlayerName(killerid, kName, MAX_PLAYER_NAME);
  255. format(string, sizeof string, "{FF0000}[Killed]: {3BF5C6}You have killed {FFFFFF}%s {3BF5C6}and recieved {FFFFFF}250${3BF5C6}!", pName);
  256. SCM(killerid, 0xBFBFBFFF,string);
  257. GivePlayerMoney(killerid, 250);
  258. format(string, sizeof string, "{FF0000}[Killed]: {3BF5C6}You've been killed by {FFFFFF}%s {3BF5C6}and lost {FFFFFF}100${3BF5C6}!", kName);
  259. SCM(playerid, 0xBFBFBFFF,string);
  260. GivePlayerMoney(playerid, -100);
  261. return 1;
  262. }
  263.  
  264. public OnVehicleSpawn(vehicleid)
  265. {
  266. return 1;
  267. }
  268.  
  269. public OnVehicleDeath(vehicleid, killerid)
  270. {
  271. return 1;
  272. }
  273.  
  274. public OnPlayerText(playerid, text[])
  275. {
  276. if(text[0] == '@')
  277. {
  278. GetPlayerName(playerid, string, sizeof(string));
  279. format(string, sizeof(string), "{3BF5C6}[Team Chat] {9CD115}Player %s: %s", string, text[1]);
  280. printf("%s", string);
  281.  
  282. for(new i = 0; i < MAX_PLAYERS; i++)
  283. {
  284. if(IsPlayerConnected(i) && GetPlayerTeam(i) == GetPlayerTeam(playerid)) SendClientMessage(i, GetPlayerColor(playerid), string);
  285. }
  286. return 0;
  287. }
  288. if(gTeam[playerid] == TEAM_GROVE)
  289. {
  290. GetPlayerName(playerid, string, sizeof(string));
  291. new pText[500];
  292. format(pText, sizeof (pText), "{3BF5C6}[All Chat]{9CD115}Grove:{FFFFFF} %s", playerid, text);
  293. SendPlayerMessageToAll(playerid, pText);
  294. return 0;
  295. }
  296. if(gTeam[playerid] == TEAM_BALLA)
  297. {
  298. GetPlayerName(playerid, string, sizeof(string));
  299. new pText[500];
  300. format(pText, sizeof (pText), "{3BF5C6}[All Chat]{9CD115}Balla:{FFFFFF} %s", playerid, text);
  301. SendPlayerMessageToAll(playerid, pText);
  302. return 0;
  303. }
  304. return 0;
  305. }
  306.  
  307. public OnPlayerCommandText(playerid, cmdtext[])
  308. {
  309. if (strcmp("/mycommand", cmdtext, true, 10) == 0)
  310. {
  311. // Do something here
  312. return 1;
  313. }
  314. return 0;
  315. }
  316.  
  317. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  318. {
  319. return 1;
  320. }
  321.  
  322. public OnPlayerExitVehicle(playerid, vehicleid)
  323. {
  324. return 1;
  325. }
  326.  
  327. public OnPlayerStateChange(playerid, newstate, oldstate)
  328. {
  329. return 1;
  330. }
  331.  
  332. public OnPlayerEnterCheckpoint(playerid)
  333. {
  334. return 1;
  335. }
  336.  
  337. public OnPlayerLeaveCheckpoint(playerid)
  338. {
  339. return 1;
  340. }
  341.  
  342. public OnPlayerEnterRaceCheckpoint(playerid)
  343. {
  344. return 1;
  345. }
  346.  
  347. public OnPlayerLeaveRaceCheckpoint(playerid)
  348. {
  349. return 1;
  350. }
  351.  
  352. public OnRconCommand(cmd[])
  353. {
  354. return 1;
  355. }
  356.  
  357. public OnPlayerRequestSpawn(playerid)
  358. {
  359. return 1;
  360. }
  361.  
  362. public OnObjectMoved(objectid)
  363. {
  364. return 1;
  365. }
  366.  
  367. public OnPlayerObjectMoved(playerid, objectid)
  368. {
  369. return 1;
  370. }
  371.  
  372. public OnPlayerPickUpPickup(playerid, pickupid)
  373. {
  374. return 1;
  375. }
  376.  
  377. public OnVehicleMod(playerid, vehicleid, componentid)
  378. {
  379. return 1;
  380. }
  381.  
  382. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  383. {
  384. return 1;
  385. }
  386.  
  387. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  388. {
  389. return 1;
  390. }
  391.  
  392. public OnPlayerSelectedMenuRow(playerid, row)
  393. {
  394. return 1;
  395. }
  396.  
  397. public OnPlayerExitedMenu(playerid)
  398. {
  399. return 1;
  400. }
  401.  
  402. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  403. {
  404. return 1;
  405. }
  406.  
  407. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  408. {
  409. return 1;
  410. }
  411.  
  412. public OnRconLoginAttempt(ip[], password[], success)
  413. {
  414. return 1;
  415. }
  416.  
  417. public OnPlayerUpdate(playerid)
  418. {
  419. return 1;
  420. }
  421.  
  422. public OnPlayerStreamIn(playerid, forplayerid)
  423. {
  424. return 1;
  425. }
  426.  
  427. public OnPlayerStreamOut(playerid, forplayerid)
  428. {
  429. return 1;
  430. }
  431.  
  432. public OnVehicleStreamIn(vehicleid, forplayerid)
  433. {
  434. return 1;
  435. }
  436.  
  437. public OnVehicleStreamOut(vehicleid, forplayerid)
  438. {
  439. return 1;
  440. }
  441.  
  442. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  443. {
  444. switch( dialogid )
  445. {
  446. case DIALOG_CMDS:
  447. {
  448. if(response)
  449. {
  450. if(listitem == 0)
  451. {
  452. format(string, sizeof(string), "/rules | /buygun | /help | /commands | /cmds | /credits | /updates\n More Coming Soon!");
  453. ShowPlayerDialog(playerid, DIALOG_CMDS1, DIALOG_STYLE_MSGBOX,"{3BF5C6}General Commands",string,"Done","Close");
  454. }
  455. if(listitem == 1)
  456. {
  457. format(string, sizeof(string), "Chat with Team use '@' and Text [Example: @Hello, I'am new here]\n More Coming Soon!");
  458. ShowPlayerDialog(playerid, DIALOG_CMDS2, DIALOG_STYLE_MSGBOX,"{3BF5C6}Chat Commands",string,"Done","Close");
  459. }
  460. if(listitem == 2)
  461. {
  462. format(string, sizeof(string), "More Coming Soon!");
  463. ShowPlayerDialog(playerid, DIALOG_CMDS3, DIALOG_STYLE_MSGBOX,"{3BF5C6}Account Commands",string,"Done","Close");
  464. }
  465. if(listitem == 3)
  466. {
  467. format(string, sizeof(string), "Coming Soon!");
  468. ShowPlayerDialog(playerid, DIALOG_CMDS4, DIALOG_STYLE_MSGBOX,"{3BF5C6}V.I.P Commands",string,"Done","Close");
  469. }
  470. if(listitem == 4)
  471. {
  472. format(string, sizeof(string), "Coming Soon!");
  473. ShowPlayerDialog(playerid, DIALOG_CMDS5, DIALOG_STYLE_MSGBOX,"{3BF5C6}Administrator Commands",string,"Done","Close");
  474. }
  475. }
  476. }
  477. case DIALOG_TEAM:
  478. {
  479. if(response)
  480. {
  481. if(listitem == 0)
  482. {
  483. SpawnPlayer(playerid);
  484. SetPlayerSkin(playerid, GroveSkin[random(3)]);
  485. SCM(playerid, -1, "{DB881A}[Team]: {3BF5C6}You've joined Grove Street Team. Welcome !");
  486. AddPlayerClass(1, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  487. gTeam[playerid] = TEAM_GROVE;
  488. SetPlayerColor(playerid,0x79D130FF);
  489. new Random = random(sizeof(GroveRandom));
  490. SetPlayerPos(playerid, GroveRandom[Random][0], GroveRandom[Random][1], GroveRandom[Random][2]);
  491. SetPlayerFacingAngle(playerid, GroveRandom[Random][3]);
  492. }
  493. if(listitem == 1)
  494. {
  495. SpawnPlayer(playerid);
  496. SetPlayerSkin(playerid, BallaSkin[random(3)]);
  497. SCM(playerid, -1, "{DB881A}[Team]: {3BF5C6}You've joined Front Yard Ballas Team. Welcome !");
  498. AddPlayerClass(1, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  499. gTeam[playerid] = TEAM_BALLA;
  500. SetPlayerColor(playerid,0xD12CB3FF);
  501. new Random = random(sizeof(BallaRandom));
  502. SetPlayerPos(playerid, BallaRandom[Random][0], BallaRandom[Random][1], BallaRandom[Random][2]);
  503. SetPlayerFacingAngle(playerid, BallaRandom[Random][3]);
  504. }
  505. }
  506. }
  507. case DIALOG_SHOP:
  508. {
  509. if(response)
  510. {
  511. if(listitem == 0)
  512. {
  513. if(GetPlayerMoney(playerid) <1500) return SendClientMessage(playerid,-1, "{3BF5C6}[Shop]: {FFFFFF}You don't have 1500$.");
  514. SendClientMessage(playerid,-1,"{3BF5C6}[Shop]: {FFFFFF}Thank you for buying Grenade for 1500$(3 Ammo).");
  515. GivePlayerWeapon(playerid,16,3);
  516. GivePlayerMoney(playerid,-1500);
  517. }
  518. if(listitem == 1)
  519. {
  520. if(GetPlayerMoney(playerid) <2000) return SendClientMessage(playerid,-1, "{3BF5C6}[Shop]: {FFFFFF}You don't have 2000$.");
  521. SendClientMessage(playerid,-1,"{3BF5C6}[Shop]: {FFFFFF}Thank you for buying 9mm for 2000$(75 Ammo).");
  522. GivePlayerWeapon(playerid,22,75);
  523. GivePlayerMoney(playerid,-2000);
  524. }
  525. if(listitem == 2)
  526. {
  527. if(GetPlayerMoney(playerid) <5000) return SendClientMessage(playerid,-1, "{3BF5C6}[Shop]: {FFFFFF}You don't have 5000$.");
  528. SendClientMessage(playerid,-1,"{3BF5C6}[Shop]: {FFFFFF}Thank you for buying Deagle for 5000$(50 Ammo).");
  529. GivePlayerWeapon(playerid,24,50);
  530. GivePlayerMoney(playerid,-5000);
  531. }
  532. if(listitem == 3)
  533. {
  534. if(GetPlayerMoney(playerid) <5000) return SendClientMessage(playerid,-1, "{3BF5C6}[Shop]: {FFFFFF}You don't have 5000$.");
  535. SendClientMessage(playerid,-1,"{3BF5C6}[Shop]: {FFFFFF}Thank you for buying Shotgun for 5000$(25 Ammo).");
  536. GivePlayerWeapon(playerid,25,400);
  537. GivePlayerMoney(playerid,-5000);
  538. }
  539. if(listitem == 4)
  540. {
  541. if(GetPlayerMoney(playerid) <10000) return SendClientMessage(playerid,-1, "{3BF5C6}[Shop]: {FFFFFF}You don't have 10000$.");
  542. SendClientMessage(playerid,-1,"{3BF5C6}[Shop]: {FFFFFF}Thank you for buying Combat Shotgun for 10000$(50 Ammo).");
  543. GivePlayerWeapon(playerid,27,50);
  544. GivePlayerMoney(playerid,-10000);
  545. }
  546. if(listitem == 5)
  547. {
  548. if(GetPlayerMoney(playerid) <3500) return SendClientMessage(playerid,-1, "{3BF5C6}[Shop]: {FFFFFF}You don't have 3500$.");
  549. SendClientMessage(playerid,-1,"{3BF5C6}[Shop]: {FFFFFF}Thank you for buying MP5 for 3500$(150 Ammo).");
  550. GivePlayerWeapon(playerid,29,150);
  551. GivePlayerMoney(playerid,-3500);
  552. }
  553. if(listitem == 6)
  554. {
  555. if(GetPlayerMoney(playerid) <9500) return SendClientMessage(playerid,-1, "{3BF5C6}[Shop]: {FFFFFF}You don't have 9500$.");
  556. SendClientMessage(playerid,-1,"{3BF5C6}[Shop]: {FFFFFF}Thank you for buying AK-47 for 9500$(150 Ammo).");
  557. GivePlayerWeapon(playerid,30,150);
  558. GivePlayerMoney(playerid,-9500);
  559. }
  560. if(listitem == 7)
  561. {
  562. if(GetPlayerMoney(playerid) <10000) return SendClientMessage(playerid,-1, "{3BF5C6}[Shop]: {FFFFFF}You don't have 10000$.");
  563. SendClientMessage(playerid,-1,"{3BF5C6}[Shop]: {FFFFFF}Thank you for buying M4 for 10000$(150 Ammo).");
  564. GivePlayerWeapon(playerid,31,150);
  565. GivePlayerMoney(playerid,-10000);
  566. }
  567. }
  568. }
  569. }
  570. return 1;
  571. }
  572.  
  573. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  574. {
  575. return 1;
  576. }
  577. // Server Commands //
  578. CMD:commands(playerid, params[])
  579. {
  580. format(string, sizeof(string), "{BA9500}General Commands\nChat Commands\nAccount Commands\nVIP Commands\nAdmin Commands");
  581. ShowPlayerDialog(playerid, DIALOG_CMDS, DIALOG_STYLE_LIST,"{3BF5C6}LSGC - Commands",string,"Choose","Leave");
  582. return 1;
  583. }
  584.  
  585. CMD:cmds(playerid, params[])
  586. {
  587. format(string, sizeof(string), "{BA9500}General Commands\nChat Commands\nAccount Commands\nVIP Commands\nAdmin Commands");
  588. ShowPlayerDialog(playerid, DIALOG_CMDS, DIALOG_STYLE_LIST,"{3BF5C6}LSGC - Commands",string,"Choose","Leave");
  589. return 1;
  590. }
  591.  
  592. CMD:rules(playerid, params[])
  593. {
  594. format(string, sizeof(string), "There are 10 rules in this server, please follow all the rules if you're don't want to get punished\n1. Don't Insult Players/Admins/VIPs\n2. Respect Admins/Players/VIPs\n3. Don't Adverstise Server Here\n4. Don't C-Bug\n5. Don't Cheat\n6. Don't use any illegal program\n7. Don't kill team mate\n8. Helikill is not allowed\n9. Car Ram is not allowed\n10. Don't ask for Scores/Cash");
  595. ShowPlayerDialog(playerid, DIALOG_RULES, DIALOG_STYLE_MSGBOX,"{3BF5C6}LSGC - Rules",string,"Done","Leave");
  596. return 1;
  597. }
  598.  
  599. CMD:updates(playerid, params[])
  600. {
  601. format(string, sizeof(string), "No Updates/n Updates Coming Soon, Suggest your Suggestion on our forum : www.coming-soon.com");
  602. ShowPlayerDialog(playerid, DIALOG_UPDATES, DIALOG_STYLE_MSGBOX,"{3BF5C6}LSGC - Updates",string,"Done","Leave");
  603. return 1;
  604. }
  605.  
  606. CMD:credits(playerid, params[])
  607. {
  608. format(string, sizeof(string), "Server Owner - Cassanova\nGamemode Scripter - Cassanova\nSecond Scripter - None\nMapper - None\nSecond Mapper - None\nForum Creator - Cassanova\nZCMD - ZeeX\nServer Programs - SAMP Community\nWeapon Saving - iFarbod\nGameTexts - iFarbod");
  609. ShowPlayerDialog(playerid, DIALOG_CREDITS, DIALOG_STYLE_MSGBOX,"{3BF5C6}LSGC - Credits",string,"Done","Leave");
  610. return 1;
  611. }
  612.  
  613. CMD:help(playerid, params[])
  614. {
  615. format(string, sizeof(string), "This is a Team Deathmatch Gamemode\nTDM mean that you can't kill your teammate, you must kill other teams not your teammate\nAfter you killed other teams you get a reward : 1 Scores and 250$ Cash\nPlease read the server rules /rules\nThank You!");
  616. ShowPlayerDialog(playerid, DIALOG_HELP, DIALOG_STYLE_MSGBOX,"{3BF5C6}LSGC - Help",string,"Done","Leave");
  617. return 1;
  618. }
  619.  
  620. CMD:buygun(playerid, params[])
  621. {
  622. ShowPlayerDialog(playerid, DIALOG_SHOP, DIALOG_STYLE_LIST,"{3BF5C6}LSGC - Shop","{BA9500}Grenade | Price : 1.500$\n{BA9500}9mm | Price : 2.000$\n{BA9500}Desert Eagle | Price : 5.000$\n{BA9500}Shotgun | Price : 5.000$\n{BA9500}Combat Shotgun | Price : 10.000$\n{BA9500}MP5 | Price : 3.500$\n{BA9500}AK-47 | Price : 9.500$\n{BA9500}M4 | Price : 10.000$","Buy","Quit");
  623. return 1;
  624. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement