Advertisement
Guest User

Battlefield Resurrection - VERSION 2.0

a guest
Feb 14th, 2013
641
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 42.87 KB | None | 0 0
  1. ////////////////////////////////////////////////////////////////////////////////
  2. ////////////////////////// ~ Battlefield-Resurrection ~ ////////////////////////
  3. ///////////////////////// ~ Scripted by RedWingz[LoH] ~ ////////////////////////
  4. //////////////////////////// ~ Started on 02/06/12 ~ ///////////////////////////
  5. ////////////////////////////////~ VERSION 2.0 ~ ////////////////////////////////
  6. ////////////////////////////////////////////////////////////////////////////////
  7.  
  8. // Please don't remove the credits. //
  9.  
  10. //============================================================================//
  11. //                                Includes                                    //
  12. //============================================================================//
  13. #include <a_samp>
  14. #include <sscanf2>
  15. #include <zcmd>
  16.  
  17. //============================================================================//
  18. //                                Defines                                     //
  19. //============================================================================//
  20. #define COLOR_BASIC             0x0066FFAA
  21. #define COLOR_RED               0xCC0000AA
  22. #define COLOR_GREY              0xAFAFAFAA
  23. #define COLOR_GREEN             0x33AA33AA
  24. #define COLOR_YELLOW            0xFFFF00AA
  25. #define COLOR_WHITE             0xFFFFFFAA
  26. #define COLOR_BLUE              0x0000BBAA
  27. #define COLOR_LIGHTBLUE         0x33CCFFAA
  28. #define COLOR_ORANGE            0xFF9900AA
  29. #define COLOR_LIME              0x10F441AA
  30. #define COLOR_MAGENTA           0xFF00FFFF
  31. #define COLOR_NAVY              0x000080AA
  32. #define COLOR_AQUA              0xF0F8FFAA
  33. #define COLOR_CRIMSON           0xDC143CAA
  34. #define COLOR_FLBLUE            0x6495EDAA
  35. #define COLOR_BISQUE            0xFFE4C4AA
  36. #define COLOR_BLACK             0x000000AA
  37. #define COLOR_CHARTREUSE        0x7FFF00AA
  38. #define COLOR_BROWN             0xA52A2AAA
  39. #define COLOR_CORAL             0xFF7F50AA
  40. #define COLOR_GOLD              0xB8860BAA
  41. #define COLOR_GREENYELLOW       0xADFF2FAA
  42. #define COLOR_INDIGO            0x4B00B0AA
  43. #define COLOR_IVORY             0xFFFF82AA
  44. #define COLOR_LAWNGREEN         0x7CFC00AA
  45. #define COLOR_SEAGREEN          0x20B2AAAA
  46. #define COLOR_LIMEGREEN         0x32CD32AA
  47. #define COLOR_MIDNIGHTBLUE      0x191970AA
  48. #define COLOR_MAROON            0x800000AA
  49. #define COLOR_OLIVE             0x808000AA
  50. #define COLOR_ORANGERED         0xFF4500AA
  51. #define COLOR_PINK              0xFFC0CBAA
  52. #define COLOR_SPRINGGREEN       0x00FF7FAA
  53. #define COLOR_TOMATO            0xFF6347AA
  54. #define COLOR_YELLOWGREEN       0x9ACD32AA
  55. #define COLOR_MEDIUMAQUA        0x83BFBFAA
  56. #define COLOR_MEDIUMMAGENTA     0x8B008BAA
  57. #define COLOR_WATER             0x33AAAA33
  58.  
  59. #define COL_EASY           "{FFF1AF}"
  60. #define COL_WHITE          "{FFFFFF}"
  61. #define COL_BLACK          "{0E0101}"
  62. #define COL_GREY           "{C3C3C3}"
  63. #define COL_GREEN          "{6EF83C}"
  64. #define COL_RED            "{F81414}"
  65. #define COL_YELLOW         "{F3FF02}"
  66. #define COL_ORANGE         "{FFAF00}"
  67. #define COL_LIME           "{B7FF00}"
  68. #define COL_CYAN           "{00FFEE}"
  69. #define COL_LIGHTBLUE      "{00C0FF}"
  70. #define COL_BLUE           "{0049FF}"
  71. #define COL_MAGENTA        "{F300FF}"
  72. #define COL_VIOLET         "{B700FF}"
  73. #define COL_PINK           "{FF00EA}"
  74. #define COL_MARONE         "{A90202}"
  75. #define COL_CMD            "{B8FF02}"
  76. #define COL_PARAM          "{3FCD02}"
  77. #define COL_SERVER         "{AFE7FF}"
  78. #define COL_VALUE          "{A3E4FF}"
  79. #define COL_RULE           "{F9E8B7}"
  80. #define COL_RULE2          "{FBDF89}"
  81. #define COL_RWHITE         "{FFFFFF}"
  82. #define COL_LGREEN         "{C9FFAB}"
  83. #define COL_LRED           "{FFA1A1}"
  84. #define COL_LRED2          "{C77D87}"
  85.  
  86. //============================================================================//
  87. //                               Forwards                                     //
  88. //============================================================================//
  89. forward RandMessagesx();
  90.  
  91. //============================================================================//
  92. //                             Declared New                                   //
  93. //============================================================================//
  94. new gTeam[MAX_PLAYERS];
  95. new KillingSpree[MAX_PLAYERS];
  96. new iSpawnSet[MAX_PLAYERS];
  97. new PMEnabled[MAX_PLAYER_NAME];
  98.  
  99. //============================================================================//
  100. //                        Teams and Team Colors                               //
  101. //============================================================================//
  102. #define TEAM_TERRORISTS         0
  103. #define TEAM_COPS               1
  104.  
  105. #define TEAM_TERRORISTS_COLOR   0xCC0000AA
  106. #define TEAM_COPS_COLOR         0x0000BBAA
  107. //============================================================================//
  108. //                           Random Spawns                                    //
  109. //============================================================================//
  110. new Float:CopSpawns[2][3] = {
  111. {2297.1064,2452.0115,10.8203},
  112. {2297.0452,2468.6743,10.8203}
  113. };
  114.  
  115. new Float:TerroristSpawns[23][3] = {
  116. {1958.3783,1343.1572,15.3746},
  117. {2199.6531,1393.3678,10.8203},
  118. {2483.5977,1222.0825,10.8203},
  119. {2637.2712,1129.2743,11.1797},
  120. {2000.0106,1521.1111,17.0625},
  121. {2024.8190,1917.9425,12.3386},
  122. {2261.9048,2035.9547,10.8203},
  123. {2262.0986,2398.6572,10.8203},
  124. {2244.2566,2523.7280,10.8203},
  125. {2335.3228,2786.4478,10.8203},
  126. {2150.0186,2734.2297,11.1763},
  127. {2158.0811,2797.5488,10.8203},
  128. {1969.8301,2722.8564,10.8203},
  129. {1652.0555,2709.4072,10.8265},
  130. {1564.0052,2756.9463,10.8203},
  131. {1271.5452,2554.0227,10.8203},
  132. {1441.5894,2567.9099,10.8203},
  133. {1480.6473,2213.5718,11.0234},
  134. {1400.5906,2225.6960,11.0234},
  135. {1598.8419,2221.5676,11.0625},
  136. {1318.7759,1251.3580,10.8203},
  137. {1558.0731,1007.8292,10.8125},
  138. {1705.2347,1025.6808,10.8203}
  139. };
  140.  
  141. main()
  142. {
  143.     print("\n----------------------------------");
  144.     print(" Battlefield-Resurrection");
  145.     print(" Scripted By RedWingz[LoH]");
  146.     print("----------------------------------\n");
  147. }
  148.  
  149. //============================================================================//
  150. //                             Random Messages                                //
  151. //============================================================================//
  152.  
  153. new RandMessages[][] =
  154. {
  155.     "[BOT]: Need help ? Use /commands for a list of Commands and Use /help for Server Help!",
  156.     "[BOT]: Want to know who the Server owner is ? Use /credits",
  157.     "[BOT]: The main objective is to kill the other team without getting your ass whooped! ;)",
  158.     "[BOT]: Our Anti-Cheat will kick anyone who attempts to hack, But It's a bitch sometimes...",
  159.     "[BOT]: Want to become an Admin ? Then apply on the forums at [Forums Here]"
  160. };
  161.  
  162. public OnGameModeInit()
  163. {
  164.     SetGameModeText("Battlefield-Resurrection");
  165.     UsePlayerPedAnims();
  166.  
  167.     SetTimer("RandMessagesx",300000,1);
  168.  
  169.     AddPlayerClass(195,1525.6697,-1677.8184,5.8906,265.9193,0,0,0,0,0,0); //TERRORIST - Female Skin//
  170.     AddPlayerClass(124,1525.6697,-1677.8184,5.8906,265.9193,0,0,0,0,0,0); //TERRORIST - Male Skin//
  171.     AddPlayerClass(125,1525.6697,-1677.8184,5.8906,265.9193,0,0,0,0,0,0); //TERRORIST - Male Skin//
  172.     AddPlayerClass(120,1525.6697,-1677.8184,5.8906,265.9193,0,0,0,0,0,0); //TERRORIST - Male Skin//
  173.    
  174.     AddPlayerClass(211,410.7943,2533.8386,19.1484,350.0319,0,0,0,0,0,0); // COPS - Female Skin//
  175.     AddPlayerClass(265,410.7943,2533.8386,19.1484,350.0319,0,0,0,0,0,0); // COPS - Male Skin//
  176.     AddPlayerClass(285,410.7943,2533.8386,19.1484,350.0319,0,0,0,0,0,0); // COPS - Male Skin//
  177.     AddPlayerClass(286,410.7943,2533.8386,19.1484,350.0319,0,0,0,0,0,0); // COPS - Male Skin//
  178.     return 1;
  179. }
  180.  
  181. public OnGameModeExit()
  182. {
  183.     return 1;
  184. }
  185.  
  186. public OnPlayerRequestClass(playerid, classid)
  187. {
  188.     SetPlayerToTeamColor(playerid);
  189.     SetPlayerTeamFromClass(playerid, classid);
  190.     SetupPlayerForClassSelection(playerid);
  191.     return 1;
  192. }
  193.  
  194. forward SetupPlayerForClassSelection(playerid);
  195. public SetupPlayerForClassSelection(playerid)
  196. {
  197.     SetPlayerInterior(playerid,14);
  198.     SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
  199.     SetPlayerFacingAngle(playerid, 270.0);
  200.     SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
  201.     SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
  202. }
  203.  
  204. forward SetPlayerToTeamColor(playerid);
  205. public SetPlayerToTeamColor(playerid)
  206. {
  207.     if(gTeam[playerid] == TEAM_TERRORISTS)
  208.     {
  209.         SetPlayerColor(playerid, TEAM_TERRORISTS_COLOR);
  210.     }
  211.     else if(gTeam[playerid] == TEAM_COPS)
  212.     {
  213.         SetPlayerColor(playerid, TEAM_COPS_COLOR);
  214.     }
  215.     return 1;
  216. }
  217.  
  218. forward SetPlayerTeamFromClass(playerid, classid);
  219. public SetPlayerTeamFromClass(playerid, classid)
  220. {
  221.     if(classid == 0)
  222.     {
  223.         gTeam[playerid] = TEAM_TERRORISTS;
  224.     }
  225.     else if(classid == 1)
  226.     {
  227.         gTeam[playerid] = TEAM_COPS;
  228.     }
  229.     return 1;
  230. }
  231.  
  232. public RandMessagesx()
  233. {
  234.     SendClientMessageToAll(COLOR_LAWNGREEN, RandMessages[random(sizeof(RandMessages))]);
  235.     return 1;
  236. }
  237.  
  238. public OnPlayerConnect(playerid)
  239. {
  240.     new name[MAX_PLAYER_NAME], string[39 + MAX_PLAYER_NAME];
  241.     GetPlayerName(playerid, name, sizeof(name));
  242.     format(string, sizeof(string), "%s [ID:%d] has joined the server. [Connected]",name, playerid);
  243.     SendClientMessageToAll(COLOR_GREY, string);
  244.  
  245.     SendClientMessage(playerid, COLOR_GREEN, "Welcome to Battlefield Resurrection!");
  246.     SendClientMessage(playerid, COLOR_YELLOW, "Have fun and kick ass!");
  247.     PMEnabled[playerid] = 1;
  248.     return 1;
  249. }
  250.  
  251. public OnPlayerDisconnect(playerid, reason)
  252. {
  253.     new name[MAX_PLAYER_NAME], string[39 + MAX_PLAYER_NAME];
  254.     GetPlayerName(playerid, name, sizeof(name));
  255.     switch(reason)
  256.     {
  257.         case 0: format(string, sizeof(string), "%s has left the server. [Timed Out]", name);
  258.         case 1: format(string, sizeof(string), "%s has left the server. [Leaving]", name);
  259.         case 2: format(string, sizeof(string), "%s has left the server. [Kicked/Banned]", name);
  260.     }
  261.     SendClientMessageToAll(COLOR_GREY, string);
  262.     return 1;
  263. }
  264.  
  265. public OnPlayerSpawn(playerid)
  266. {
  267.     SendClientMessage(playerid, COLOR_ORANGE, "You have officialy spawned!");
  268.     SetPlayerInterior(playerid,0);
  269.     SetPlayerRandomSpawn(playerid);
  270.     return 1;
  271. }
  272.  
  273. forward SetPlayerRandomSpawn(playerid);
  274. public SetPlayerRandomSpawn(playerid)
  275. {
  276.     if (iSpawnSet[playerid] == 1)
  277.     {
  278.         new rand = random(sizeof(CopSpawns));
  279.         SetPlayerPos(playerid, CopSpawns[rand][0], CopSpawns[rand][1], CopSpawns[rand][2]);
  280.         SetPlayerFacingAngle(playerid, 270.0);
  281.     }
  282.     else if (iSpawnSet[playerid] == 0)
  283.     {
  284.         new rand = random(sizeof(TerroristSpawns));
  285.         SetPlayerPos(playerid, TerroristSpawns[rand][0], TerroristSpawns[rand][1], TerroristSpawns[rand][2]);
  286.     }
  287.     return 1;
  288. }
  289.  
  290. public OnPlayerDeath(playerid, killerid, reason)
  291. {
  292.     SendDeathMessage(killerid, playerid, reason);
  293.     KillingSpree[killerid] ++;
  294.     KillingSpree[playerid] = 0;
  295.     SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
  296.     new str[256], KillerName[MAX_PLAYER_NAME];
  297.     GetPlayerName(killerid, KillerName, sizeof(KillerName));
  298.  
  299.     if(KillingSpree[killerid] == 1)
  300.     {
  301.         format(str, sizeof(str), "~r~%s ~n~ ~r~Getting Started! ~n~ ~w~1 Kill", KillerName);
  302.         GameTextForAll(str, 5000, 5);
  303.     }
  304.     if(KillingSpree[killerid] == 2)
  305.     {
  306.         format(str, sizeof(str), "~r~%s ~n~ ~r~Double Kill! ~n~ ~w~2 Kills", KillerName);
  307.         GameTextForAll(str, 5000, 5);
  308.     }
  309.     if(KillingSpree[killerid] == 3)
  310.     {
  311.         format(str, sizeof(str), "~r~%s ~n~ ~r~Tripple Kill! ~n~ ~w~3 Kills", KillerName);
  312.         GameTextForAll(str, 5000, 5);
  313.     }
  314.     if(KillingSpree[killerid] == 4)
  315.     {
  316.         format(str, sizeof(str), "~r~%s ~n~ ~r~On Fire! ~n~ ~w~4 Kills", KillerName);
  317.         GameTextForAll(str, 5000, 5);
  318.     }
  319.     if(KillingSpree[killerid] == 5)
  320.     {
  321.         format(str, sizeof(str), "~r~%s ~n~ ~r~Rampage! ~n~ ~w~5 Kills", KillerName);
  322.         GameTextForAll(str, 5000, 5);
  323.     }
  324.     if(KillingSpree[killerid] == 6)
  325.     {
  326.         format(str, sizeof(str), "~r~%s ~n~ ~r~Overkill! ~n~ ~w~6 Kills", KillerName);
  327.         GameTextForAll(str, 5000, 5);
  328.     }
  329.     if(KillingSpree[killerid] == 7)
  330.     {
  331.         format(str, sizeof(str), "~r~%s ~n~ ~r~Monster Kill! ~n~ ~w~7 Kills", KillerName);
  332.         GameTextForAll(str, 5000, 5);
  333.     }
  334.     if(KillingSpree[killerid] == 8)
  335.     {
  336.         format(str, sizeof(str), "~r~%s ~n~ ~r~Killimanjaro! ~n~ ~w~8 Kills", KillerName);
  337.         GameTextForAll(str, 5000, 5);
  338.     }
  339.     if(KillingSpree[killerid] == 9)
  340.     {
  341.         format(str, sizeof(str), "~r~%s ~n~ ~r~Ludicrous Kill! ~n~ ~w~9 Kills", KillerName);
  342.         GameTextForAll(str, 5000, 5);
  343.     }
  344.     if(KillingSpree[killerid] == 10)
  345.     {
  346.         format(str, sizeof(str), "~r~%s ~n~ ~r~Killionaire! ~n~ ~w~10 Kills", KillerName);
  347.         GameTextForAll(str, 5000, 5);
  348.     }
  349.     if(KillingSpree[killerid] == 11)
  350.     {
  351.         format(str, sizeof(str), "~r~%s ~n~ ~r~Unstoppable Killer! ~n~ ~w~11 Kills", KillerName);
  352.         GameTextForAll(str, 5000, 5);
  353.     }
  354.     if(KillingSpree[killerid] == 12)
  355.     {
  356.         format(str, sizeof(str), "~r~%s ~n~ ~r~Godlike! ~n~ ~w~12 Kills", KillerName);
  357.         GameTextForAll(str, 5000, 5);
  358.     }
  359.     if(KillingSpree[killerid] == 13)
  360.     {
  361.         format(str, sizeof(str), "~r~%s ~n~ ~r~Beyond Godlike! ~n~ ~w~13 Kills", KillerName);
  362.         GameTextForAll(str, 5000, 5);
  363.     }
  364.     if(KillingSpree[killerid] == 14)
  365.     {
  366.         format(str, sizeof(str), "~r~%s ~n~ ~r~Fuckin' Insane! ~n~ ~w~14 Kills", KillerName);
  367.         GameTextForAll(str, 5000, 5);
  368.     }
  369.     if(KillingSpree[killerid] == 15)
  370.     {
  371.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~15 Kills", KillerName);
  372.         GameTextForAll(str, 5000, 5);
  373.     }
  374.     if(KillingSpree[killerid] == 16)
  375.     {
  376.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~16 Kills", KillerName);
  377.         GameTextForAll(str, 5000, 5);
  378.     }
  379.     if(KillingSpree[killerid] == 17)
  380.     {
  381.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~17 Kills", KillerName);
  382.         GameTextForAll(str, 5000, 5);
  383.     }
  384.     if(KillingSpree[killerid] == 18)
  385.     {
  386.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~18 Kills", KillerName);
  387.         GameTextForAll(str, 5000, 5);
  388.     }
  389.     if(KillingSpree[killerid] == 19)
  390.     {
  391.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~19 Kills", KillerName);
  392.         GameTextForAll(str, 5000, 5);
  393.     }
  394.     if(KillingSpree[killerid] == 20)
  395.     {
  396.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~20 Kills", KillerName);
  397.         GameTextForAll(str, 5000, 5);
  398.     }
  399.     if(KillingSpree[killerid] == 21)
  400.     {
  401.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~21 Kills", KillerName);
  402.         GameTextForAll(str, 5000, 5);
  403.     }
  404.     if(KillingSpree[killerid] == 22)
  405.     {
  406.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~22 Kills", KillerName);
  407.         GameTextForAll(str, 5000, 5);
  408.     }
  409.     if(KillingSpree[killerid] == 23)
  410.     {
  411.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~23 Kills", KillerName);
  412.         GameTextForAll(str, 5000, 5);
  413.     }
  414.     if(KillingSpree[killerid] == 24)
  415.     {
  416.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~24 Kills", KillerName);
  417.         GameTextForAll(str, 5000, 5);
  418.     }
  419.     if(KillingSpree[killerid] == 25)
  420.     {
  421.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~25 Kills", KillerName);
  422.         GameTextForAll(str, 5000, 5);
  423.     }
  424.     if(KillingSpree[killerid] == 26)
  425.     {
  426.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~26 Kills", KillerName);
  427.         GameTextForAll(str, 5000, 5);
  428.     }
  429.     if(KillingSpree[killerid] == 27)
  430.     {
  431.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~27 Kills", KillerName);
  432.         GameTextForAll(str, 5000, 5);
  433.     }
  434.     if(KillingSpree[killerid] == 28)
  435.     {
  436.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~28 Kills", KillerName);
  437.         GameTextForAll(str, 5000, 5);
  438.     }
  439.     if(KillingSpree[killerid] == 29)
  440.     {
  441.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~29 Kills", KillerName);
  442.         GameTextForAll(str, 5000, 5);
  443.     }
  444.     if(KillingSpree[killerid] == 30)
  445.     {
  446.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~30 Kills", KillerName);
  447.         GameTextForAll(str, 5000, 5);
  448.     }
  449.     if(KillingSpree[killerid] == 31)
  450.     {
  451.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~31 Kills", KillerName);
  452.         GameTextForAll(str, 5000, 5);
  453.     }
  454.     if(KillingSpree[killerid] == 32)
  455.     {
  456.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~32 Kills", KillerName);
  457.         GameTextForAll(str, 5000, 5);
  458.     }
  459.     if(KillingSpree[killerid] == 33)
  460.     {
  461.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~33 Kills", KillerName);
  462.         GameTextForAll(str, 5000, 5);
  463.     }
  464.     if(KillingSpree[killerid] == 34)
  465.     {
  466.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~34 Kills", KillerName);
  467.         GameTextForAll(str, 5000, 5);
  468.     }
  469.     if(KillingSpree[killerid] == 35)
  470.     {
  471.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~35 Kills", KillerName);
  472.         GameTextForAll(str, 5000, 5);
  473.     }
  474.     if(KillingSpree[killerid] == 36)
  475.     {
  476.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~36 Kills", KillerName);
  477.         GameTextForAll(str, 5000, 5);
  478.     }
  479.     if(KillingSpree[killerid] == 37)
  480.     {
  481.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~37 Kills", KillerName);
  482.         GameTextForAll(str, 5000, 5);
  483.     }
  484.     if(KillingSpree[killerid] == 38)
  485.     {
  486.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~38 Kills", KillerName);
  487.         GameTextForAll(str, 5000, 5);
  488.     }
  489.     if(KillingSpree[killerid] == 39)
  490.     {
  491.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~39 Kills", KillerName);
  492.         GameTextForAll(str, 5000, 5);
  493.     }
  494.     if(KillingSpree[killerid] == 40)
  495.     {
  496.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~40 Kills", KillerName);
  497.         GameTextForAll(str, 5000, 5);
  498.     }
  499.     if(KillingSpree[killerid] == 41)
  500.     {
  501.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~41 Kills", KillerName);
  502.         GameTextForAll(str, 5000, 5);
  503.     }
  504.     if(KillingSpree[killerid] == 42)
  505.     {
  506.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~42 Kills", KillerName);
  507.         GameTextForAll(str, 5000, 5);
  508.     }
  509.     if(KillingSpree[killerid] == 43)
  510.     {
  511.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~43 Kills", KillerName);
  512.         GameTextForAll(str, 5000, 5);
  513.     }
  514.     if(KillingSpree[killerid] == 44)
  515.     {
  516.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~44 Kills", KillerName);
  517.         GameTextForAll(str, 5000, 5);
  518.     }
  519.     if(KillingSpree[killerid] == 45)
  520.     {
  521.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~45 Kills", KillerName);
  522.         GameTextForAll(str, 5000, 5);
  523.     }
  524.     if(KillingSpree[killerid] == 46)
  525.     {
  526.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~46 Kills", KillerName);
  527.         GameTextForAll(str, 5000, 5);
  528.     }
  529.     if(KillingSpree[killerid] == 47)
  530.     {
  531.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~47 Kills", KillerName);
  532.         GameTextForAll(str, 5000, 5);
  533.     }
  534.     if(KillingSpree[killerid] == 48)
  535.     {
  536.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~48 Kills", KillerName);
  537.         GameTextForAll(str, 5000, 5);
  538.     }
  539.     if(KillingSpree[killerid] == 49)
  540.     {
  541.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~49 Kills", KillerName);
  542.         GameTextForAll(str, 5000, 5);
  543.     }
  544.     if(KillingSpree[killerid] == 50)
  545.     {
  546.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~50 Kills", KillerName);
  547.         GameTextForAll(str, 5000, 5);
  548.     }
  549.     if(KillingSpree[killerid] == 51)
  550.     {
  551.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~51 Kills", KillerName);
  552.         GameTextForAll(str, 5000, 5);
  553.     }
  554.     if(KillingSpree[killerid] == 52)
  555.     {
  556.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~52 Kills", KillerName);
  557.         GameTextForAll(str, 5000, 5);
  558.     }
  559.     if(KillingSpree[killerid] == 53)
  560.     {
  561.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~53 Kills", KillerName);
  562.         GameTextForAll(str, 5000, 5);
  563.     }
  564.     if(KillingSpree[killerid] == 54)
  565.     {
  566.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~54 Kills", KillerName);
  567.         GameTextForAll(str, 5000, 5);
  568.     }
  569.     if(KillingSpree[killerid] == 55)
  570.     {
  571.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~55 Kills", KillerName);
  572.         GameTextForAll(str, 5000, 5);
  573.     }
  574.     if(KillingSpree[killerid] == 56)
  575.     {
  576.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~56 Kills", KillerName);
  577.         GameTextForAll(str, 5000, 5);
  578.     }
  579.     if(KillingSpree[killerid] == 57)
  580.     {
  581.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~57 Kills", KillerName);
  582.         GameTextForAll(str, 5000, 5);
  583.     }
  584.     if(KillingSpree[killerid] == 58)
  585.     {
  586.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~58 Kills", KillerName);
  587.         GameTextForAll(str, 5000, 5);
  588.     }
  589.     if(KillingSpree[killerid] == 59)
  590.     {
  591.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~59 Kills", KillerName);
  592.         GameTextForAll(str, 5000, 5);
  593.     }
  594.     if(KillingSpree[killerid] == 60)
  595.     {
  596.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~60 Kills", KillerName);
  597.         GameTextForAll(str, 5000, 5);
  598.     }
  599.     if(KillingSpree[killerid] == 61)
  600.     {
  601.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~61 Kills", KillerName);
  602.         GameTextForAll(str, 5000, 5);
  603.     }
  604.     if(KillingSpree[killerid] == 62)
  605.     {
  606.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~62 Kills", KillerName);
  607.         GameTextForAll(str, 5000, 5);
  608.     }
  609.     if(KillingSpree[killerid] == 63)
  610.     {
  611.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~63 Kills", KillerName);
  612.         GameTextForAll(str, 5000, 5);
  613.     }
  614.     if(KillingSpree[killerid] == 64)
  615.     {
  616.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~64 Kills", KillerName);
  617.         GameTextForAll(str, 5000, 5);
  618.     }
  619.     if(KillingSpree[killerid] == 65)
  620.     {
  621.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~65 Kills", KillerName);
  622.         GameTextForAll(str, 5000, 5);
  623.     }
  624.     if(KillingSpree[killerid] == 66)
  625.     {
  626.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~66 Kills", KillerName);
  627.         GameTextForAll(str, 5000, 5);
  628.     }
  629.     if(KillingSpree[killerid] == 67)
  630.     {
  631.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~67 Kills", KillerName);
  632.         GameTextForAll(str, 5000, 5);
  633.     }
  634.     if(KillingSpree[killerid] == 68)
  635.     {
  636.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~68 Kills", KillerName);
  637.         GameTextForAll(str, 5000, 5);
  638.     }
  639.     if(KillingSpree[killerid] == 69)
  640.     {
  641.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~69 Kills", KillerName);
  642.         GameTextForAll(str, 5000, 5);
  643.     }
  644.     if(KillingSpree[killerid] == 70)
  645.     {
  646.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~70 Kills", KillerName);
  647.         GameTextForAll(str, 5000, 5);
  648.     }
  649.     if(KillingSpree[killerid] == 71)
  650.     {
  651.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~71 Kills", KillerName);
  652.         GameTextForAll(str, 5000, 5);
  653.     }
  654.     if(KillingSpree[killerid] == 72)
  655.     {
  656.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~72 Kills", KillerName);
  657.         GameTextForAll(str, 5000, 5);
  658.     }
  659.     if(KillingSpree[killerid] == 73)
  660.     {
  661.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~73 Kills", KillerName);
  662.         GameTextForAll(str, 5000, 5);
  663.     }
  664.     if(KillingSpree[killerid] == 74)
  665.     {
  666.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~74 Kills", KillerName);
  667.         GameTextForAll(str, 5000, 5);
  668.     }
  669.     if(KillingSpree[killerid] == 75)
  670.     {
  671.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~75 Kills", KillerName);
  672.         GameTextForAll(str, 5000, 5);
  673.     }
  674.     if(KillingSpree[killerid] == 76)
  675.     {
  676.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~76 Kills", KillerName);
  677.         GameTextForAll(str, 5000, 5);
  678.     }
  679.     if(KillingSpree[killerid] == 77)
  680.     {
  681.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~77 Kills", KillerName);
  682.         GameTextForAll(str, 5000, 5);
  683.     }
  684.     if(KillingSpree[killerid] == 78)
  685.     {
  686.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~78 Kills", KillerName);
  687.         GameTextForAll(str, 5000, 5);
  688.     }
  689.     if(KillingSpree[killerid] == 79)
  690.     {
  691.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~79 Kills", KillerName);
  692.         GameTextForAll(str, 5000, 5);
  693.     }
  694.     if(KillingSpree[killerid] == 80)
  695.     {
  696.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~80 Kills", KillerName);
  697.         GameTextForAll(str, 5000, 5);
  698.     }
  699.     if(KillingSpree[killerid] == 81)
  700.     {
  701.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~81 Kills", KillerName);
  702.         GameTextForAll(str, 5000, 5);
  703.     }
  704.     if(KillingSpree[killerid] == 82)
  705.     {
  706.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~82 Kills", KillerName);
  707.         GameTextForAll(str, 5000, 5);
  708.     }
  709.     if(KillingSpree[killerid] == 83)
  710.     {
  711.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~83 Kills", KillerName);
  712.         GameTextForAll(str, 5000, 5);
  713.     }
  714.     if(KillingSpree[killerid] == 84)
  715.     {
  716.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~84 Kills", KillerName);
  717.         GameTextForAll(str, 5000, 5);
  718.     }
  719.     if(KillingSpree[killerid] == 85)
  720.     {
  721.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~85 Kills", KillerName);
  722.         GameTextForAll(str, 5000, 5);
  723.     }
  724.     if(KillingSpree[killerid] == 86)
  725.     {
  726.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~86 Kills", KillerName);
  727.         GameTextForAll(str, 5000, 5);
  728.     }
  729.     if(KillingSpree[killerid] == 87)
  730.     {
  731.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~87 Kills", KillerName);
  732.         GameTextForAll(str, 5000, 5);
  733.     }
  734.     if(KillingSpree[killerid] == 88)
  735.     {
  736.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~88 Kills", KillerName);
  737.         GameTextForAll(str, 5000, 5);
  738.     }
  739.     if(KillingSpree[killerid] == 89)
  740.     {
  741.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~89 Kills", KillerName);
  742.         GameTextForAll(str, 5000, 5);
  743.     }
  744.     if(KillingSpree[killerid] == 90)
  745.     {
  746.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~90 Kills", KillerName);
  747.         GameTextForAll(str, 5000, 5);
  748.     }
  749.     if(KillingSpree[killerid] == 91)
  750.     {
  751.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~91 Kills", KillerName);
  752.         GameTextForAll(str, 5000, 5);
  753.     }
  754.     if(KillingSpree[killerid] == 92)
  755.     {
  756.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~92 Kills", KillerName);
  757.         GameTextForAll(str, 5000, 5);
  758.     }
  759.     if(KillingSpree[killerid] == 93)
  760.     {
  761.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~93 Kills", KillerName);
  762.         GameTextForAll(str, 5000, 5);
  763.     }
  764.     if(KillingSpree[killerid] == 94)
  765.     {
  766.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~94 Kills", KillerName);
  767.         GameTextForAll(str, 5000, 5);
  768.     }
  769.     if(KillingSpree[killerid] == 95)
  770.     {
  771.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~95 Kills", KillerName);
  772.         GameTextForAll(str, 5000, 5);
  773.     }
  774.     if(KillingSpree[killerid] == 96)
  775.     {
  776.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~96 Kills", KillerName);
  777.         GameTextForAll(str, 5000, 5);
  778.     }
  779.     if(KillingSpree[killerid] == 97)
  780.     {
  781.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~97 Kills", KillerName);
  782.         GameTextForAll(str, 5000, 5);
  783.     }
  784.     if(KillingSpree[killerid] == 98)
  785.     {
  786.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~98 Kills", KillerName);
  787.         GameTextForAll(str, 5000, 5);
  788.     }
  789.     if(KillingSpree[killerid] == 99)
  790.     {
  791.         format(str, sizeof(str), "~r~%s ~n~ ~r~HOLY SHIT! ~n~ ~w~99 Kills", KillerName);
  792.         GameTextForAll(str, 5000, 5);
  793.     }
  794.     if(KillingSpree[killerid] == 100)
  795.     {
  796.         format(str, sizeof(str), "~r~%s ~n~ ~r~Woaaaaaaaahh! Hax0r Much?! ~n~ ~w~100 Kills", KillerName);
  797.         GameTextForAll(str, 5000, 5);
  798.     }
  799.     return 1;
  800. }
  801.  
  802. public OnVehicleSpawn(vehicleid)
  803. {
  804.     return 1;
  805. }
  806.  
  807. public OnVehicleDeath(vehicleid, killerid)
  808. {
  809.     return 1;
  810. }
  811.  
  812. public OnPlayerText(playerid, text[])
  813. {
  814.     return 1;
  815. }
  816.  
  817. public OnPlayerCommandText(playerid, cmdtext[])
  818. {
  819.     return 1;
  820. }
  821.  
  822. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  823. {
  824.     SendClientMessage(playerid, COLOR_LAWNGREEN, "You have entered a vehicle.");
  825.     return 1;
  826. }
  827.  
  828. public OnPlayerExitVehicle(playerid, vehicleid)
  829. {
  830.     SendClientMessage(playerid, COLOR_CRIMSON, "You have left your vehicle.");
  831.     return 1;
  832. }
  833.  
  834. /*public OnPlayerStateChange(playerid, newstate, oldstate)
  835. {
  836.     return 1;
  837. }
  838. */
  839. public OnPlayerEnterCheckpoint(playerid)
  840. {
  841.     return 1;
  842. }
  843.  
  844.  
  845. public OnPlayerLeaveCheckpoint(playerid)
  846. {
  847.     return 1;
  848. }
  849.  
  850. public OnPlayerEnterRaceCheckpoint(playerid)
  851. {
  852.     return 1;
  853. }
  854.  
  855. public OnPlayerLeaveRaceCheckpoint(playerid)
  856. {
  857.     return 1;
  858. }
  859.  
  860. public OnRconCommand(cmd[])
  861. {
  862.     return 1;
  863. }
  864.  
  865. public OnPlayerRequestSpawn(playerid)
  866. {
  867.     return 1;
  868. }
  869.  
  870. public OnObjectMoved(objectid)
  871. {
  872.     return 1;
  873. }
  874.  
  875. public OnPlayerObjectMoved(playerid, objectid)
  876. {
  877.     return 1;
  878. }
  879.  
  880. public OnPlayerPickUpPickup(playerid, pickupid)
  881. {
  882.     return 1;
  883. }
  884.  
  885. public OnVehicleMod(playerid, vehicleid, componentid)
  886. {
  887.     return 1;
  888. }
  889.  
  890. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  891. {
  892.     return 1;
  893. }
  894.  
  895. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  896. {
  897.     return 1;
  898. }
  899.  
  900. public OnPlayerSelectedMenuRow(playerid, row)
  901. {
  902.     return 1;
  903. }
  904.  
  905. public OnPlayerExitedMenu(playerid)
  906. {
  907.     return 1;
  908. }
  909.  
  910. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  911. {
  912.     return 1;
  913. }
  914.  
  915. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  916. {
  917.     return 1;
  918. }
  919.  
  920. public OnRconLoginAttempt(ip[], password[], success)
  921. {
  922.     if(!success)
  923.     {
  924.         new pip[16];
  925.         new string[128];
  926.         new pName[MAX_PLAYER_NAME];
  927.        
  928.         printf("Attempted RCON Login by %s Using the password %s",ip, password);
  929.         for(new i=0; i<MAX_PLAYERS; i++)
  930.         {
  931.             GetPlayerIp(i, pip, sizeof(pip));
  932.             if(!strcmp(ip, pip, true))
  933.             {
  934.                 SendClientMessage(i, COLOR_PINK, "You weren't supposed to do that, Anyway... GoodBai!");
  935.                 format(string, sizeof(string), "%s has been banned for attempting to login to the RCON.",pName);
  936.                 SendClientMessageToAll(COLOR_PINK, string);
  937.                 Ban(i);
  938.             }
  939.         }
  940.     }
  941.     return 1;
  942. }
  943.  
  944. public OnPlayerUpdate(playerid)
  945. {
  946.     return 1;
  947. }
  948.  
  949. public OnPlayerStreamIn(playerid, forplayerid)
  950. {
  951.     return 1;
  952. }
  953.  
  954. public OnPlayerStreamOut(playerid, forplayerid)
  955. {
  956.     return 1;
  957. }
  958.  
  959. public OnVehicleStreamIn(vehicleid, forplayerid)
  960. {
  961.     return 1;
  962. }
  963.  
  964. public OnVehicleStreamOut(vehicleid, forplayerid)
  965. {
  966.     return 1;
  967. }
  968.  
  969. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  970. {
  971.     if(dialogid == 1338)
  972.     {
  973.         if(!response)
  974.         SendClientMessage(playerid, COLOR_RED, "You have not accepted the rules, therefore you have been kicked!");
  975.         Kick(playerid);
  976.     }
  977.     if(dialogid == 1338)
  978.     {
  979.         if(response)
  980.         SendClientMessage(playerid, COLOR_LAWNGREEN, "Thank you for accepting the rules!");
  981.     }
  982.     switch(dialogid)
  983.     {
  984.         case 1335:
  985.         {
  986.             if(!response)
  987.             {
  988.                 SendClientMessage(playerid, 0x42F3F198, "You canceled the dialog.");
  989.                 return 1;
  990.             }
  991.             switch(listitem)
  992.             {
  993.                 case 0:
  994.                 {
  995.                     PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=2990381"); //Vocal Trance//
  996.                     SendClientMessage(playerid, COLOR_RED, "Type /stopradio to turn the radio off.");
  997.                 }
  998.                 case 1:
  999.                 {
  1000.                     PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1270282");
  1001.                     SendClientMessage(playerid, COLOR_RED, "Type /stopradio to turn the radio off."); //Absolute Blues Hits//
  1002.                 }
  1003.                 case 2:
  1004.                 {
  1005.                     PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1283687");
  1006.                     SendClientMessage(playerid, COLOR_RED, "Type /stopradio to turn the radio off."); //181.FM Kickin' Country//
  1007.                 }
  1008.                 case 3:
  1009.                 {
  1010.                     PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1281016");
  1011.                     SendClientMessage(playerid, COLOR_RED, "Type /stopradio to turn the radio off"); //180 Hot Jamz//
  1012.                 }
  1013.                 case 4:
  1014.                 {
  1015.                     PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1275878");
  1016.                     SendClientMessage(playerid, COLOR_RED, "Type /stopradio to turn the radio off"); //Musik Main//
  1017.                 }
  1018.                 case 5:
  1019.                 {
  1020.                     PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1280356");
  1021.                     SendClientMessage(playerid, COLOR_RED, "Type /stopradio to turn the radio off"); //.977 the Hitz Channel//
  1022.                 }
  1023.                 case 6:
  1024.                 {
  1025.                     PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1354805");
  1026.                     SendClientMessage(playerid, COLOR_RED, "Type /stopradio to turn the radio off"); //Radio Paradise//
  1027.                 }
  1028.                 case 7:
  1029.                 {
  1030.                     PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1543115");
  1031.                     SendClientMessage(playerid, COLOR_RED, "Type /stopradio to turn the radio off"); //BlackBeats FM//
  1032.                 }
  1033.                 case 8:
  1034.                 {
  1035.                     PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=744420");
  1036.                     SendClientMessage(playerid, COLOR_RED, "Type /stopradio to turn the radio off"); //Defjay.com - 100 Percent R&B!//
  1037.                 }
  1038.                 case 9:
  1039.                 {
  1040.                     PlayAudioStreamForPlayer(playerid, "http://yp.shoutcast.com/sbin/tunein-station.pls?id=1105299");
  1041.                     SendClientMessage(playerid, COLOR_RED, "Type /stopradio to turn the radio off"); //RockRadio1//
  1042.                 }
  1043.             }
  1044.         }
  1045.     }
  1046.     if(dialogid == 5)
  1047.     {
  1048.         if(response)
  1049.         {
  1050.             if(listitem == 0)
  1051.             {
  1052.                 if(GetPlayerMoney(playerid) < 2500) return SendClientMessage(playerid, COLOR_RED, "[ERROR]: You don't have enough money to buy this weapon!");
  1053.                 GivePlayerWeapon(playerid, 24, 250);
  1054.                 GivePlayerMoney(playerid, -2500);
  1055.                 SendClientMessage(playerid, COLOR_GREENYELLOW, "You have purchased a Desert Eagle bitch!");
  1056.             }
  1057.             if(listitem == 1)
  1058.             {
  1059.                 if(GetPlayerMoney(playerid) < 1500) return SendClientMessage(playerid, COLOR_RED, "[ERROR]: You don't have enough money to buy this weapon!");
  1060.                 GivePlayerWeapon(playerid, 22, 300);
  1061.                 GivePlayerMoney(playerid, -1500);
  1062.                 SendClientMessage(playerid, COLOR_YELLOWGREEN, "You have purchased a Colt 45 bitch!");
  1063.             }
  1064.             if(listitem == 2)
  1065.             {
  1066.                 if(GetPlayerMoney(playerid) < 2000) return SendClientMessage(playerid, COLOR_RED, "[ERROR]: You don't have enough money to buy this weapon!");
  1067.                 GivePlayerWeapon(playerid, 23, 250);
  1068.                 GivePlayerMoney(playerid, -2000);
  1069.                 SendClientMessage(playerid, COLOR_YELLOWGREEN, "You have purchased a Silencer bitch!");
  1070.             }
  1071.             if(listitem == 3)
  1072.             {
  1073.                 if(GetPlayerMoney(playerid) < 2500) return SendClientMessage(playerid, COLOR_RED, "[ERROR]: You don't have enough money to buy this weapon!");
  1074.                 GivePlayerWeapon(playerid, 25, 150);
  1075.                 GivePlayerMoney(playerid, -2500);
  1076.                 SendClientMessage(playerid, COLOR_YELLOWGREEN, "You have purchased a Pump Shotgun bitch!");
  1077.             }
  1078.             if(listitem == 4)
  1079.             {
  1080.                 if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid, COLOR_RED, "[ERROR]: You don't have enough money to buy this weapon!");
  1081.                 GivePlayerWeapon(playerid, 26, 200);
  1082.                 GivePlayerMoney(playerid, -5000);
  1083.                 SendClientMessage(playerid, COLOR_YELLOWGREEN, "You have purchased a Sawnoff Shotgun bitch!");
  1084.             }
  1085.             if(listitem == 5)
  1086.             {
  1087.                 if(GetPlayerMoney(playerid) < 4000) return SendClientMessage(playerid, COLOR_RED, "[ERROR]: You don't have enough money to buy this weapon!");
  1088.                 GivePlayerWeapon(playerid, 27, 250);
  1089.                 GivePlayerMoney(playerid, -4000);
  1090.                 SendClientMessage(playerid, COLOR_YELLOWGREEN, "You have purchased a Combat Shotgun bitch!");
  1091.             }
  1092.             if(listitem == 6)
  1093.             {
  1094.                 if(GetPlayerMoney(playerid) < 3000) return SendClientMessage(playerid, COLOR_RED, "[ERROR]: You don't have enough money to buy this weapon!");
  1095.                 GivePlayerWeapon(playerid, 29, 400);
  1096.                 GivePlayerMoney(playerid, -3000);
  1097.                 SendClientMessage(playerid, COLOR_YELLOWGREEN, "You have purchased an MP5 bitch!");
  1098.             }
  1099.             if(listitem == 7)
  1100.             {
  1101.                 if(GetPlayerMoney(playerid) < 3500) return SendClientMessage(playerid, COLOR_RED, "[ERROR]: You don't have enough money to buy this weapon!");
  1102.                 GivePlayerWeapon(playerid, 32, 500);
  1103.                 GivePlayerMoney(playerid, -3500);
  1104.                 SendClientMessage(playerid, COLOR_YELLOWGREEN, "You have purchased a Tec9 bitch!");
  1105.             }
  1106.             if(listitem == 8)
  1107.             {
  1108.                 if(GetPlayerMoney(playerid) < 3500) return SendClientMessage(playerid, COLOR_RED, "[ERROR]: You don't have enough money to buy this weapon!");
  1109.                 GivePlayerWeapon(playerid, 28, 500);
  1110.                 GivePlayerMoney(playerid, -3500);
  1111.                 SendClientMessage(playerid, COLOR_YELLOWGREEN, "You have purchased a Micro SMG bitch!");
  1112.             }
  1113.             if(listitem == 9)
  1114.             {
  1115.                 if(GetPlayerMoney(playerid) < 7000) return SendClientMessage(playerid, COLOR_RED, "[ERROR]: You don't have enough money to buy this weapon!");
  1116.                 GivePlayerWeapon(playerid, 31, 350);
  1117.                 GivePlayerMoney(playerid, -7000);
  1118.                 SendClientMessage(playerid, COLOR_YELLOWGREEN, "You have purchased an M4 bitch!");
  1119.             }
  1120.             if(listitem == 10)
  1121.             {
  1122.                 if(GetPlayerMoney(playerid) < 6000) return SendClientMessage(playerid, COLOR_RED, "[ERROR]: You don't have enough money to buy this weapon!");
  1123.                 GivePlayerWeapon(playerid, 30, 350);
  1124.                 GivePlayerMoney(playerid, -6000);
  1125.                 SendClientMessage(playerid, COLOR_YELLOWGREEN, "You have purchased an Ak47 bitch!");
  1126.             }
  1127.             if(listitem == 11)
  1128.             {
  1129.                 if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid, COLOR_RED, "[ERROR]: You don't have enough money to buy this weapon!");
  1130.                 GivePlayerWeapon(playerid, 34, 50);
  1131.                 GivePlayerMoney(playerid, -5000);
  1132.                 SendClientMessage(playerid, COLOR_YELLOWGREEN, "You have purchased a Sniper Rifle bitch!");
  1133.             }
  1134.             if(listitem == 12)
  1135.             {
  1136.                 if(GetPlayerMoney(playerid) < 4000) return SendClientMessage(playerid, COLOR_RED, "[ERROR: You don't have enough money to buy this weapon!");
  1137.                 GivePlayerWeapon(playerid, 33, 50);
  1138.                 GivePlayerMoney(playerid, -4000);
  1139.                 SendClientMessage(playerid, COLOR_YELLOWGREEN, "You have purchased a Country Rifle bitch!");
  1140.             }
  1141.         }
  1142.     }
  1143.     return 1;
  1144. }
  1145.  
  1146. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  1147. {
  1148.     return 1;
  1149. }
  1150.  
  1151. //============================================================================//
  1152. //                              Commands                                      //
  1153. //============================================================================//
  1154. CMD:commands(playerid, params[])
  1155. {
  1156.     new sz_msg [ 900 ];
  1157.     strcat( sz_msg, "[COMMANDS]: /shop /health /armour /credits ~ /help ~ /rules /sinfo\r\n");
  1158.     strcat( sz_msg, "[COMMANDS]: /radio ~ /stopradio /relog \r\n");
  1159.     ShowPlayerDialog(playerid, 1337, DIALOG_STYLE_MSGBOX, "Commands", sz_msg, "Okay", "Close");
  1160.     return 1;
  1161. }
  1162.  
  1163. CMD:help(playerid, params[])
  1164. {
  1165.     new sz_msg [ 900 ];
  1166.     strcat( sz_msg, "[Help]: This Server is currently under beta as you can see it is not finished yet.\r\n");
  1167.     strcat( sz_msg, "[Help]: If you have any concerns about the server, Then please report them at [Forums Here]\r\n");
  1168.     strcat( sz_msg, "[Help]: If you're stuck, Use /commands to view a list of commands.\r\n");
  1169.     strcat( sz_msg, "[Help]: If you want to find out about the server more, Use /sinfo!");
  1170.     ShowPlayerDialog(playerid, 1336, DIALOG_STYLE_MSGBOX, "Sever Help", sz_msg, "Okay", "Close");
  1171.     return 1;
  1172. }
  1173.  
  1174. CMD:health(playerid, params[])
  1175. {
  1176.     if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid, COLOR_RED, "You don't have enough cash!");
  1177.     SendClientMessage(playerid, COLOR_LIMEGREEN, "You have restored your health for $5,000!");
  1178.     SetPlayerHealth(playerid, 100);
  1179.     GivePlayerMoney(playerid, -5000);
  1180.     return 1;
  1181. }
  1182.  
  1183. CMD:armour(playerid, params[])
  1184. {
  1185.     if(GetPlayerMoney(playerid) < 10000) return SendClientMessage(playerid, COLOR_RED, "You don't have enough cash!");
  1186.     SendClientMessage(playerid, COLOR_LIMEGREEN, "You have restored your armour for $10,000!");
  1187.     SetPlayerArmour(playerid, 100);
  1188.     GivePlayerMoney(playerid, -10000);
  1189.     return 1;
  1190. }
  1191.  
  1192. CMD:rules(playerid, params[])
  1193. {
  1194.     new sz_msg [ 900 ];
  1195.     strcat( sz_msg, "~ On Purpose Teamkill - [5 Minute Jail]\r\n");
  1196.     strcat( sz_msg, "~ Flaming / Insulting - [10 Minute Jail] - Again - [30 Minute Jail]\r\n");
  1197.     strcat( sz_msg, "~ Racism - [15 Minute Jail] - Again - [2 Day Temp Ban]\r\n");
  1198.     strcat( sz_msg, "~ Spamming /report - [15 Minute Jail]\r\n");
  1199.     strcat( sz_msg, "~ PrivateMessage Spam - [10 Minute Jail]\r\n");
  1200.     strcat( sz_msg, "~ Chat spam / flood - [20 Minute Jail]\r\n");
  1201.     strcat( sz_msg, "~ Admin Insults - [1 Hour Jail] - Again - [3 Day Temp Ban]\r\n");
  1202.     strcat( sz_msg, "~ CLEO Mods - [Temp Ban]\r\n");
  1203.     strcat( sz_msg, "~ Hacking - [Ban] - Appeal on the forums\r\n");
  1204.     strcat( sz_msg, "~ Advertising Server IP's - [Permanent Ban] - Server Names - [1 Hour Jail]\r\n");
  1205.     ShowPlayerDialog(playerid, 1338, DIALOG_STYLE_MSGBOX, "Rules", sz_msg, "Agree", "Disagree");
  1206.     return 1;
  1207. }
  1208.  
  1209. CMD:credits(playerid, params[])
  1210. {
  1211.     new sz_msg [ 900 ];
  1212.     strcat( sz_msg, "[Server Owner]: [Owner]\r\n");
  1213.     strcat( sz_msg, "[Server Co-Owner]: [Co-Owner]\r\n");
  1214.     strcat( sz_msg, "[Server Scripters]: [Scripters]\r\n");
  1215.     strcat( sz_msg, "[Server Mappers]: [Mappers]\r\n");
  1216.     ShowPlayerDialog(playerid, 1339, DIALOG_STYLE_MSGBOX, "Credits", sz_msg, "Okay", "Close");
  1217.     return 1;
  1218. }
  1219.  
  1220. CMD:kill(playerid, params[])
  1221. {
  1222.     SendClientMessage(playerid, COLOR_RED, "You have commited suicide!");
  1223.     SetPlayerHealth(playerid, 0.0);
  1224.     return 1;
  1225. }
  1226.  
  1227. CMD:radio(playerid, params[])
  1228. {
  1229.     SendClientMessage(playerid, COLOR_LIMEGREEN, "You have turned the radio on.");
  1230.     ShowPlayerDialog(playerid, 1335, DIALOG_STYLE_LIST, "Radio", "1) Vocal Trance\r\n2) Absolute Blues Hits\r\n3) 181.FM Kickin' Country\r\n4) Hot 108 Jamz\r\n5) Musik Main\r\n6) .977 The Hitz Channel\r\n7) Radio Paradise\r\n8) BlackBeats FM\r\n9) Defjay.com - 100 Percent R&B!\r\n10) RockRadio1\r\n", "Select", "Cancel");
  1231.     return 1;
  1232. }
  1233.  
  1234. CMD:stopradio(playerid, params[])
  1235. {
  1236.     SendClientMessage(playerid, COLOR_RED, "You have turned the radio off.");
  1237.     StopAudioStreamForPlayer(playerid);
  1238.     return 1;
  1239. }
  1240.  
  1241. CMD:sinfo(playerid, params[])
  1242. {
  1243.     new sz_msg [ 900 ];
  1244.     strcat( sz_msg, "[Server Info]\r\n");
  1245.     strcat( sz_msg, "[Server Info]\r\n");
  1246.     ShowPlayerDialog(playerid, 1334, DIALOG_STYLE_MSGBOX, "Server Info", sz_msg, "Okay", "Close");
  1247.     return 1;
  1248. }
  1249.  
  1250. CMD:shop(playerid, params[])
  1251. {
  1252.     ShowPlayerDialog(playerid, 5, DIALOG_STYLE_LIST, "Shop", "Desert Eagle ($2500)\nColt 45 ($1500)\nSilencer ($2000)\nPump Shotgun ($2500)\nSawnoff Shotgun ($5000)\nCombat Shotgun ($4000)\nMP5 ($3000)\nTec9 ($3500)\nMicro SMG ($3500)\nM4 ($7000)\nAk47 ($6000)\nSniper Rifle ($5000)\nCountry Rifle ($4500)", "Buy", "Cancel");
  1253.     return 1;
  1254. }
  1255.  
  1256. CMD:relog(playerid, params[])
  1257. {
  1258.     SendClientMessage(playerid, COLOR_RED, "You have used the command /relog, Please relog. ;P");
  1259.     Kick(playerid);
  1260.     return 1;
  1261. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement