TheGamingChief

Untitled

May 8th, 2016
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.30 KB | None | 0 0
  1. /*
  2. *
  3. * If this file is not updated when adding/removing/changing clots... THERE WILL BE ALOT OF ERRORS SPAMMED
  4. * in the RPT file, so please.... just update it.
  5. *
  6. */
  7.  
  8. waitUntil {((alive player) or (local server))};
  9. if(local server and !local player)then{dedicatedServer = true};
  10. if(local server and local player)then{hostedServer = true};
  11.  
  12. fuckingKillYourselfCopTMPArray = ["Civ0","Civ1","Civ2","Civ3","Civ4","Civ5","Civ6","Civ7","Civ8","Civ9","Civ10","Civ11","Civ12","Civ13","Civ14","Civ15","Civ16","Civ17","Civ18","Civ19","Civ20","Civ21","Civ22","Civ23","Civ24","Civ25","Civ26","Civ27","Civ28","Civ29","Civ30","Civ31","Civ32","Civ33","Civ34","Civ35","Civ36","Civ37","Civ38","Civ39","Civ40","Civ41","Civ42","Civ43","Civ44","Civ45","Civ46","Civ47","Civ48","Civ49","Civ50","Civ51","Civ52","Civ53","Civ54","Civ55","Civ56"];
  13.  
  14. playerstringarray = ["Civ1","Civ2","Civ3","Civ4","Civ5","Civ6","Civ7","Civ8","Civ9","Civ10","Civ11","Civ12","Civ13","Civ14","Civ15","Civ16","Civ17","Civ18","Civ19","Civ20","Civ21","Civ22","Civ23","Civ24","Civ25","Civ26","Civ27","Civ28","Civ29","Civ30","Civ31","Civ32","Civ33","Civ34","Civ35","Civ36","Civ37","Civ38","Civ39","Civ40","Civ41","Civ42","Civ43","Civ44","Civ45","Civ46","Civ47","Civ48","Civ49","Civ50","Civ51","Civ52","Civ53","Civ54","Civ55","Civ56","Cop1","Cop2","Cop3","Cop4","Cop5","Cop6","Cop7","Cop8","Cop9","Cop10","Cop11","Cop12","Cop13","Cop14","Cop15","Cop16","Cop17","Cop18","Cop19","Cop20","Cop21","Cop22","Cop23","Cop24"];
  15. for [{_i=0}, {_i < (count playerstringarray)}, {_i=_i+1}] do {if (isNil (playerstringarray select _i)) then { call compile format["%1 = objNull;", (playerstringarray select _i)]; }; };
  16. playerarray = [civ1,civ2,civ3,civ4,civ5,civ6,civ7,civ8,civ9,civ10,civ11,civ12,civ13,civ14,civ15,civ16,civ17,civ18,civ19,civ20,civ21,civ22,civ23,civ24,civ25,civ26,civ27,civ28,civ29,civ30,civ31,civ32,civ33,civ34,civ35,civ36,civ37,civ38,civ39,civ40,civ41,civ42,civ43,civ44,civ45,civ46,civ47,civ48,civ49,civ50,civ51,civ52,civ53,civ54,civ55,civ56,cop1,cop2,cop3,cop4,cop5,cop6,cop7,cop8,cop9,cop10,cop11,cop12,cop13,cop14,cop15,cop16,cop17,cop18,cop19,cop20,cop21,cop22,cop23,cop24];
  17. civstringarray = ["Civ0","Civ1","Civ2","Civ3","Civ4","Civ5","Civ6","Civ7","Civ8","Civ9","Civ10","Civ11","Civ12","Civ13","Civ14","Civ15","Civ16","Civ17","Civ18","Civ19","Civ20","Civ21","Civ22","Civ23","Civ24","Civ25","Civ26","Civ27","Civ28","Civ29","Civ30","Civ31","Civ32","Civ33","Civ34","Civ35","Civ36","Civ37","Civ38","Civ39","Civ40","Civ41","Civ42","Civ43","Civ44","Civ45","Civ46","Civ47","Civ48","Civ49","Civ50","Civ51","Civ52","Civ53","Civ54","Civ55","Civ56"];
  18. civarray = [dummyobj,civ1,civ2,civ3,civ4,civ5,civ6,civ7,civ8,civ9,civ10,civ11,civ12,civ13,civ14,civ15,civ16,civ17,civ18,civ19,civ20,civ21,civ22,civ23,civ24,civ25,civ26,civ27,civ28,civ29,civ30,civ31,civ32,civ33,civ34,civ35,civ36,civ37,civ38,civ39,civ40,civ41,civ42,civ43,civ44,civ45,civ46,civ47,civ48,civ49,civ50,civ51,civ52,civ53,civ54,civ55,civ56];
  19. copstringarray = ["Cop1","Cop2","Cop3","Cop4","Cop5","Cop6","Cop7","Cop8","Cop9","Cop10","Cop11","Cop12","Cop13","Cop14","Cop15","Cop16","Cop17","Cop18","Cop19","Cop20","Cop21","Cop22","Cop23","Cop24"];
  20. medicstringarray = ["Civ31","Civ32","Civ33","Civ48","Civ49","Civ50","Civ51","Civ52","Civ53","Civ54","Civ55","Civ56"];
  21. coparray = [cop1,cop2,cop3,cop4,cop5,cop6,cop7,cop8,cop9,cop10,cop11,cop12,cop13,cop14,cop15,cop16,cop17,cop18,cop19,cop20,cop21,cop22,cop23,cop24];
  22. medicarray = [civ31,civ32,civ33,civ48,civ49,civ50,civ51,civ52,civ53,civ54,civ55,civ56];
  23.  
  24. /* CP was here */
  25. /*civstringarray = ["Civ1","Civ2","Civ3","Civ4","Civ5","Civ6","Civ7","Civ8","Civ9","Civ10","Civ11","Civ12","Civ13","Civ14","Civ15","Civ16","Civ17","Civ18","Civ19","Civ20","Civ21","Civ22","Civ23","Civ24","Civ25","Civ26","Civ27","Civ28","Civ29","Civ30","Civ34","Civ35","Civ36","Civ37","Civ38","Civ39","Civ40","Civ41","Civ42","Civ43","Civ44","Civ45","Civ46","Civ47"];
  26. medicstringarray = ["Civ31","Civ32","Civ33","Civ48","Civ49","Civ50","Civ51","Civ52","Civ53","Civ54","Civ55","Civ56"];
  27. copstringarray = ["Cop1","Cop2","Cop3","Cop4","Cop5","Cop6","Cop7","Cop8","Cop9","Cop10","Cop11","Cop12","Cop13","Cop14","Cop15","Cop16","Cop17","Cop18","Cop19","Cop20","Cop21","Cop22","Cop23","Cop24"];
  28. playerstringarray = civstringarray + medicstringarray + copstringarray;
  29. for [{_i=0}, {_i < (count playerstringarray)}, {_i=_i+1}] do {if (isNil (playerstringarray select _i)) then { call compile format["%1 = objNull;", (playerstringarray select _i)]; }; };
  30. civarray = [civ1,civ2,civ3,civ4,civ5,civ6,civ7,civ8,civ9,civ10,civ11,civ12,civ13,civ14,civ15,civ16,civ17,civ18,civ19,civ20,civ21,civ22,civ23,civ24,civ25,civ26,civ27,civ28,civ29,civ30,civ34,civ35,civ36,civ37,civ38,civ39,civ40,civ41,civ42,civ43,civ44,civ45,civ46,civ47];
  31. medicarray = [civ31,civ32,civ33,civ48,civ49,civ50,civ51,civ52,civ53,civ54,civ55,civ56];
  32. coparray = [cop1,cop2,cop3,cop4,cop5,cop6,cop7,cop8,cop9,cop10,cop11,cop12,cop13,cop14,cop15,cop16,cop17,cop18,cop19,cop20,cop21,cop22,cop23,cop24];
  33. playerarray = civarray + medicarray + coparray;*/
  34.  
  35. copchiefarray = [cop1,cop2];
  36. copcaptainarray = [cop3,cop4];
  37. copsheriffarray = [cop20];
  38. copdeputyarray = [cop21,cop22];
  39. copdeputyarray2 = [cop23,cop24];
  40. rolenumber = 0;
  41. for [{_i=0}, {_i < (count playerarray)}, {_i=_i+1}] do
  42. {
  43. call compile format["if ((playerarray select %1) == player) then { rolenumber = (%1 + 1); }", _i];
  44. };
  45. role = player;
  46. rolestring_ucase = [(str player)] call RLRPG_fnc_StringUCase;
  47.  
  48. _civnum = player;
  49. _uid = getPlayerUID player;
  50.  
  51. if (player in coparray) then
  52. {
  53. iscop = true;
  54. isciv = false;
  55. isamedic = false;
  56. rolecop = 1;
  57. sidenumber = rolenumber - civscount;
  58. longrolenumber = 1100 + sidenumber;
  59. rolestring = format["Cop%1", sidenumber];
  60. };
  61. if (player in civarray) then
  62. {
  63. if (player in medicarray) then
  64. {
  65. isciv = false;
  66. iscop = false;
  67. isamedic = true;
  68. }
  69. else
  70. {
  71. isciv = true;
  72. iscop = false;
  73. isamedic = false;
  74. };
  75. rolecop = 0;
  76. sidenumber = rolenumber;
  77. longrolenumber = 1000 + sidenumber;
  78. rolestring = format["Civ%1", sidenumber];
  79. };
  80. if (typeName player == "OBJECT") then {
  81. if (!isNull player) then {
  82. call compile format["old%1 = objnull", player];
  83. };
  84. };
Add Comment
Please, Sign In to add comment