Advertisement
Guest User

Untitled

a guest
Dec 27th, 2011
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.55 KB | None | 0 0
  1. // This is a comment
  2. // uncomment the line below if you want to write a filterscript
  3. //
  4.  
  5. #define FILTERSCRIPT
  6. #include <a_samp>
  7. #include <sscanf2>
  8. #include <streamer>
  9.  
  10. #define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
  11.  
  12. forward OnPlayerLeaveDynamicCP(playerid, checkpointid);
  13. forward OnPlayerEnterDynamicCP(playerid, checkpointid);
  14. forward Timer();
  15. forward StartBase(playerid, baseid);
  16. forward SetPlayerTeamFromClass(playerid, classid);
  17. forward SetPlayerToTeamColor(playerid);
  18. new gTeam[MAX_PLAYERS];
  19. new Text:gMyText;
  20. new Text:gMyText1;
  21. //new Menu:MENUID;
  22. new baseid;
  23. new Checkpoint[MAX_PLAYERS];
  24.  
  25. #define theirteam
  26. #define TEAM_GANG 0
  27. #define TEAM_LSPD 1
  28.  
  29. #define COLOR_GREEN 0x008000FF
  30. #define COLOR_BLUE 0x0000FFFF
  31. #define COLOR_RED 0xAA3333AA
  32. #define COLOR_BLACK 0x00000000
  33. #define DIALOGID 3300
  34.  
  35.  
  36. #if defined FILTERSCRIPT
  37.  
  38.  
  39. public OnFilterScriptInit()
  40. {
  41. print("\n--------------------------------------");
  42. print(" Blank Filterscript by your name here");
  43. print("--------------------------------------\n");
  44. return 1;
  45. }
  46.  
  47. public OnFilterScriptExit()
  48. {
  49. return 1;
  50. }
  51.  
  52. #else
  53.  
  54. main()
  55. {
  56. print("\n----------------------------------");
  57. print(" Blank Gamemode by your name here");
  58. print("----------------------------------\n");
  59. }
  60.  
  61. #endif
  62.  
  63. public OnGameModeInit()
  64. {
  65. // Don't use these lines if it's a filterscript
  66. SetGameModeText("A/D");
  67. SetTeamCount(2);
  68. UsePlayerPedAnims();
  69. gMyText = TextDrawCreate(320, 280, "Welcome");
  70. TextDrawColor(gMyText, COLOR_RED);
  71. TextDrawFont(gMyText, 1);
  72. TextDrawSetOutline(gMyText,1);
  73. TextDrawSetShadow(gMyText, 0);
  74. TextDrawLetterSize(gMyText, 1.0, 2.8);
  75. TextDrawUseBox(gMyText, 1);
  76. TextDrawBoxColor(gMyText, COLOR_BLACK);
  77. TextDrawSetOutline(gMyText, 1);
  78. TextDrawAlignment(gMyText, 2);
  79. AddPlayerClass(45,-183.5194,1090.8673,19.7422,52.6484,0,0,0,0,0,0);
  80. AddPlayerClass(150,1607.0870,1815.6981,10.8203,193.8336,0,0,0,0,0,0);
  81. return 1;
  82. }
  83.  
  84. public OnGameModeExit()
  85. {
  86. return 1;
  87. }
  88.  
  89. public OnPlayerRequestClass(playerid, classid)
  90. {
  91. SetPlayerTeamFromClass(playerid, classid);
  92. SetPlayerPos(playerid, -193.1467,1093.5514,19.5961);
  93. SetPlayerFacingAngle(playerid, 359.1723);
  94. SetPlayerCameraPos(playerid, -192.9023,1101.4889,19.5938);
  95. SetPlayerCameraLookAt(playerid, -193.1467,1093.5514,19.5961);
  96. return 1;
  97. }
  98.  
  99. SetPlayerTeamFromClass(playerid, classid)
  100. {
  101. if(classid == 0)
  102. {
  103. gTeam[playerid] = TEAM_GANG;
  104.  
  105. return 1;
  106. }
  107. else if(classid == 1)
  108. {
  109. gTeam[playerid] = TEAM_LSPD;
  110. return 1;
  111. }
  112. return 1;
  113. }
  114.  
  115. public OnPlayerConnect(playerid)
  116. {
  117.  
  118. new string[256];
  119. new name[MAX_PLAYER_NAME];
  120. new plrIP[16];
  121. TextDrawShowForAll(gMyText);
  122. GetPlayerName(playerid, name, sizeof(name));
  123. GetPlayerIp(playerid, plrIP, sizeof(plrIP));
  124.  
  125. format(string, sizeof(string), "%s has joined the server. (IP: %s)", name, plrIP);
  126. SendClientMessageToAll(0xC4C4C4FF, string);
  127.  
  128. return 1;
  129. }
  130. public OnPlayerDisconnect(playerid, reason)
  131. {
  132. new
  133. string[64],
  134. name[MAX_PLAYER_NAME];
  135. GetPlayerName(playerid,name,MAX_PLAYER_NAME);
  136. switch(reason)
  137. {
  138. case 0: format(string,sizeof string,"%s left the server. (Timed out)",name);
  139. case 1: format(string,sizeof string,"%s left the server. (Leaving)",name);
  140. case 2: format(string,sizeof string,"%s left the server. (Kicked/Banned)",name);
  141. }
  142. SendClientMessageToAll(0xFFFFFFAA,string);
  143. return 1;
  144. }
  145.  
  146. public OnPlayerSpawn(playerid)
  147. {
  148. GivePlayerWeapon(playerid, 24, 9999);
  149. SetPlayerArmour(playerid, 100.0);
  150. TextDrawDestroy(gMyText);
  151. SetPlayerToTeamColor(playerid);
  152. new
  153. string[120],
  154. pName[MAX_PLAYER_NAME];
  155. if(gTeam[playerid] == TEAM_GANG)
  156. {
  157. SetPlayerInterior(playerid, 0);
  158. SetPlayerPos(playerid, -183.5194,1090.8673,19.7422);
  159. GetPlayerName(playerid, pName, sizeof(pName));
  160. format(string, sizeof string,"%s Has spawned as Gang.", pName);
  161. SendClientMessageToAll(COLOR_GREEN, string);
  162. return 1;
  163. }
  164. else if(gTeam[playerid] == TEAM_LSPD)
  165. {
  166. SetPlayerInterior(playerid, 0);
  167. SetPlayerPos(playerid, -183.5194,1090.8673,19.7422);
  168. GetPlayerName(playerid, pName, sizeof(pName));
  169. format(string, sizeof string,"%s Has spawned as LSPD.", pName);
  170. SendClientMessageToAll(COLOR_BLUE, string);
  171. return 1;
  172. }
  173. return 1;
  174. }
  175.  
  176. SetPlayerToTeamColor(playerid)
  177. {
  178. if (gTeam[playerid] == TEAM_GANG)
  179. {
  180. SetPlayerColor(playerid, COLOR_GREEN);
  181. }
  182. else if(gTeam[playerid] == TEAM_LSPD)
  183. {
  184. SetPlayerColor(playerid, COLOR_BLUE);
  185. }
  186. return 1;
  187. }
  188.  
  189.  
  190.  
  191. public OnPlayerDeath(playerid, killerid, reason)
  192. {
  193. SendDeathMessage(killerid, playerid, reason);
  194. return 1;
  195. }
  196.  
  197. public OnVehicleSpawn(vehicleid)
  198. {
  199. return 1;
  200. }
  201.  
  202. public OnVehicleDeath(vehicleid, killerid)
  203. {
  204. return 1;
  205. }
  206.  
  207. public OnPlayerText(playerid, text[])
  208. {
  209. return 1;
  210. }
  211.  
  212. public OnPlayerCommandText(playerid, cmdtext[])
  213. {
  214. dcmd(givecash, 8, cmdtext);
  215. dcmd(kill, 4, cmdtext);
  216. dcmd(switchteam, 10, cmdtext);
  217. dcmd(heal, 4, cmdtext);
  218. dcmd(lobby, 5, cmdtext);
  219. dcmd(dmexit, 6, cmdtext);
  220. dcmd(deagle, 6, cmdtext);
  221. dcmd(setteam, 7, cmdtext);
  222. dcmd(gunmenu, 7, cmdtext);
  223. dcmd(startbase, 9, cmdtext);
  224. dcmd(end, 3, cmdtext);
  225. return 0;
  226. }
  227.  
  228. dcmd_givecash(playerid, params[])
  229. {
  230. new
  231. string[120],
  232. giveplayerid,
  233. amount,
  234. pName[MAX_PLAYER_NAME],
  235. playername[MAX_PLAYER_NAME];
  236. if (sscanf(params, "id", giveplayerid, amount)) SendClientMessage(playerid, 0xFF0000AA, "Usage: /givecash [playerid/partname] [amount]");
  237. else if (giveplayerid == INVALID_PLAYER_ID) SendClientMessage(playerid, 0xFF0000AA, "Player not found");
  238. else
  239. {
  240. GivePlayerMoney(giveplayerid, amount);
  241. GetPlayerName(playerid, pName, sizeof(pName));
  242. GetPlayerName(giveplayerid, playername, sizeof(playername));
  243. format(string, sizeof(string), "%s has sent %s $%d ", pName, playername, amount);
  244. SendClientMessageToAll(0x00FF00AA, string);
  245. SendClientMessage(giveplayerid, 0x00FF00AA, "Money received");
  246. }
  247. return 1;
  248. }
  249. dcmd_switchteam(playerid, params[])
  250. {
  251. #pragma unused params
  252. ShowPlayerDialog(playerid, DIALOGID+1, DIALOG_STYLE_LIST, "Switch Menu", "{05F715}GANG\n{2908FF}LSPD", "Select", "Cancel");
  253. return 1;
  254. }
  255. dcmd_startbase(playerid, params[])
  256. {
  257. new baseid;
  258. if (sscanf(params, "i", baseid)) SendClientMessage(playerid, 0xFF0000AA, "Usage: /startbase [Base ID]");
  259. SetTimer("StartBase", 1, false);
  260. Checkpoint[1] = CreateDynamicCP(-2412.6428,-584.3829,132.6484, 2, 1, -1, -1, 100);
  261. return 1;
  262. }
  263. dcmd_end(playerid, params[])
  264. {
  265. #pragma unused params
  266. for(new i = 0; i < MAX_PLAYERS; i++){
  267. SetPlayerPos(playerid, -183.5194,1090.8673,19.7422);
  268. SetPlayerInterior(playerid, 0);
  269. ResetPlayerWeapons(playerid);
  270. }
  271. return 1;
  272. }
  273. dcmd_kill(playerid, params[])
  274. {
  275. new
  276. id,
  277. reason[64], string[120];
  278. if (sscanf(params, "iz", id, reason)) SendClientMessage(playerid, 0xFF0000AA, "Usage: /kill [playerid/partname] [reason]");
  279. else if (!IsPlayerConnected(id)) SendClientMessage(playerid, 0xFF0000AA, "Invalid id");
  280.  
  281. else
  282. {
  283. SetPlayerHealth(id, 0);
  284. format(string, sizeof(string), "You have been killed (Reason: %s)", reason);
  285. SendClientMessage(id, 0xFF0000AA, string);
  286. SendClientMessage(playerid, 0xFF0000AA, "Player has been killed");
  287. }
  288. return 1;
  289. }
  290. dcmd_setteam(playerid, params[])
  291. {
  292.  
  293. new id, teamid, string[120];
  294.  
  295. if (sscanf(params, "ui", id, teamid)) SendClientMessage(playerid, 0xFF0000AA, "Usage: /setteam [playerid] [teamid(0/gang)(1/LSPD)]");
  296. // else if (!IsPlayerConnected(id)) SendClientMessage(playerid, 0xFF0000AA, "Invalid id");
  297. // if you use the u param in sscanf it checks if their connected
  298.  
  299. else
  300. {
  301. new team = GetPlayerTeam(id);
  302. if(teamid == 0) {
  303. if(team == TEAM_LSPD) {
  304. SetPlayerTeam(id, TEAM_GANG);
  305. SetPlayerSkin(id, 45);
  306. }
  307. else if(GetPlayerTeam(id) == TEAM_GANG) SendClientMessage(playerid, COLOR_RED, "Player is already in that team!");
  308. }
  309. else if (teamid == 1) {
  310. if(team == TEAM_GANG) {
  311. SetPlayerTeam(id, TEAM_LSPD);
  312. SetPlayerSkin(id, 150);
  313. }
  314. else if(team == TEAM_LSPD) SendClientMessage(playerid, COLOR_RED, "Player is already in that team!");
  315. }
  316. else SendClientMessage(playerid, COLOR_RED, "Invalid ID! ID must be 0 or 1");
  317. gTeam[id] = teamid;
  318. format(string, sizeof(string), "You have been switched to team %i", gTeam[playerid]);
  319. SendClientMessage(id, 0xFF0000AA, string);
  320. SendClientMessage(playerid, 0xFF0000AA, "Player has been switched");
  321. }
  322. return 1;
  323. }
  324. dcmd_gunmenu(playerid, params[])
  325. {
  326. new id;
  327. if (sscanf(params, "i", id)) SendClientMessage(playerid, 0xFF0000AA, "Usage: /gunmenu [playerid]");
  328. else if (!IsPlayerConnected(id)) SendClientMessage(playerid, 0xFF0000AA, "Invalid id");
  329.  
  330. else
  331. {
  332. ShowPlayerDialog(id, DIALOGID, DIALOG_STYLE_LIST, "Gunmenu", "{39D600}Deagle & {001DD6}Shotgun\n{39D600}Deagle & {001DD6}Ak47\n{39D600}Deagle & {001DD6}Rifle\n{39D600}Spaz & {001DD6}Silencer\n{39D600}M4 & {001DD6}Shotgun\n{39D600}M4 & {001DD6}MP5\n{39D600}Sniper & {001DD6}Shotgun\n{39D600}Sniper & {001DD6}MP5\n{39D600}Minigun & {001DD6}Shotgun", "Select", "Cancel");
  333. return 1;
  334. }
  335. return 1;
  336. }
  337. dcmd_heal(playerid, params[])
  338. {
  339. #pragma unused params
  340. SetPlayerHealth(playerid, 100);
  341. SetPlayerArmour(playerid, 100.0);
  342. SendClientMessage(playerid, COLOR_RED, "You have healed yourself!");
  343. return 1;
  344. }
  345. dcmd_lobby(playerid, params[])
  346. {
  347. #pragma unused params
  348. SetPlayerPos(playerid, -183.5194,1090.8673,19.7422);
  349. SendClientMessage(playerid, COLOR_RED, "You have teleported back to Lobby!");
  350. return 1;
  351. }
  352. dcmd_dmexit(playerid, params[])
  353. {
  354. #pragma unused params
  355. SetPlayerPos(playerid, -183.5194,1090.8673,19.7422);
  356. SendClientMessage(playerid, COLOR_RED, "You have exited the DM.");
  357. return 1;
  358. }
  359. dcmd_deagle(playerid, params[])
  360. {
  361. #pragma unused params
  362. new string[70], pName[MAX_PLAYER_NAME];
  363. GetPlayerName(playerid, pName, sizeof(pName));
  364. SetPlayerPos(playerid, 109.8002,1036.5322,13.6094);
  365. SetPlayerArmour(playerid, 100.0);
  366. SetPlayerHealth(playerid, 100);
  367. GivePlayerWeapon(playerid, 24, 9999);
  368. format(string, sizeof(string), "%s has entered the Deagle Zone, type /deagle to enter!", pName);
  369. SendClientMessageToAll(COLOR_RED, string);
  370. SendClientMessage(playerid, COLOR_RED, "You have entered the Deagle zone.");
  371. return 1;
  372. }
  373. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  374. {
  375. return 1;
  376. }
  377.  
  378. public OnPlayerExitVehicle(playerid, vehicleid)
  379. {
  380. return 1;
  381. }
  382.  
  383. public OnPlayerStateChange(playerid, newstate, oldstate)
  384. {
  385. return 1;
  386. }
  387.  
  388. public OnPlayerEnterCheckpoint(playerid)
  389. {
  390. return 1;
  391. }
  392. public OnPlayerEnterDynamicCP(playerid, checkpointid)
  393. {
  394. if(checkpointid == Checkpoint[1]){
  395. if(gTeam[playerid] == TEAM_GANG){
  396. SetTimer("Timer", 1, false);
  397. }
  398. }
  399. return 1;
  400. }
  401. public Timer()
  402. {
  403.  
  404. new string[50];
  405. for(new i = 30; i >= 0; i--){
  406. format(string, sizeof(string), "CP countdown: %i", i);
  407. gMyText1 = TextDrawCreate(250,420,string);
  408. TextDrawSetShadow(gMyText1, 0);
  409. TextDrawFont(gMyText1, 1);
  410. TextDrawSetString(gMyText1, string);
  411. TextDrawShowForAll(gMyText1);
  412. }
  413. return 1;
  414. }
  415. public OnPlayerLeaveDynamicCP(playerid, checkpointid)
  416. {
  417. if(checkpointid == Checkpoint[1]){
  418. TextDrawDestroy(gMyText1);
  419. }
  420. }
  421. public StartBase(playerid, baseid)
  422. {
  423. new baseid;
  424. new bvariable, string[50];
  425. baseid = bvariable;
  426. format(string, sizeof(string), "Base '%i' has been started.", bvariable);
  427. SendClientMessageToAll(COLOR_RED, string);
  428. ResetPlayerWeapons(playerid);
  429. switch(baseid) {
  430. case 0:
  431. {
  432. if(gTeam[playerid] == TEAM_GANG)
  433. {
  434. SetPlayerVirtualWorld(playerid, 1);
  435. SetPlayerPos(playerid, -2393.7087,-610.6938,132.6484);
  436. ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, "Gunmenu", "{39D600}Deagle & {001DD6}Shotgun\n{39D600}Deagle & {001DD6}Ak47\n{39D600}Deagle & {001DD6}Rifle\n{39D600}Spaz & {001DD6}Silencer\n{39D600}M4 & {001DD6}Shotgun\n{39D600}M4 & {001DD6}MP5\n{39D600}Sniper & {001DD6}Shotgun\n{39D600}Sniper & {001DD6}MP5\n{39D600}Minigun & {001DD6}Shotgun", "Select", "Cancel");
  437. }
  438. else if (gTeam[playerid] == TEAM_LSPD)
  439. {
  440. SetPlayerVirtualWorld(playerid, 1);
  441. SetPlayerPos(playerid, -2518.9707,-615.4091,132.5625);
  442. ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, "Gunmenu", "{39D600}Deagle & {001DD6}Shotgun\n{39D600}Deagle & {001DD6}Ak47\n{39D600}Deagle & {001DD6}Rifle\n{39D600}Spaz & {001DD6}Silencer\n{39D600}M4 & {001DD6}Shotgun\n{39D600}M4 & {001DD6}MP5\n{39D600}Sniper & {001DD6}Shotgun\n{39D600}Sniper & {001DD6}MP5\n{39D600}Minigun & {001DD6}Shotgun", "Select", "Cancel");
  443. }
  444. }
  445. }
  446. return 1;
  447. }
  448.  
  449. public OnPlayerLeaveCheckpoint(playerid)
  450. {
  451. return 1;
  452. }
  453.  
  454. public OnPlayerEnterRaceCheckpoint(playerid)
  455. {
  456. return 1;
  457. }
  458.  
  459. public OnPlayerLeaveRaceCheckpoint(playerid)
  460. {
  461. return 1;
  462. }
  463.  
  464. public OnRconCommand(cmd[])
  465. {
  466. return 1;
  467. }
  468.  
  469. public OnPlayerRequestSpawn(playerid)
  470. {
  471. return 1;
  472. }
  473.  
  474. public OnObjectMoved(objectid)
  475. {
  476. return 1;
  477. }
  478.  
  479. public OnPlayerObjectMoved(playerid, objectid)
  480. {
  481. return 1;
  482. }
  483.  
  484. public OnPlayerPickUpPickup(playerid, pickupid)
  485. {
  486. return 1;
  487. }
  488.  
  489. public OnVehicleMod(playerid, vehicleid, componentid)
  490. {
  491. return 1;
  492. }
  493.  
  494. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  495. {
  496. return 1;
  497. }
  498.  
  499. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  500. {
  501. return 1;
  502. }
  503.  
  504. public OnPlayerSelectedMenuRow(playerid, row)
  505. {
  506. return 1;
  507. }
  508.  
  509. public OnPlayerExitedMenu(playerid)
  510. {
  511. return 1;
  512. }
  513.  
  514. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  515. {
  516. return 1;
  517. }
  518.  
  519. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  520. {
  521. return 1;
  522. }
  523.  
  524. public OnRconLoginAttempt(ip[], password[], success)
  525. {
  526. return 1;
  527. }
  528.  
  529. public OnPlayerUpdate(playerid)
  530. {
  531. return 1;
  532. }
  533.  
  534. public OnPlayerStreamIn(playerid, forplayerid)
  535. {
  536. return 1;
  537. }
  538.  
  539. public OnPlayerStreamOut(playerid, forplayerid)
  540. {
  541. return 1;
  542. }
  543.  
  544. public OnVehicleStreamIn(vehicleid, forplayerid)
  545. {
  546. return 1;
  547. }
  548.  
  549. public OnVehicleStreamOut(vehicleid, forplayerid)
  550. {
  551. return 1;
  552. }
  553.  
  554. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  555. {
  556. if(dialogid == DIALOGID)
  557. {
  558. if(response)
  559. {
  560. if(listitem == 0)
  561. {
  562. GivePlayerWeapon(playerid, 24, 9999);
  563. GivePlayerWeapon(playerid, 25, 9999);
  564. SendClientMessage(playerid, COLOR_RED, "You choose Deagle & Shotgun.");
  565. }
  566. else if(listitem == 1)
  567. {
  568. GivePlayerWeapon(playerid, 24, 9999);
  569. GivePlayerWeapon(playerid, 30, 9999);
  570. SendClientMessage(playerid, COLOR_RED, "You choose Deagle & Ak47.");
  571. }
  572. else if(listitem == 2)
  573. {
  574. GivePlayerWeapon(playerid, 24, 9999);
  575. GivePlayerWeapon(playerid, 33, 9999);
  576. SendClientMessage(playerid, COLOR_RED, "You choose Deagle & Rifle.");
  577. }
  578. else if(listitem == 3)
  579. {
  580. GivePlayerWeapon(playerid, 27, 9999);
  581. GivePlayerWeapon(playerid, 23, 9999);
  582. SendClientMessage(playerid, COLOR_RED, "You choose Spaz-12 & Silencer.");
  583. }
  584. else if(listitem == 4)
  585. {
  586. GivePlayerWeapon(playerid, 31, 9999);
  587. GivePlayerWeapon(playerid, 25, 9999);
  588. SendClientMessage(playerid, COLOR_RED, "You choose M4 & Shotgun.");
  589. }
  590. else if(listitem == 5)
  591. {
  592. GivePlayerWeapon(playerid, 31, 9999);
  593. GivePlayerWeapon(playerid, 29, 9999);
  594. SendClientMessage(playerid, COLOR_RED, "You choose M4 & MP5.");
  595. }
  596. else if(listitem == 6)
  597. {
  598. GivePlayerWeapon(playerid, 34, 9999);
  599. GivePlayerWeapon(playerid, 25, 9999);
  600. SendClientMessage(playerid, COLOR_RED, "You choose Sniper & Shotgun.");
  601. }
  602. else if(listitem == 7)
  603. {
  604. GivePlayerWeapon(playerid, 34, 9999);
  605. GivePlayerWeapon(playerid, 29, 9999);
  606. SendClientMessage(playerid, COLOR_RED, "You choose Sniper & MP5.");
  607. }
  608. else if(listitem == 8)
  609. {
  610. GivePlayerWeapon(playerid, 38, 9999);
  611. GivePlayerWeapon(playerid, 25, 9999);
  612. SendClientMessage(playerid, COLOR_RED, "You choose Minigun & Shotgun.");
  613. }
  614. }
  615. return 1;
  616. }
  617. if(dialogid == DIALOGID+1)
  618. {
  619. if(response)
  620. {
  621. if(listitem == 0)
  622. {
  623. SetPlayerTeam(playerid, 0);
  624. SetPlayerSkin(playerid, 45);
  625. SendClientMessage(playerid, COLOR_GREEN, "You have spawned as Gang");
  626. }
  627. if(listitem == 1)
  628. {
  629. SetPlayerTeam(playerid, 1);
  630. SetPlayerSkin(playerid, 150);
  631. SendClientMessage(playerid, COLOR_BLUE, "You have spawned as LSPD");
  632. }
  633. return 1;
  634. }
  635. }
  636. return 1;
  637. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement