Advertisement
Kartik_Sharma

FIX for Gorilla

Jul 31st, 2012
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 159.93 KB | None | 0 0
  1. #include <a_samp>
  2. #include <YSI\y_ini>
  3. #include <zcmd>
  4. #include <dini>
  5. #include <string>
  6. #include <core>
  7. #include <dutils>
  8. #include <dudb>
  9.  
  10. new gTeam[MAX_PLAYERS];
  11. #define CIVILIAN 0//
  12. forward SetupPlayerForClassSelection(playerid);
  13. forward SetPlayerTeamFromClass(playerid,classid);
  14. forward StreamerCheck();
  15. forward SetAreaWeather(areaid, weatherid);
  16. forward GetAreaWeather(areaid, weatherid);
  17. forward GetPlayerWeatherArea(playerid);
  18. forward GetPlayerWeather(playerid);
  19. forward Counting(playerid);
  20. forward Counting2(playerid);
  21. forward Counting1(playerid);
  22. forward CountingGO(playerid);
  23. forward IsAtFishPlace(playerid);
  24. forward FishTime(playerid);
  25. forward SendRPMessage(playerid, Float:radius, color, string[]);
  26. forward StopFish(playerid);
  27. forward UnJail(pId);
  28. forward UnJail2(playerid);
  29. forward ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5);
  30. forward ExpireRoadblock(blockid);
  31. forward IsValidName(playerid);
  32. forward NeedToEat(playerid);
  33. #pragma unused ret_memcpy
  34.  
  35. #define yellow 0xDABB3EAA
  36. #define white 0xFFFFFFAA
  37. #define green 0x33AA33AA
  38. #define red 0xAA3333AA
  39. #define blue          0x5D00FFFF
  40. #define purple          0xC2A2DAAA
  41. #define gray 0x808080FF
  42. #define aqua 0x00FFFFFF
  43. #define royalblue 0x4169E1FF
  44. #define pink 0xFFC0CBFF
  45. //Colors
  46. #define COLOR_INTERFACE_BODY 0xFDE39DAA
  47. #define COLOR_GREY 0xAFAFAFAA
  48. #define COLOR_RED 0xAA3333AA
  49. #define COLOR_YELLOW2 0xF5DEB3AA
  50. #define COLOR_GREENYELLOW 0xADFF2FFF
  51. #define COL_WHITE "{FFFFFF}"
  52. #define COL_RED "{F81414}"
  53. #define COL_GREEN "{00FF22}"
  54. #define COL_LIGHTBLUE "{00CED1}"
  55. #define COLOR_RED 0xAA3333AA
  56. #define COLOR_PURPLE          0xC2A2DAAA
  57. #define COLOUR_WHITE           0xFFFFFFFF
  58. #define COLOUR_GREEN           0x33AA33AA
  59. #define COLOUR_RED             0xFF3333AA
  60. #define COLOUR_YELLOW          0xFFFF00AA
  61.  
  62. #undef MAX_PLAYERS       //
  63. #define MAX_PLAYERS 50  //Change this to your player slot amount
  64. #define N2E_TIME 600000//Edit this value to change the timer, now = 10 mins
  65. #define LOOSING_HP 21  //The HP the player will lose You can set it                            |
  66.  
  67. #define COLOR_LIGHTBLUE     0x7ED5F2FF
  68. #define COLOR_BLUE          0x5D00FFFF
  69.  
  70. #define COLOR_FADE1 0xE6E6E6E6
  71. #define COLOR_FADE2 0xC8C8C8C8
  72. #define COLOR_FADE3 0xAAAAAAAA
  73. #define COLOR_FADE4 0x8C8C8C8C
  74. #define COLOR_FADE5 0x6E6E6E6E
  75.  
  76. #define RED 0xFF0000FF
  77. #define YELLOW 0xFFFF00FF
  78. #define WHITE 0xFFFFFFFF
  79. #define MAX_QUESTION_SIZE 24
  80. #define MAX_VARIANT_SIZE 15
  81. #define GUI_DIALOG_ID 10
  82.  
  83. #pragma tabsize 0
  84.  
  85. #define SLOT 100 //By default uses slot 1, change it if you need slot 1 for other thing.
  86.  
  87. #define PATHE "Weapons"  //  Folder where players data saved
  88.  
  89.  
  90. #define RANGEOFSTARTER 20 // freezes all that are in range of player(20 meters) that
  91. #define DIALOG_REGISTER 1
  92. #define DIALOG_LOGIN 2
  93. #define DIALOG_SUCCESS_1 3
  94. #define DIALOG_SUCCESS_2 4
  95.  
  96. #define PATH "/Users/%s.ini"
  97.  
  98. #define ARMEDBODY_USE_HEAVY_WEAPON          (false)
  99.  
  100. #define WEATHER_TIMER_INTERVAL 5000
  101.  
  102. #define WEATHER_AREA_NONE 0
  103. #define WEATHER_AREA_LOS_SANTOS 1
  104. #define WEATHER_AREA_LAS_VENTURAS 2
  105. #define WEATHER_AREA_BONE_COUNTY 3
  106. #define WEATHER_AREA_TIERRA_ROBADA 4
  107. #define WEATHER_AREA_SAN_FIERRO 5
  108. #define WEATHER_AREA_RED_COUNTY 6
  109. #define WEATHER_AREA_FLINT_COUNTY 7
  110. #define WEATHER_AREA_WHETSTONE 8
  111.  
  112. #define MAX_ZONES 9
  113. #define MAX_AREAS 9
  114.  
  115. #define BaitPrice 20
  116. #define FishingToolPrice 250
  117.  
  118. #define COLOR_INVISIBLE 0xFFFFFF00
  119. #define COLOR_WHITE 0xFFFFFFFF
  120. #define COLOR_BLACK 0x000000FF
  121. #define COLOR_RED 0xAA3333AA
  122. #define COLOR_GREEN 0x00FF00FF
  123. #define COLOR_PURPLE 0xC2A2DAAA
  124. #define COLOR_YELLOW 0xFFFF00AA
  125. #define COLOR_YELLOWORANGE 0xE8D600FF
  126. #define COLOR_GREY 0xAFAFAFAA
  127. #define COLOR_ORANGE 0xFF5F11FF
  128. #define ORANGE 0xF4B906FF
  129. #define COLOR_BROWN 0x804000FF
  130. #define COLOR_CYAN 0x00FFFFFF
  131. #define COLOR_PINK 0xFF80C0FF
  132.  
  133. #define EXPIRE_MINUTES  10 //after x minutes the roadblocks expire
  134. #define MAX_ROADBLOCKS  300//maximum roadblocks in server
  135. #define SEND            true//if someone adds a roadblock ? You want let everyone know ? true = yes, false = no
  136.  
  137. //----------------------------------------------------||
  138. new Fishes[MAX_PLAYERS];
  139. new AlreadyFished[MAX_PLAYERS];
  140. new FishingTool[MAX_PLAYERS];
  141. new Worms[MAX_PLAYERS];
  142. new FishWeight[MAX_PLAYERS];
  143. new IsFishing[MAX_PLAYERS];
  144. new fishing;
  145. new block[MAX_ROADBLOCKS][MAX_PLAYERS], atblock[MAX_PLAYERS];
  146. new Text:Textdraw0      [MAX_PLAYERS],
  147.        bool:Balsavo    [MAX_PLAYERS];
  148. enum PollVariables
  149. {
  150.         yVariant[MAX_VARIANT_SIZE],
  151.         nVariant[MAX_VARIANT_SIZE],
  152.         Question[MAX_QUESTION_SIZE],
  153.         bool:Start,
  154.         yCount,
  155.         nCount,
  156.         GeneralCount,
  157.         Organizator
  158. }
  159. new Poll[PollVariables];
  160.  
  161. new bool:AlreadyGiveWeapons[MAX_PLAYERS];
  162.  
  163. static
  164.     armedbody_pTick[MAX_PLAYERS];
  165.  
  166. enum rankingEnum
  167. {
  168.     player_Score,
  169.     player_ID
  170. }
  171. enum ZoneData
  172. {
  173.     zone_areaid,
  174.     Float:zone_minx,
  175.     Float:zone_miny,
  176.     Float:zone_maxx,
  177.     Float:zone_maxy,
  178. }
  179. enum pInfo
  180. {
  181.         pPass,
  182.         pCash,
  183.         pAdmin,
  184.         pKills,
  185.         pDeaths,
  186.         pLevel,
  187.         Credits,
  188.         Xp,
  189.         Extra1,
  190.         Extra2,
  191.         Extra3,
  192.         Extra4,
  193.         Extra5,
  194.         Heroin,
  195.         Weed,
  196.         Material,
  197.         Police,
  198.         CIA,
  199.         Army,
  200.         Medic,
  201.         Fire,
  202.         News,
  203.         Goverment,
  204.         Licenser,
  205.         Piss,
  206.         CarLic,
  207.         TruckLic,
  208.         HeliLic,
  209.         BikeLic,
  210.         GunLic,
  211.         LawLic,
  212.         Passport,
  213.         Radio,
  214.         Jobs,
  215.         Faction,
  216.         Wanted,
  217.         Skill
  218.   }
  219.   new PlayerInfo[MAX_PLAYERS][pInfo];
  220. new FirstSpawn[MAX_PLAYERS];
  221. new Float:CurHealth[MAX_PLAYERS];
  222.  
  223. new Text:HealthBar[MAX_PLAYERS];
  224.  
  225. new Count;
  226. new MaxPlayers;
  227. new PlayerAreaID[MAX_PLAYERS];
  228. new AreaCurrentWeather[MAX_AREAS];
  229. new Float:zones[][ZoneData] = {
  230.     { WEATHER_AREA_LOS_SANTOS,          44.60, -2892.90,  2997.00,  -768.00},
  231.     { WEATHER_AREA_LAS_VENTURAS,        869.40,   596.30,  2997.00,  2993.80},
  232.     { WEATHER_AREA_BONE_COUNTY,         -480.50,   596.30,  869.40,  2993.80},
  233.     { WEATHER_AREA_TIERRA_ROBADA,       -2997.40,  1659.60, -480.50,  2993.80},
  234.     { WEATHER_AREA_TIERRA_ROBADA,       -1213.90,   596.30,  -480.50,  1659.60},
  235.     { WEATHER_AREA_SAN_FIERRO,          -2997.40, -1115.50, -1213.90,  1659.60},
  236.     { WEATHER_AREA_RED_COUNTY,          -1213.90,  -768.00,  2997.00,   596.30},
  237.     { WEATHER_AREA_FLINT_COUNTY,        -1213.90, -2892.90,    44.60,  -768.00},
  238.     { WEATHER_AREA_WHETSTONE,           -2997.40, -2892.90, -1213.90, -1115.50}
  239. };
  240.  
  241.  
  242. #define yellow 0xDABB3EAA
  243. #define white 0xFFFFFFAA
  244. #define green 0x33AA33AA
  245. #define red 0xAA3333AA
  246. #define blue          0x5D00FFFF
  247. #define purple          0xC2A2DAAA
  248. #define gray 0x808080FF
  249. #define aqua 0x00FFFFFF
  250. #define royalblue 0x4169E1FF
  251. #define pink 0xFFC0CBFF
  252. #define brown 0xA52A2AFF
  253. #define orange 0xFF8C00FF
  254. public IsValidName(playerid)
  255. {
  256.     new pname[MAX_PLAYER_NAME],underline=0;
  257.     GetPlayerName(playerid, pname, sizeof(pname));
  258.     if(strfind(pname,"[",true) != (-1)) return 0;
  259.     else if(strfind(pname,".",true) != (-1)) return 0;
  260.     else if(strfind(pname,"]",true) != (-1)) return 0;
  261.     else if(strfind(pname,"$",true) != (-1)) return 0;
  262.     else if(strfind(pname,"(",true) != (-1)) return 0;
  263.     else if(strfind(pname,")",true) != (-1)) return 0;
  264.     else if(strfind(pname,"=",true) != (-1)) return 0;
  265.     else if(strfind(pname,"@",true) != (-1)) return 0;
  266.     else if(strfind(pname,"1",true) != (-1)) return 0;
  267.     else if(strfind(pname,"2",true) != (-1)) return 0;
  268.     else if(strfind(pname,"3",true) != (-1)) return 0;
  269.     else if(strfind(pname,"4",true) != (-1)) return 0;
  270.     else if(strfind(pname,"5",true) != (-1)) return 0;
  271.     else if(strfind(pname,"6",true) != (-1)) return 0;
  272.     else if(strfind(pname,"7",true) != (-1)) return 0;
  273.     else if(strfind(pname,"8",true) != (-1)) return 0;
  274.     else if(strfind(pname,"9",true) != (-1)) return 0;
  275.     new maxname = strlen(pname);
  276.     for(new i=0; i<maxname; i++) { if(pname[i] == '_') underline ++; }
  277.     if(underline != 1) return 0;
  278.     pname[0] = toupper(pname[0]);
  279.     for(new x=1; x<maxname; x++)
  280.     {
  281.         if(pname[x] == '_') pname[x+1] = toupper(pname[x+1]);
  282.          else if(pname[x] != '_' && pname[x-1] != '_') pname[x] = tolower(pname[x]);
  283.     }
  284.     SetPlayerName(playerid, "New_Name");
  285.     SetPlayerName(playerid, pname);
  286.     return 1;
  287. }
  288. public OnPlayerText(playerid, text[])
  289. {
  290.     if(PlayerInfo[playerid][Police] == 5)
  291.     {
  292.         new pName[MAX_PLAYER_NAME], String[128];
  293.         GetPlayerName(playerid, pName, 24);
  294.         format(String, sizeof(String), "{5D00FF}[Êàïèòàí]{808080}%s: %s", pName, text);
  295.         ProxDetector(30.0, playerid, String,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  296.         return 0;
  297.     }
  298.     else if(PlayerInfo[playerid][Police] == 4)
  299.     {
  300.         new pName[MAX_PLAYER_NAME], String[128];
  301.         GetPlayerName(playerid, pName, 24);
  302.         format(String, sizeof(String), "{5D00FF}[Ñåðæàíò]{808080}%s: %s", pName, text);
  303.         ProxDetector(30.0, playerid, String,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  304.         return 0;
  305.     }
  306.     else if(PlayerInfo[playerid][Police] == 3)
  307.     {
  308.         new pName[MAX_PLAYER_NAME], String[128];
  309.         GetPlayerName(playerid, pName, 24);
  310.         format(String, sizeof(String), "{5D00FF}[SWAT]{808080}%s: %s", pName, text);
  311.         ProxDetector(30.0, playerid, String,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  312.         return 0;
  313.     }
  314.     else if(PlayerInfo[playerid][Police] == 2)
  315.     {
  316.         new pName[MAX_PLAYER_NAME], String[128];
  317.         GetPlayerName(playerid, pName, 24);
  318.         format(String, sizeof(String), "{5D00FF}[Ïîëèöàé]{808080}%s: %s", pName, text);
  319.         ProxDetector(30.0, playerid, String,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  320.         return 0;
  321.     }
  322.     else if(PlayerInfo[playerid][Police] == 1)
  323.     {
  324.         new pName[MAX_PLAYER_NAME], String[128];
  325.         GetPlayerName(playerid, pName, 24);
  326.         format(String, sizeof(String), "{5D00FF}[Êàäåò]{808080}%s: %s", pName, text);
  327.         ProxDetector(30.0, playerid, String,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  328.         return 0;
  329.     }
  330.     else if(PlayerInfo[playerid][Medic] == 1)
  331.     {
  332.         new pName[MAX_PLAYER_NAME], String[128];
  333.         GetPlayerName(playerid, pName, 24);
  334.         format(String, sizeof(String), "{FFC0CB}[Ëåêàð]{808080}%s: %s", pName, text);
  335.         ProxDetector(30.0, playerid, String,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  336.         return 0;
  337.     }
  338.     else if(PlayerInfo[playerid][Army] == 3)
  339.     {
  340.         new pName[MAX_PLAYER_NAME], String[128];
  341.         GetPlayerName(playerid, pName, 24);
  342.         format(String, sizeof(String), "{A52A2A}[Ãåíåðàë]{808080}%s: %s", pName, text);
  343.         ProxDetector(30.0, playerid, String,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  344.         return 0;
  345.     }
  346.     else if(PlayerInfo[playerid][Army] == 2)
  347.     {
  348.         new pName[MAX_PLAYER_NAME], String[128];
  349.         GetPlayerName(playerid, pName, 24);
  350.         format(String, sizeof(String), "{A52A2A}[Ëåéòàíàíò]%s: %s", pName, text);
  351.         ProxDetector(30.0, playerid, String,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  352.         return 0;
  353.     }
  354.     else if(PlayerInfo[playerid][Army] == 1)
  355.     {
  356.         new pName[MAX_PLAYER_NAME], String[128];
  357.         GetPlayerName(playerid, pName, 24);
  358.         format(String, sizeof(String), "{A52A2A}[Âîåíåí]%s: %s", pName, text);
  359.         ProxDetector(30.0, playerid, String,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  360.         return 0;
  361.     }
  362.     else if(PlayerInfo[playerid][CIA] == 3)
  363.     {
  364.         new pName[MAX_PLAYER_NAME], String[128];
  365.         GetPlayerName(playerid, pName, 24);
  366.         format(String, sizeof(String), "{0088FF}[Òàåí Àãåíò]%s: %s", pName, text);
  367.         ProxDetector(30.0, playerid, String,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  368.         return 0;
  369.     }
  370.     else if(PlayerInfo[playerid][CIA] == 2)
  371.     {
  372.         new pName[MAX_PLAYER_NAME], String[128];
  373.         GetPlayerName(playerid, pName, 24);
  374.         format(String, sizeof(String), "{0088FF}[Àãåíò]%s: %s", pName, text);
  375.         ProxDetector(30.0, playerid, String,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  376.         return 0;
  377.     }
  378.     else if(PlayerInfo[playerid][CIA] == 1)
  379.     {
  380.         new pName[MAX_PLAYER_NAME], String[128];
  381.         GetPlayerName(playerid, pName, 24);
  382.         format(String, sizeof(String), "{0088FF}[Èíñïåêòîð]{808080}%s: %s", pName, text);
  383.         ProxDetector(30.0, playerid, String,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  384.         return 0;
  385.     }
  386.     else if(PlayerInfo[playerid][Fire] == 1)
  387.     {
  388.         new pName[MAX_PLAYER_NAME], String[128];
  389.         GetPlayerName(playerid, pName, 24);
  390.         format(String, sizeof(String), "{AA3333}[Ïîæàðíèêàð]{808080}%s: %s", pName, text);
  391.         ProxDetector(30.0, playerid, String,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  392.         return 0;
  393.     }
  394.     else if(PlayerInfo[playerid][News] == 1)
  395.     {
  396.         new pName[MAX_PLAYER_NAME], String[128];
  397.         GetPlayerName(playerid, pName, 24);
  398.         format(String, sizeof(String), "{33AA33}[Íîâèíàð]{808080}%s: %s", pName, text);
  399.         ProxDetector(30.0, playerid, String,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  400.         return 0;
  401.     }
  402.     else if(PlayerInfo[playerid][Goverment] == 1)
  403.     {
  404.         new pName[MAX_PLAYER_NAME], String[128];
  405.         GetPlayerName(playerid, pName, 24);
  406.         format(String, sizeof(String), "{DABB3E}[Êìåò]{808080}%s: %s", pName, text);
  407.         ProxDetector(30.0, playerid, String,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  408.         return 0;
  409.     }
  410.     else if(PlayerInfo[playerid][Licenser] == 1)
  411.     {
  412.         new pName[MAX_PLAYER_NAME], String[128];
  413.         GetPlayerName(playerid, pName, 24);
  414.         format(String, sizeof(String), "{FFFFFF}[Èíñòðóêòîð]{808080}%s: %s", pName, text);
  415.         ProxDetector(30.0, playerid, String,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  416.         return 0;
  417.     }
  418.     else if(PlayerInfo[playerid][pAdmin] == 8)
  419.     {
  420.         new pName[MAX_PLAYER_NAME], String[128];
  421.         GetPlayerName(playerid, pName, 24);
  422.         format(String, sizeof(String), "{C2A2DA}[Îñíîâàòåë]{808080}%s: %s", pName, text);
  423.         ProxDetector(30.0, playerid, String,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  424.         return 0;
  425.     }
  426.     else if(PlayerInfo[playerid][pAdmin] == 7)
  427.     {
  428.         new pName[MAX_PLAYER_NAME], String[128];
  429.         GetPlayerName(playerid, pName, 24);
  430.         format(String, sizeof(String), "{C2A2DA}[Çàìåñíèê Îñíîâàòåë]{808080}%s: %s", pName, text);
  431.         ProxDetector(30.0, playerid, String,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  432.         return 0;
  433.     }
  434.     else if(PlayerInfo[playerid][pAdmin] == 6)
  435.     {
  436.         new pName[MAX_PLAYER_NAME], String[128];
  437.         GetPlayerName(playerid, pName, 24);
  438.         format(String, sizeof(String), "{4169E1}[Ãëàâåí Àäìèí]{808080}%s: %s", pName, text);
  439.         ProxDetector(30.0, playerid, String,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  440.         return 0;
  441.     }
  442.     else if(PlayerInfo[playerid][pAdmin] == 5)
  443.     {
  444.         new pName[MAX_PLAYER_NAME], String[128];
  445.         GetPlayerName(playerid, pName, 24);
  446.         format(String, sizeof(String), "{00FFFF}[Ñêðèïòúð]{808080}%s: %s", pName, text);
  447.         ProxDetector(30.0, playerid, String,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  448.         return 0;
  449.     }
  450.     else if(PlayerInfo[playerid][pAdmin] == 4)
  451.     {
  452.         new pName[MAX_PLAYER_NAME], String[128];
  453.         GetPlayerName(playerid, pName, 24);
  454.         format(String, sizeof(String), "{4169E1}[Ãëîáàëåí Àäìèí]{808080}%s: %s", pName, text);
  455.         ProxDetector(30.0, playerid, String,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  456.         return 0;
  457.     }
  458.     else if(PlayerInfo[playerid][pAdmin] == 3)
  459.     {
  460.         new pName[MAX_PLAYER_NAME], String[128];
  461.         GetPlayerName(playerid, pName, 24);
  462.         format(String, sizeof(String), "{4169E1}[Àäìèí]{808080}%s: %s", pName, text);
  463.         ProxDetector(30.0, playerid, String,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  464.         return 0;
  465.     }
  466.     else if(PlayerInfo[playerid][pAdmin] == 2)
  467.     {
  468.         new pName[MAX_PLAYER_NAME], String[128];
  469.         GetPlayerName(playerid, pName, 24);
  470.         format(String, sizeof(String), "{FF8C00}[Ìîäåðàòîð]{808080}%s: %s", pName, text);
  471.         ProxDetector(30.0, playerid, String,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  472.         return 0;
  473.     }
  474.     else if(PlayerInfo[playerid][pAdmin] == 1)
  475.     {
  476.         new pName[MAX_PLAYER_NAME], String[128];
  477.         GetPlayerName(playerid, pName, 24);
  478.         format(String, sizeof(String), "{DABB3E}[Âèï]{808080}%s: %s", pName, text);
  479.         ProxDetector(30.0, playerid, String,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  480.         return 0;
  481.     }
  482.     else if(PlayerInfo[playerid][pAdmin] == 0)
  483.     {
  484.         new pName[MAX_PLAYER_NAME], String[128];
  485.         GetPlayerName(playerid, pName, 24);
  486.         format(String, sizeof(String), "{808080}%s: %s", pName, text);
  487.         ProxDetector(30.0, playerid, String,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
  488.         return 0;
  489.     }
  490.     return 0;
  491. }
  492.  
  493.  
  494. forward PayDay(playerid);
  495. public PayDay(playerid)
  496. {
  497.     for (new i; i < MAX_PLAYERS; i++)
  498.     {
  499.         if (IsPlayerConnected(i))
  500.         {
  501.             new string1[58];
  502.             new string2[58];
  503.             new string3[58];
  504.             new string4[58];
  505.             new nxtlevel = PlayerInfo[playerid][pLevel];
  506.             new payday = nxtlevel*1000;
  507.             GivePlayerMoney(i,payday);
  508.             PlayerInfo[playerid][Xp]++;
  509.             new wanted = GetPlayerWantedLevel(playerid);
  510.             new faction = PlayerInfo[playerid][Faction];
  511.             new jobs = PlayerInfo[playerid][Jobs];
  512.             new level = PlayerInfo[playerid][pLevel];
  513.             new xp = PlayerInfo[playerid][Xp];
  514.             new skill = PlayerInfo[playerid][Skill];
  515.             format(string1,sizeof(string1),"Wanted Level: $-%d () Level: $%d () Tax: $-%d ",wanted*3667, level*1715 , level*300-faction*350-xp*60-skill*10-jobs*300);
  516.             format(string2,sizeof(string2),"Faction: $%d () Respect point: $%d",faction*2000, xp*300);
  517.             format(string3,sizeof(string3),"Skill Point : $%d () Have Job: $%d",skill*50, jobs*1500);
  518.             format(string4,sizeof(string4),"Your Balance is: $%d",level*1715+faction*2000+xp*300+skill*50+jobs*1500-wanted*3667-level*300-faction*350-xp*60-skill*10-jobs*300);
  519.             GivePlayerMoney(playerid,-wanted*3667);
  520.             GivePlayerMoney(playerid,level*1715);
  521.             GivePlayerMoney(playerid,faction*2000);
  522.             GivePlayerMoney(playerid,xp*300);
  523.             GivePlayerMoney(playerid,skill*50);
  524.             GivePlayerMoney(playerid,jobs*1500);
  525.             SendClientMessage(playerid,COLOUR_YELLOW,"Balance:");
  526.             SendClientMessage(playerid,COLOUR_YELLOW,string1);
  527.             SendClientMessage(playerid,COLOUR_YELLOW,string2);
  528.             SendClientMessage(playerid,COLOUR_YELLOW,string3);
  529.             SendClientMessage(playerid,COLOUR_YELLOW,string4);
  530.             GameTextForPlayer(i,"  ~p~ PayDay ++",6,5000);
  531.         }
  532.     }
  533. }
  534.  
  535. forward LoadUser_data(playerid,name[],value[]);
  536. public LoadUser_data(playerid,name[],value[])
  537. {
  538.         INI_Int("Password",PlayerInfo[playerid][pPass]);
  539.         INI_Int("Cash",PlayerInfo[playerid][pCash]);
  540.         INI_Int("Admin",PlayerInfo[playerid][pAdmin]);
  541.         INI_Int("Kills",PlayerInfo[playerid][pKills]);
  542.         INI_Int("Deaths",PlayerInfo[playerid][pDeaths]);
  543.         INI_Int("Level",PlayerInfo[playerid][pLevel]);
  544.         INI_Int("Credits",PlayerInfo[playerid][Credits]);
  545.         INI_Int("Xp",PlayerInfo[playerid][Xp]);
  546.         INI_Int("Extra1",PlayerInfo[playerid][Extra1]);
  547.         INI_Int("Extra2",PlayerInfo[playerid][Extra2]);
  548.         INI_Int("Extra3",PlayerInfo[playerid][Extra3]);
  549.         INI_Int("Extra4",PlayerInfo[playerid][Extra4]);
  550.         INI_Int("Extra5",PlayerInfo[playerid][Extra5]);
  551.         INI_Int("Heroin",PlayerInfo[playerid][Heroin]);
  552.         INI_Int("Weed",PlayerInfo[playerid][Weed]);
  553.         INI_Int("Material",PlayerInfo[playerid][Material]);
  554.         INI_Int("Police",PlayerInfo[playerid][Police]);
  555.         INI_Int("CIA",PlayerInfo[playerid][CIA]);
  556.         INI_Int("Army",PlayerInfo[playerid][Army]);
  557.         INI_Int("Medic",PlayerInfo[playerid][Medic]);
  558.         INI_Int("Fire",PlayerInfo[playerid][Fire]);
  559.         INI_Int("News",PlayerInfo[playerid][News]);
  560.         INI_Int("Goverment",PlayerInfo[playerid][Goverment]);
  561.         INI_Int("Licenser",PlayerInfo[playerid][Licenser]);
  562.         INI_Int("Piss",PlayerInfo[playerid][Piss]);
  563.         INI_Int("Car License",PlayerInfo[playerid][CarLic]);
  564.         INI_Int("Truck License",PlayerInfo[playerid][TruckLic]);
  565.         INI_Int("Heli License",PlayerInfo[playerid][HeliLic]);
  566.         INI_Int("Bike License",PlayerInfo[playerid][BikeLic]);
  567.         INI_Int("Gun License",PlayerInfo[playerid][GunLic]);
  568.         INI_Int("Law License",PlayerInfo[playerid][LawLic]);
  569.         INI_Int("Passport",PlayerInfo[playerid][Passport]);
  570.         INI_Int("Radio",PlayerInfo[playerid][Radio]);
  571.         INI_Int("Jobs",PlayerInfo[playerid][Jobs]);
  572.         INI_Int("Faction",PlayerInfo[playerid][Faction]);
  573.         INI_Int("Wanted Level",PlayerInfo[playerid][Wanted]);
  574.         INI_Int("Skill Point",PlayerInfo[playerid][Skill]);
  575.         return 1;
  576.     }
  577.  
  578.     stock UserPath(playerid)
  579.     {
  580.         new string[128],playername[MAX_PLAYER_NAME];
  581.         GetPlayerName(playerid,playername,sizeof(playername));
  582.         format(string,sizeof(string),PATH,playername);
  583.         return string;
  584.     }
  585.  
  586.  
  587.     main()
  588.     {
  589.             print("\n----------------------------------");
  590.             print(" Bulgarian RolePlay");
  591.             print("----------------------------------\n");
  592.     }
  593.  
  594. public OnGameModeInit()
  595. {
  596.     // Don't use these lines if it's a filterscript
  597.     SetGameModeText("BGRP alfa v0.3   ");
  598.     SendRconCommand("mapname  .•BG-RP•.");
  599.     DisableInteriorEnterExits();
  600.     EnableStuntBonusForAll(0);
  601.     ShowPlayerMarkers(0);
  602.     UsePlayerPedAnims();
  603.     SetTimer("PayDay", 3600000, true); //60 min 3600000
  604.     SetTimer("PlayTime", 60000, true); //1 min
  605.  
  606.     AddPlayerClass(62, 1568.6295,-1689.9706,6.2188, 260, 0, 0, 0, 0, 0, 0);// 1
  607.     AddPlayerClass(106, 1568.6295,-1689.9706,6.2188, 260, 0, 0, 0, 0, 0, 0);// 2
  608.     AddPlayerClass(42, 1568.6295,-1689.9706,6.2188, 260, 0, 0, 0, 0, 0, 0);// 3
  609.     AddPlayerClass(49, 1568.6295,-1689.9706,6.2188, 260, 0, 0, 0, 0, 0, 0);// 4
  610.     AddPlayerClass(103, 1568.6295,-1689.9706,6.2188, 260, 0, 0, 0, 0, 0, 0);// 5
  611.     AddPlayerClass(67, 1568.6295,-1689.9706,6.2188, 260, 0, 0, 0, 0, 0, 0);// 6
  612.     AddPlayerClass(91, 1568.6295,-1689.9706,6.2188, 260, 0, 0, 0, 0, 0, 0);// 7
  613.     return 1;
  614.     }
  615.  
  616. public SetupPlayerForClassSelection(playerid)
  617. {
  618.     // Set the player's orientation when they're selecting a class.
  619.     SetPlayerPos(playerid,1984.4445,157.9501,55.9384);
  620.     SetPlayerCameraPos(playerid,1984.4445,160.9501,55.9384);
  621.     SetPlayerCameraLookAt(playerid,1984.4445,157.9501,55.9384);
  622.     SetPlayerFacingAngle(playerid,0.0);
  623.     SetWeather(18);
  624.  
  625. }
  626. public OnPlayerRequestClass(playerid, classid)
  627. {
  628.     SetPlayerWeather(playerid,0);
  629.     SetPlayerTime(playerid, 12, 0);
  630.     SetupPlayerForClassSelection(playerid);
  631.     if(classid == 0 || classid == 1 || classid == 3 || classid == 4 || classid == 5 || classid == 6 || classid == 7 ) {
  632.         GameTextForPlayer(playerid,"~w~Welcome",5000,6);
  633.         gTeam[playerid] = CIVILIAN;
  634.     }
  635.     return 1;
  636. }
  637.  
  638. public OnPlayerSpawn(playerid)
  639. {
  640.     TextDrawSetString(HealthBar[playerid],"..........");
  641.     TextDrawShowForPlayer(playerid,HealthBar[playerid]);
  642.     FirstSpawn[playerid] += 1;
  643.     new Float:health;
  644.     GetPlayerHealth(playerid, health);
  645.     CurHealth[playerid] = health;
  646.     if(FirstSpawn[playerid] == 1) SetTimerEx("Hungry",N2E_TIME,1,"i",playerid);
  647.  
  648.     new level = PlayerInfo[playerid][pLevel];
  649.     SetPlayerScore(playerid,level);
  650.     new wlevel = PlayerInfo[playerid][Wanted];
  651.     SetPlayerWantedLevel(playerid,wlevel);
  652.  
  653.     new WantedLevel = GetPlayerWantedLevel(playerid);
  654.     if (GetPlayerWantedLevel(playerid) > 1)
  655.     {
  656.          SetTimerEx("UnJail2",WantedLevel*1000*120,0,"i",playerid);
  657.     }
  658.     if (!AlreadyGiveWeapons[playerid]) SetTimerEx("LoadWeaponsToFile",250,false,"i",playerid);
  659.     if(gTeam[playerid] == CIVILIAN) {
  660.         SetPlayerHealth(playerid,100);
  661.         }
  662.    return 1;}
  663. public UnJail2(playerid)
  664. {
  665.     SetPlayerPos(playerid,1568.6295,-1689.9706,6.2188);
  666.     SetPlayerInterior(playerid, 0);
  667.     SendClientMessage(playerid, 0xFF0000AA, "Òè ñè ïóñíàò îò çàòâîðà!");
  668.     SetPlayerWantedLevel(playerid,0);
  669.     return 1;
  670. }
  671.  
  672.  
  673.  
  674.  
  675.     public OnPlayerConnect(playerid)
  676.     {
  677.  
  678.         HealthBar[playerid] = TextDrawCreate(549.000000,52.000000,"..........");
  679.         TextDrawAlignment(HealthBar[playerid],1);
  680.         TextDrawBackgroundColor(HealthBar[playerid],0x00ff00ff);
  681.         TextDrawFont(HealthBar[playerid],3);
  682.         TextDrawLetterSize(HealthBar[playerid],0.569999,2.549999);
  683.         TextDrawColor(HealthBar[playerid],0x00ff0033);
  684.         TextDrawSetOutline(HealthBar[playerid],1);
  685.         TextDrawSetProportional(HealthBar[playerid],1);
  686.         TextDrawSetShadow(HealthBar[playerid],1);
  687.  
  688.         AlreadyGiveWeapons[playerid] = false;
  689.         new string[64], pName[MAX_PLAYER_NAME];
  690.         GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
  691.         new plrIP[16];
  692.         GetPlayerIp(playerid, plrIP, sizeof(plrIP));
  693.         format(string,sizeof string,"%s has joined the server - %s!",pName,plrIP);
  694.         SendClientMessageToAll(green,string);
  695.         new string1[64], pName1[MAX_PLAYER_NAME];
  696.         GetPlayerName(playerid,pName1,MAX_PLAYER_NAME);
  697.         format(string1,sizeof string1,"Welcome %s!",pName);
  698.         GameTextForPlayer(playerid, string1, 5000, 3);
  699.         if(fexist(UserPath(playerid)))
  700.         {
  701.             INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
  702.             ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Ëîãèí",""COL_WHITE"Ïîïúëíåòå ïàðîëàòà ñè ïðåäè äà ñå ëîãíåòå.","Ëîãèí","Èçëåç");
  703.         }
  704.         else
  705.         {
  706.             ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COL_WHITE"Ðåãèñòðèðàíå...",""COL_WHITE"Ïîïúëíåòå ïàðîëàòà ñè ïðåäè äà ðåãèñòðèðàòå íîâ àêàóíò.","Ðåãèñòðèðàíå","Èçëåç");
  707.         }
  708.         new formatZ[256];
  709.         format(formatZ,sizeof(formatZ),"Fish_%s.ini",PlayerName(playerid));
  710.         if(!udb_Exists(formatZ))
  711.         {
  712.             udb_Create(formatZ,"209010");
  713.         }
  714.  
  715.         Fishes[playerid] = dUserINT(formatZ).("Fishes");
  716.         FishingTool[playerid] = dUserINT(formatZ).("FishingTool");
  717.         Worms[playerid] = dUserINT(formatZ).("Worms");
  718.  
  719.         return 1;
  720.     }
  721.  
  722.     public OnPlayerDisconnect(playerid, reason)
  723.     {
  724.  
  725.         TextDrawDestroy(HealthBar[playerid]);
  726.         SaveWeaponsToFile(playerid);
  727.         new
  728.             string[64],
  729.             name[MAX_PLAYER_NAME];
  730.         GetPlayerName(playerid,name,MAX_PLAYER_NAME);
  731.         switch(reason)
  732.         {
  733.             case 0: format(string,sizeof string,"%s left the server. (Timed out)",name);
  734.             case 1: format(string,sizeof string,"%s left the server. (Leaving)",name);
  735.             case 2: format(string,sizeof string,"%s left the server. (Kicked/Banned)",name);
  736.         }
  737.         SendClientMessageToAll(red, string);
  738.         INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
  739.         fremove(UserPath(playerid));
  740.         new INI:File = INI_Open(UserPath(playerid));
  741.         INI_SetTag(File,"data");
  742.         INI_WriteInt(File,"Password",PlayerInfo[playerid][pPass]);
  743.         INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
  744.         INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]);
  745.         INI_WriteInt(File,"Kills",PlayerInfo[playerid][pKills]);
  746.         INI_WriteInt(File,"Deaths",PlayerInfo[playerid][pDeaths]);
  747.         INI_WriteInt(File,"Level",PlayerInfo[playerid][pLevel]);
  748.         INI_WriteInt(File,"Credits",PlayerInfo[playerid][Credits]);
  749.         INI_WriteInt(File,"Xp",PlayerInfo[playerid][Xp]);
  750.         INI_WriteInt(File,"Extra1",PlayerInfo[playerid][Extra1]);
  751.         INI_WriteInt(File,"Extra2",PlayerInfo[playerid][Extra2]);
  752.         INI_WriteInt(File,"Extra3",PlayerInfo[playerid][Extra3]);
  753.         INI_WriteInt(File,"Extra4",PlayerInfo[playerid][Extra4]);
  754.         INI_WriteInt(File,"Extra5",PlayerInfo[playerid][Extra5]);
  755.         INI_WriteInt(File,"Heroin",PlayerInfo[playerid][Heroin]);
  756.         INI_WriteInt(File,"Weed",PlayerInfo[playerid][Weed]);
  757.         INI_WriteInt(File,"Material",PlayerInfo[playerid][Material]);
  758.         INI_WriteInt(File,"Police",PlayerInfo[playerid][Police]);
  759.         INI_WriteInt(File,"CIA",PlayerInfo[playerid][CIA]);
  760.         INI_WriteInt(File,"Army",PlayerInfo[playerid][Army]);
  761.         INI_WriteInt(File,"Medic",PlayerInfo[playerid][Medic]);
  762.         INI_WriteInt(File,"Fire",PlayerInfo[playerid][Fire]);
  763.         INI_WriteInt(File,"News",PlayerInfo[playerid][News]);
  764.         INI_WriteInt(File,"Goverment",PlayerInfo[playerid][Goverment]);
  765.         INI_WriteInt(File,"Licenser",PlayerInfo[playerid][Licenser]);
  766.         INI_WriteInt(File,"Piss",PlayerInfo[playerid][Piss]);
  767.         INI_WriteInt(File,"Car License",PlayerInfo[playerid][CarLic]);
  768.         INI_WriteInt(File,"Truck License",PlayerInfo[playerid][TruckLic]);
  769.         INI_WriteInt(File,"Heli License",PlayerInfo[playerid][HeliLic]);
  770.         INI_WriteInt(File,"Bike License",PlayerInfo[playerid][BikeLic]);
  771.         INI_WriteInt(File,"Gun License",PlayerInfo[playerid][GunLic]);
  772.         INI_WriteInt(File,"Law License",PlayerInfo[playerid][LawLic]);
  773.         INI_WriteInt(File,"Passport",PlayerInfo[playerid][Passport]);
  774.         INI_WriteInt(File,"Radio",PlayerInfo[playerid][Radio]);
  775.         INI_WriteInt(File,"Jobs",PlayerInfo[playerid][Jobs]);
  776.         INI_WriteInt(File,"Faction",PlayerInfo[playerid][Faction]);
  777.         INI_WriteInt(File,"Wanted Level",GetPlayerWantedLevel(playerid));
  778.         INI_WriteInt(File,"Skill Point",PlayerInfo[playerid][Skill]);
  779.         INI_Close(File);
  780.         new formatZ2[256];
  781.         format(formatZ2,sizeof(formatZ2),"Fish_%s.ini",PlayerName(playerid));
  782.         dUserSetINT(formatZ2).("Fishes",Fishes[playerid]);
  783.         dUserSetINT(formatZ2).("FishingTool",FishingTool[playerid]);
  784.         dUserSetINT(formatZ2).("Worms",Worms[playerid]);
  785.         return 1;
  786.     }
  787. SaveWeaponsToFile(playerid)
  788. {
  789.     new i, pathe[50], string[128], weaponid, ammo;
  790.     pathe = GetPlayerFormattedName(playerid);
  791.     if (!dini_Exists(pathe)) dini_Create(pathe);
  792.     for (i=0; i<13; i++)
  793.     {
  794.         GetPlayerWeaponData(playerid,i,weaponid,ammo);
  795.         format(string,sizeof(string),"Weapon - %d",i);
  796.         dini_IntSet(pathe,string,weaponid);
  797.         format(string,sizeof(string),"AmmoID - %d",i);
  798.         dini_IntSet(pathe,string,ammo == 65535 ? 0 : ammo);
  799.     }
  800. }
  801.  
  802. forward LoadWeaponsToFile(playerid);
  803. public LoadWeaponsToFile(playerid)
  804. {
  805.     new i, pathe[50], string[128], weaponid, ammo;
  806.     pathe = GetPlayerFormattedName(playerid);
  807.     ResetPlayerWeapons(playerid);
  808.     for (i=0; i<13; i++)
  809.     {
  810.         format(string,sizeof(string),"Weapon - %d",i);
  811.         weaponid = dini_Int(pathe,string);
  812.         format(string,sizeof(string),"AmmoID - %d",i);
  813.         ammo = dini_Int(pathe,string);
  814.         GivePlayerWeapon(playerid,weaponid,ammo);
  815.     }
  816.     AlreadyGiveWeapons[playerid] = true;
  817. }
  818.  
  819. GetPlayerFormattedName(playerid)
  820. {
  821.     new name[24], full[50];
  822.     GetPlayerName(playerid,name,sizeof(name));
  823.     format(full,sizeof(full),"%s/%s.txt",PATHE,name);
  824.     return full;
  825. }
  826.     public OnPlayerDeath(playerid, killerid, reason)
  827.     {
  828.  
  829.         TextDrawHideForPlayer(playerid,HealthBar[playerid]);
  830.         Worms[playerid] = 0; FishWeight[playerid] = 0;
  831.         Fishes[playerid] = 0; FishingTool[playerid] = 0;
  832.         PlayerInfo[killerid][pKills]++;
  833.         PlayerInfo[playerid][pDeaths]++;
  834.         return 1;
  835.     }
  836.     public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  837.     {
  838.     switch( dialogid )
  839.         {
  840.     case DIALOG_REGISTER:
  841.             {
  842.                 if (!response) return Kick(playerid);
  843.                 if(response)
  844.                 {
  845.                     if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, ""COL_WHITE"Ðåãèñòðèðàíå...",""COL_RED"Âúâåëè ñòå ãðåøíà ïàðîëà.\n"COL_WHITE"Ïîïúëíåòå ïàðîëàòà ñè ïðåäè äà ðåãèñòðèðàòå íîâ àêàóíò.","Ðåãèñòðèðàé","Èçëåç");
  846.                     new INI:File = INI_Open(UserPath(playerid));
  847.                     INI_SetTag(File,"data");
  848.                     INI_WriteInt(File,"Password",udb_hash(inputtext));
  849.                     INI_WriteInt(File,"Cash",0);
  850.                     INI_WriteInt(File,"Admin",0);
  851.                     INI_WriteInt(File,"Kills",0);
  852.                     INI_WriteInt(File,"Deaths",0);
  853.                     INI_WriteInt(File,"Level",0);
  854.                     INI_WriteInt(File,"Vip",0);
  855.                     INI_WriteInt(File,"Credits",0);
  856.                     INI_WriteInt(File,"Xp",0);
  857.                     INI_WriteInt(File,"Extra1",0);
  858.                     INI_WriteInt(File,"Extra2",0);
  859.                     INI_WriteInt(File,"Extra3",0);
  860.                     INI_WriteInt(File,"Extra4",0);
  861.                     INI_WriteInt(File,"Extra5",0);
  862.                     INI_WriteInt(File,"Heroin",0);
  863.                     INI_WriteInt(File,"Weed",0);
  864.                     INI_WriteInt(File,"Material",0);
  865.                     INI_WriteInt(File,"Police",0);
  866.                     INI_WriteInt(File,"CIA",0);
  867.                     INI_WriteInt(File,"Army",0);
  868.                     INI_WriteInt(File,"Medic",0);
  869.                     INI_WriteInt(File,"Fire",0);
  870.                     INI_WriteInt(File,"News",0);
  871.                     INI_WriteInt(File,"Goverment",0);
  872.                     INI_WriteInt(File,"Licenser",0);
  873.                     INI_WriteInt(File,"Piss",0);
  874.                     INI_WriteInt(File,"Car License",0);
  875.                     INI_WriteInt(File,"Truck License",0);
  876.                     INI_WriteInt(File,"Heli License",0);
  877.                     INI_WriteInt(File,"Bike Lecense",0);
  878.                     INI_WriteInt(File,"Gun License",0);
  879.                     INI_WriteInt(File,"Law License",0);
  880.                     INI_WriteInt(File,"Passport",0);
  881.                     INI_WriteInt(File,"Time Played",0);
  882.                     INI_WriteInt(File,"Radio",0);
  883.                     INI_WriteInt(File,"Jobs",0);
  884.                     INI_WriteInt(File,"Faction",0);
  885.                     INI_WriteInt(File,"Wanted Level",0);
  886.                     INI_WriteInt(File,"Skill Point",0);
  887.                     INI_Close(File);
  888.  
  889.                     ShowPlayerDialog(playerid, DIALOG_SUCCESS_1, DIALOG_STYLE_MSGBOX,""COL_WHITE"Óñïåøíî!",""COL_GREEN"×óäåñíî! Âàøèÿ àêàóíò å ñúçäàäåí óñïåøíî è ðàáîòè. Ðåëîãíåòå çà äà çàïèøåòå ñòàòèñòèêàòà ñè!","Ok","");
  890.                     SetSpawnInfo(playerid, 0, 0, 1958.33, 1343.12, 15.36, 269.15, 0, 0, 0, 0, 0, 0);
  891.                     SpawnPlayer(playerid);
  892.                             }
  893.             }
  894.  
  895.     case DIALOG_LOGIN:
  896.             {
  897.                 if ( !response ) return Kick ( playerid );
  898.                 if( response )
  899.                 {
  900.                     if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])
  901.                     {
  902.                         //INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
  903.                         GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
  904.                         ShowPlayerDialog(playerid, DIALOG_SUCCESS_2, DIALOG_STYLE_MSGBOX,""COL_WHITE"Óñïåøíî!",""COL_GREEN"Âèå óñïåøíî ñå ëîãíàõòå!","Ok","");
  905.                     }
  906.                     else
  907.                     {
  908.                         ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Ëîãèí",""COL_RED"Âèå ñòå âúâåëè ãðåøíà ïàðîëà.\n"COL_WHITE"Ïîïúëíåòå ïàðîëàòà ñè ïðåäè äà ñå ëîãíåòå.","Ëîãèí","Èçëåç");
  909.                     }
  910.                     return 1;
  911.                 }
  912.             }
  913.         }
  914.     new string[256];
  915.  
  916.     if(dialogid == 360)
  917.     {
  918.         if(listitem == 0)
  919.         {
  920.             if(GetPlayerMoney(playerid) >= FishingToolPrice)
  921.             {
  922.                 SendClientMessage(playerid, COLOR_YELLOW, "Successfully purchased Fishing tool! You can now use /fish");
  923.                 SendClientMessage(playerid, COLOR_YELLOW, ", but you also need some baits");
  924.                 FishingTool[playerid] = 1;
  925.                 GivePlayerMoney(playerid, -FishingToolPrice);
  926.             }
  927.             else
  928.             {
  929.                 SendClientMessage(playerid, COLOR_GREY, "You don't have enough money");
  930.             }
  931.         }
  932.         if(listitem == 1)
  933.         {
  934.             format(string,sizeof(string),"Enter below how much baits do you want.\n$%d per one",BaitPrice);
  935.             ShowPlayerDialog(playerid, 361, DIALOG_STYLE_INPUT, "Baits",string,"Purchase","Exit");
  936.         }
  937.     }
  938.     if(dialogid == 361 && response)
  939.     {
  940.         new price = BaitPrice;
  941.         new baits = strval(inputtext);
  942.         if(baits > 0)
  943.         {
  944.             new price1 = price*baits;
  945.             if(GetPlayerMoney(playerid) >= price1)
  946.             {
  947.                 GivePlayerMoney(playerid, -price1);
  948.                 format(string,sizeof(string),"You just purchased %d worms for $%d", baits, price1);
  949.                 SendClientMessage(playerid, COLOR_GREEN, string);
  950.                 Worms[playerid] += baits;
  951.                 return 1;
  952.             }
  953.             else
  954.             {
  955.                 SendClientMessage(playerid, COLOR_GREY, "You don't have that much money.");
  956.             }
  957.         }
  958.         else
  959.         {
  960.             SendClientMessage(playerid, COLOR_GREY, "You can't buy baits less than 0");
  961.         }
  962.     }
  963.         switch(dialogid)
  964.         {
  965.             case GUI_DIALOG_ID:
  966.             {
  967.                 switch(listitem)
  968.                 {
  969.                     case 0: if(response) return ShowPlayerDialog(playerid, (GUI_DIALOG_ID + 1), DIALOG_STYLE_INPUT, "{ffffff}Set poll question", "{ffffff}Enter a poll question text.\n{ff0000}[!] - There must be no longer than 24 characters.", "Set", "Close");
  970.                     case 1: if(response) return ShowPlayerDialog(playerid, (GUI_DIALOG_ID + 2), DIALOG_STYLE_INPUT, "{ffffff}Set Y variant", "{ffffff}Enter a Y variant text.\n{ff0000}[!] - There must be no longer than 15 characters.", "Set", "Close");
  971.                     case 2: if(response) return ShowPlayerDialog(playerid, (GUI_DIALOG_ID + 3), DIALOG_STYLE_INPUT, "{ffffff}Set N variant", "{ffffff}Enter a N variant text.\n{ff0000}[!] - There must be no longer than 15 characters.", "Set", "Close");
  972.                     case 3:
  973.                                 {
  974.                                     if(response)
  975.                                     {
  976.                                             new Masyvas[169];
  977.                                             if(Poll[Start])
  978.                                             {
  979.                                                     Poll[Start] = false;
  980.                                                     format(Masyvas,135,"{ffff00}Y variant votes: {ff0000}%d {ffff00}people(-s).\n{ffff00}N variant votes: {ff0000}%d {ffff00}people(-s).",Poll[yCount],Poll[nCount]);
  981.                                                     ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "{ffffff}Results", Masyvas, " ", "");
  982.                                                     for(new i; i < MAX_PLAYERS; i++)
  983.                                                         {
  984.                                                                 if(IsPlayerConnected(i)) TextDrawHideForPlayer(i, Textdraw0[i]);
  985.                                                         }
  986.                                                     NullVariables();
  987.                                                     return 1;
  988.                                                 }
  989.                                                 else
  990.                                                 {
  991.                                                     if(!strcmp(Poll[Question],"None",true)) return SendClientMessage(playerid, RED, "[]: {ffffff}The question is not entered.");
  992.                                                     else if(!strcmp(Poll[yVariant],"None",true)) return SendClientMessage(playerid, RED, "[]: {ffffff}The Y variant is not entered.");
  993.                                                     else if(!strcmp(Poll[nVariant],"None",true)) return SendClientMessage(playerid, RED, "[]: {ffffff}The N variant is not entered.");
  994.                                                     Poll[Start] = true;
  995.                                                     SendClientMessageToAll(WHITE, "[ . ]: {ffff00}Poll start! Everybody can vote.");
  996.                                                     Poll[Organizator] = playerid;
  997.                                                     for(new i; i < MAX_PLAYERS; i++)
  998.                                                     {
  999.                                                         if(IsPlayerConnected(i))
  1000.                                                         {
  1001.                                                                 TextDrawShowForPlayer(playerid, Textdraw0[i]);
  1002.                                                                 format(Masyvas,169,"         ~y~:: ~w~POLL ~y~::~n~~n~~r~(?):~w~ %s~n~~n~~p~(Y)~w~ %s~n~~p~(N)~w~ %s~n~~n~PRESS ~y~Y~w~ OR ~y~N",Poll[Question],Poll[yVariant],Poll[nVariant]);
  1003.                                                                 TextDrawSetString(Textdraw0[i], Masyvas);
  1004.                                                                 Poll[GeneralCount]++;
  1005.                                                                 }
  1006.                                                         }
  1007.                                                 }
  1008.                                         }
  1009.                                 }
  1010.                                 case 4:
  1011.                                 {
  1012.                                     if(response)
  1013.                                     {
  1014.                                                 NullVariables();
  1015.                                                 SendClientMessage(playerid, YELLOW, "[ * ]: {ffffff} Parameters clear.");
  1016.                                         }
  1017.                                 }
  1018.                         }
  1019.                 }
  1020.                 case (GUI_DIALOG_ID + 1):
  1021.                 {
  1022.                         if(response)
  1023.                         {
  1024.                             if(isnull(inputtext)) return ShowPlayerDialog(playerid, (GUI_DIALOG_ID + 1), DIALOG_STYLE_INPUT, "{ffffff}Set poll question", "{ffffff}Enter a poll question text.\n{ff0000}[!] - There must be no longer than 24 characters.", "Set", "Close");
  1025.                             else if(strlen(inputtext) > MAX_QUESTION_SIZE) return SendClientMessage(playerid, RED, "[]: {ffffff}The question is too long.");
  1026.  
  1027.                             format(Poll[Question], strlen(inputtext) + 1, "%s", inputtext);
  1028.                             SendClientMessage(playerid, YELLOW, "[ * ]: {ffffff} Poll question set.");
  1029.                     }
  1030.                 }
  1031.                 case (GUI_DIALOG_ID + 2):
  1032.                 {
  1033.                         if(response)
  1034.                         {
  1035.                             if(isnull(inputtext)) return ShowPlayerDialog(playerid, (GUI_DIALOG_ID + 2), DIALOG_STYLE_INPUT, "{ffffff}Set Y variant", "{ffffff}Enter a Y variant text.\n{ff0000}[!] - There must be no longer than 15 characters.", "Set", "Close");
  1036.                             else if(strlen(inputtext) > MAX_VARIANT_SIZE) return SendClientMessage(playerid, RED, "[]: {ffffff}Per ilgas tekstas.");
  1037.  
  1038.                             format(Poll[yVariant], strlen(inputtext) + 1, "%s", inputtext);
  1039.                             SendClientMessage(playerid, YELLOW, "[ * ]: {ffffff} Y variant set.");
  1040.                         }
  1041.                 }
  1042.                 case (GUI_DIALOG_ID + 3):
  1043.                 {
  1044.                         if(response)
  1045.                         {
  1046.                             if(isnull(inputtext)) return ShowPlayerDialog(playerid, (GUI_DIALOG_ID + 3), DIALOG_STYLE_INPUT, "{ffffff}Set N variant", "{ffffff}Enter a N variant text.\n{ff0000}[!] - There must be no longer than 15 characters.", "Set", "Close");
  1047.                             else if(strlen(inputtext) > MAX_VARIANT_SIZE) return SendClientMessage(playerid, RED, "[]: {ffffff}Per ilgas tekstas.");
  1048.  
  1049.                             format(Poll[nVariant], strlen(inputtext) + 1, "%s", inputtext);
  1050.                             SendClientMessage(playerid, YELLOW, "[ * ]: {ffffff} N variant set.");
  1051.                         }
  1052.                 }
  1053.         }
  1054.  
  1055.     return 0;
  1056. }
  1057. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  1058. {
  1059.         if(Poll[Start])
  1060.         {
  1061.             if(!Balsavo[playerid])
  1062.             {
  1063.                 if(newkeys == KEY_YES)
  1064.                         {
  1065.                                 Poll[yCount]++;
  1066.                                 Balsavo[playerid] = false;
  1067.                                 if((Poll[yCount] + Poll[nCount]) == Poll[GeneralCount])
  1068.                                 {
  1069.                                     new Masyvas[135];
  1070.                                     Poll[Start] = false;
  1071.                                     format(Masyvas,135,"{ffff00}Y variant votes: {ff0000}%d {ffff00}people(-s).\n{ffff00}N variant votes: {ff0000}%d {ffff00}people(-s).",Poll[yCount],Poll[nCount]);
  1072.                                     ShowPlayerDialog(Poll[Organizator], 0, DIALOG_STYLE_MSGBOX, "{ffffff}Results", Masyvas, " ", "");
  1073.                                     for(new i; i < MAX_PLAYERS; i++)
  1074.                                         {
  1075.                                                 if(IsPlayerConnected(i)) TextDrawHideForPlayer(i, Textdraw0[i]);
  1076.                                         }
  1077.                                     NullVariables();
  1078.                                 }
  1079.                         }
  1080.                 else if(newkeys == KEY_NO)
  1081.                         {
  1082.                                 Poll[nCount]++;
  1083.                                 Balsavo[playerid] = false;
  1084.                                 if((Poll[yCount] + Poll[nCount]) == Poll[GeneralCount])
  1085.                                 {
  1086.                                     new Masyvas[135];
  1087.                                     Poll[Start] = false;
  1088.                                     format(Masyvas,135,"{ffff00}Y variant votes: {ff0000}%d {ffff00}people(-s).\n{ffff00}N variant votes: {ff0000}%d {ffff00}people(-s).",Poll[yCount],Poll[nCount]);
  1089.                                     ShowPlayerDialog(Poll[Organizator], 0, DIALOG_STYLE_MSGBOX, "{ffffff}Rezultatai", Masyvas, " ", "");
  1090.                                     for(new i; i < MAX_PLAYERS; i++)
  1091.                                         {
  1092.                                                 if(IsPlayerConnected(i)) TextDrawHideForPlayer(i, Textdraw0[i]);
  1093.                                         }
  1094.                                     NullVariables();
  1095.                                 }
  1096.                         }
  1097.                 }
  1098.         }
  1099.         return 1;
  1100. }
  1101.  
  1102. public GetPlayerWeatherArea(playerid)
  1103. {
  1104.     new Float:x, Float:y, Float:z;
  1105.     if (!GetPlayerPos(playerid, x, y, z) || z > 900) return 0;
  1106.     for (new zoneid; zoneid < MAX_ZONES; zoneid++)
  1107.     {
  1108.         if(x > zones[zoneid][zone_minx] &&
  1109.         x < zones[zoneid][zone_maxx] &&
  1110.         y > zones[zoneid][zone_miny] &&
  1111.         y < zones[zoneid][zone_maxy] ) return zones[zoneid][zone_areaid];
  1112.     }
  1113.     return 0;
  1114. }
  1115.  
  1116. public GetPlayerWeather(playerid)
  1117. {
  1118.     return AreaCurrentWeather[GetPlayerWeatherArea(playerid)];
  1119. }
  1120.  
  1121. public GetAreaWeather(areaid)
  1122. {
  1123.     return AreaCurrentWeather[areaid];
  1124. }
  1125.  
  1126. public SetAreaWeather(areaid, weatherid)
  1127. {
  1128.     if (areaid >= MAX_AREAS) return false;
  1129.     AreaCurrentWeather[areaid] = weatherid;
  1130.     for (new playerid; playerid < MaxPlayers; playerid++) if (IsPlayerConnected(playerid))
  1131.     {
  1132.         if (PlayerAreaID[playerid] == areaid) SetPlayerWeather(playerid, weatherid);
  1133.     }
  1134.     return 1;
  1135. }
  1136.  
  1137. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  1138. {
  1139.     if (newinteriorid) SetPlayerWeather(playerid, 0);
  1140. }
  1141. public StreamerCheck()
  1142. {
  1143.     for (new playerid; playerid < MaxPlayers; playerid++) if (GetPlayerState(playerid) && !GetPlayerInterior(playerid))
  1144.     {
  1145.         new areaid = GetPlayerWeatherArea(playerid);
  1146.         if (PlayerAreaID[playerid] == areaid) continue;
  1147.         //Player entered new area
  1148.         PlayerAreaID[playerid] = areaid;
  1149.         SetPlayerWeather(playerid, AreaCurrentWeather[areaid]);
  1150.         CallRemoteFunction("OnPlayerEnterWeatherArea", "ddd", playerid, areaid, AreaCurrentWeather[areaid]);
  1151.     }
  1152. }
  1153. public OnFilterScriptInit()
  1154. {
  1155.     //Labels
  1156.     Create3DTextLabel("Equipment Room - /enter ", COLOR_WHITE, 1568.6295,-1689.9706,6.2188, 10.0, 0, 0);
  1157.     Create3DTextLabel("Los Santos Police Department", COLOR_WHITE, 1554.0641,-1708.2268,6.2188, 10.0, 0, 0);
  1158.     Create3DTextLabel("Los Santos Police Department", COLOR_WHITE, 1550.8027,-1697.4136,6.2188, 10.0, 0, 0);
  1159.     Create3DTextLabel("Los Santos Police Department", COLOR_WHITE, 1532.0746,-1672.9426,6.2188, 10.0, 0, 0);
  1160.     Create3DTextLabel("Los Santos Police Department", COLOR_WHITE, 1549.7200,-1656.8212,6.2188, 10.0, 0, 0);
  1161.  
  1162.  
  1163.     //Vehicles
  1164.     AddStaticVehicle(596,1528.7388,-1687.8563,5.6116,89.5453,0,1); // PD car 1
  1165.     AddStaticVehicle(596,1528.4889,-1683.9357,5.6126,90.9261,0,1); // PD car 2
  1166.     AddStaticVehicle(596,1544.7776,-1684.2469,5.6126,88.8893,0,1); // PD car 3
  1167.     AddStaticVehicle(596,1545.6973,-1680.6071,5.6106,90.6858,0,1); // PD car 4
  1168.     AddStaticVehicle(596,1546.1519,-1667.9142,5.6102,268.5811,0,1); // PD car 5
  1169.     AddStaticVehicle(596,1544.9795,-1655.1194,5.6118,269.7381,0,1); // PD car 6
  1170.     AddStaticVehicle(596,1545.2738,-1650.8409,5.6079,268.8639,0,1); // PD car 7
  1171.     AddStaticVehicle(596,1564.4762,-1713.1947,5.6106,90.1474,0,1); // PD car 8
  1172.     AddStaticVehicle(596,1564.3260,-1709.4965,5.6115,87.3918,0,1); // PD car 9
  1173.     AddStaticVehicle(596,1574.3693,-1711.2539,5.6111,179.7121,0,1); // PD car 10
  1174.  
  1175.     MaxPlayers = GetMaxPlayers();
  1176.     SetTimer("StreamerCheck", WEATHER_TIMER_INTERVAL, true);
  1177.     SetTimer("Weather", 60 * 300000, 10);
  1178.     Count = 0;
  1179.     fishing = AddStaticPickup(1239, 23, 153.9523,-1946.2955,5.1874);
  1180.  
  1181.  
  1182.     NullVariables();
  1183.  
  1184.     for(new i; i < MAX_PLAYERS; i++)
  1185.     {
  1186.                 Textdraw0[i] = TextDrawCreate(434.000000, 110.000000, "         ~y~:: ~w~APKLAUSA ~y~::~n~~n~~r~(?):~w~ Ka jus?~n~~n~~p~(Y)~w~ Nieko.~n~~p~(N)~w~ Eik nx!~n~~n~Spausk ~y~Y~w~ arba ~y~N");
  1187.                 TextDrawBackgroundColor(Textdraw0[i], 255);
  1188.                 TextDrawFont(Textdraw0[i], 2);
  1189.                 TextDrawLetterSize(Textdraw0[i], 0.320000, 0.899999);
  1190.                 TextDrawColor(Textdraw0[i], -1);
  1191.                 TextDrawSetOutline(Textdraw0[i], 0);
  1192.                 TextDrawSetProportional(Textdraw0[i], 1);
  1193.                 TextDrawSetShadow(Textdraw0[i], 0);
  1194.                 TextDrawUseBox(Textdraw0[i], 1);
  1195.                 TextDrawBoxColor(Textdraw0[i], 572661640);
  1196.                 TextDrawTextSize(Textdraw0[i], 647.000000, 0.000000);
  1197.         }
  1198.         for(new i; i<MAX_PLAYERS; i++)
  1199.         {
  1200.             if(IsPlayerConnected(i))
  1201.             {
  1202.                 OnPlayerConnect(i);
  1203.             }
  1204.         }
  1205.         return 1;
  1206. }
  1207. public OnFilterScriptExit()
  1208. {
  1209.         for(new i; i<MAX_PLAYERS; i++)
  1210.         {
  1211.             if(IsPlayerConnected(i))
  1212.             {
  1213.                 TextDrawDestroy(HealthBar[i]);
  1214.             }
  1215.         }
  1216.         return 1;
  1217. }
  1218.  
  1219. forward Weather();
  1220. public Weather()
  1221. {
  1222.     switch(random(45))
  1223.     {
  1224.         case 0:
  1225.         {
  1226.             SetAreaWeather(WEATHER_AREA_BONE_COUNTY, 1);
  1227.             SetAreaWeather(WEATHER_AREA_WHETSTONE, 13);
  1228.             SetAreaWeather(WEATHER_AREA_RED_COUNTY, 25);
  1229.             SetAreaWeather(WEATHER_AREA_LOS_SANTOS, 13);//
  1230.             SetAreaWeather(WEATHER_AREA_FLINT_COUNTY, 6);
  1231.             SetAreaWeather(WEATHER_AREA_NONE, 9);
  1232.             SetAreaWeather(WEATHER_AREA_TIERRA_ROBADA, 16);
  1233.             SetAreaWeather(WEATHER_AREA_SAN_FIERRO, 5);
  1234.             SetAreaWeather(WEATHER_AREA_LAS_VENTURAS, 4);
  1235.             SendClientMessage(0, 0x20F709C8, "      Its working 1     ");
  1236.         }
  1237.         case 1:
  1238.         {
  1239.             SetAreaWeather(WEATHER_AREA_BONE_COUNTY, 11);
  1240.             SetAreaWeather(WEATHER_AREA_WHETSTONE, 25);
  1241.             SetAreaWeather(WEATHER_AREA_RED_COUNTY, 9);
  1242.             SetAreaWeather(WEATHER_AREA_LOS_SANTOS, 24);//
  1243.             SetAreaWeather(WEATHER_AREA_FLINT_COUNTY, 15);
  1244.             SetAreaWeather(WEATHER_AREA_NONE, 5);
  1245.             SetAreaWeather(WEATHER_AREA_TIERRA_ROBADA, 15);
  1246.             SetAreaWeather(WEATHER_AREA_SAN_FIERRO, 17);
  1247.             SetAreaWeather(WEATHER_AREA_LAS_VENTURAS, 43);
  1248.             SendClientMessage(0, 0x20F709C8, "      Its working 2     ");
  1249.         }
  1250.         case 2:
  1251.             {
  1252.             SetAreaWeather(WEATHER_AREA_BONE_COUNTY, 16);
  1253.             SetAreaWeather(WEATHER_AREA_WHETSTONE, 8);
  1254.             SetAreaWeather(WEATHER_AREA_RED_COUNTY, 24);
  1255.             SetAreaWeather(WEATHER_AREA_LOS_SANTOS, 2);//
  1256.             SetAreaWeather(WEATHER_AREA_FLINT_COUNTY, 43);
  1257.             SetAreaWeather(WEATHER_AREA_NONE, 17);
  1258.             SetAreaWeather(WEATHER_AREA_TIERRA_ROBADA, 14);
  1259.             SetAreaWeather(WEATHER_AREA_SAN_FIERRO, 18);
  1260.             SetAreaWeather(WEATHER_AREA_LAS_VENTURAS, 3);
  1261.         }
  1262.         case 3:
  1263.             {
  1264.             SetAreaWeather(WEATHER_AREA_BONE_COUNTY, 45);
  1265.             SetAreaWeather(WEATHER_AREA_WHETSTONE, 24);
  1266.             SetAreaWeather(WEATHER_AREA_RED_COUNTY, 5);
  1267.             SetAreaWeather(WEATHER_AREA_LOS_SANTOS, 39);//
  1268.             SetAreaWeather(WEATHER_AREA_FLINT_COUNTY, 14);
  1269.             SetAreaWeather(WEATHER_AREA_NONE, 37);
  1270.             SetAreaWeather(WEATHER_AREA_TIERRA_ROBADA, 13);
  1271.             SetAreaWeather(WEATHER_AREA_SAN_FIERRO, 3);
  1272.             SetAreaWeather(WEATHER_AREA_LAS_VENTURAS, 20);
  1273.         }
  1274.  
  1275.         case 4:
  1276.             {
  1277.             SetAreaWeather(WEATHER_AREA_BONE_COUNTY, 38);
  1278.             SetAreaWeather(WEATHER_AREA_WHETSTONE, 31);
  1279.             SetAreaWeather(WEATHER_AREA_RED_COUNTY, 23);
  1280.             SetAreaWeather(WEATHER_AREA_LOS_SANTOS, 18);//
  1281.             SetAreaWeather(WEATHER_AREA_FLINT_COUNTY, 41);
  1282.             SetAreaWeather(WEATHER_AREA_NONE, 4);
  1283.             SetAreaWeather(WEATHER_AREA_TIERRA_ROBADA, 12);
  1284.             SetAreaWeather(WEATHER_AREA_SAN_FIERRO, 16);
  1285.             SetAreaWeather(WEATHER_AREA_LAS_VENTURAS, 27);
  1286.         }
  1287.  
  1288.         case 5:
  1289.             {
  1290.             SetAreaWeather(WEATHER_AREA_BONE_COUNTY, 39);
  1291.             SetAreaWeather(WEATHER_AREA_WHETSTONE, 30);
  1292.             SetAreaWeather(WEATHER_AREA_RED_COUNTY, 31);
  1293.             SetAreaWeather(WEATHER_AREA_LOS_SANTOS, 38);//
  1294.             SetAreaWeather(WEATHER_AREA_FLINT_COUNTY, 0);
  1295.             SetAreaWeather(WEATHER_AREA_NONE, 42);
  1296.             SetAreaWeather(WEATHER_AREA_TIERRA_ROBADA, 11);
  1297.             SetAreaWeather(WEATHER_AREA_SAN_FIERRO, 4);
  1298.             SetAreaWeather(WEATHER_AREA_LAS_VENTURAS, 37);
  1299.         }
  1300.         case 6:
  1301.             {
  1302.             SetAreaWeather(WEATHER_AREA_BONE_COUNTY, 37);
  1303.             SetAreaWeather(WEATHER_AREA_WHETSTONE, 45);
  1304.             SetAreaWeather(WEATHER_AREA_RED_COUNTY, 22);
  1305.             SetAreaWeather(WEATHER_AREA_LOS_SANTOS, 37);//
  1306.             SetAreaWeather(WEATHER_AREA_FLINT_COUNTY, 30);
  1307.             SetAreaWeather(WEATHER_AREA_NONE, 23);
  1308.             SetAreaWeather(WEATHER_AREA_TIERRA_ROBADA, 10);
  1309.             SetAreaWeather(WEATHER_AREA_SAN_FIERRO, 25);
  1310.             SetAreaWeather(WEATHER_AREA_LAS_VENTURAS, 36);//////////////////////
  1311.         }
  1312.         case 7:
  1313.             {
  1314.             SetAreaWeather(WEATHER_AREA_BONE_COUNTY, 10);
  1315.             SetAreaWeather(WEATHER_AREA_WHETSTONE, 23);
  1316.             SetAreaWeather(WEATHER_AREA_RED_COUNTY, 31);
  1317.             SetAreaWeather(WEATHER_AREA_LOS_SANTOS, 12);//
  1318.             SetAreaWeather(WEATHER_AREA_FLINT_COUNTY, 5);
  1319.             SetAreaWeather(WEATHER_AREA_NONE, 36);
  1320.             SetAreaWeather(WEATHER_AREA_TIERRA_ROBADA, 9);
  1321.             SetAreaWeather(WEATHER_AREA_SAN_FIERRO, 13);
  1322.             SetAreaWeather(WEATHER_AREA_LAS_VENTURAS, 26);
  1323.         }
  1324.         case 8:
  1325.             {
  1326.             SetAreaWeather(WEATHER_AREA_BONE_COUNTY, 3);
  1327.             SetAreaWeather(WEATHER_AREA_WHETSTONE, 7);
  1328.             SetAreaWeather(WEATHER_AREA_RED_COUNTY, 30);
  1329.             SetAreaWeather(WEATHER_AREA_LOS_SANTOS, 31);//
  1330.             SetAreaWeather(WEATHER_AREA_FLINT_COUNTY, 13);
  1331.             SetAreaWeather(WEATHER_AREA_NONE, 3);
  1332.             SetAreaWeather(WEATHER_AREA_TIERRA_ROBADA, 8);
  1333.             SetAreaWeather(WEATHER_AREA_SAN_FIERRO, 14);
  1334.             SetAreaWeather(WEATHER_AREA_LAS_VENTURAS, 2);
  1335.         }
  1336.         case 9:
  1337.             {
  1338.             SetAreaWeather(WEATHER_AREA_BONE_COUNTY, 6);
  1339.             SetAreaWeather(WEATHER_AREA_WHETSTONE, 18);
  1340.             SetAreaWeather(WEATHER_AREA_RED_COUNTY, 21);
  1341.             SetAreaWeather(WEATHER_AREA_LOS_SANTOS, 23);//
  1342.             SetAreaWeather(WEATHER_AREA_FLINT_COUNTY, 21);
  1343.             SetAreaWeather(WEATHER_AREA_NONE, 41);
  1344.             SetAreaWeather(WEATHER_AREA_TIERRA_ROBADA, 7);
  1345.             SetAreaWeather(WEATHER_AREA_SAN_FIERRO, 15);
  1346.             SetAreaWeather(WEATHER_AREA_LAS_VENTURAS, 18);
  1347.         }
  1348.         case 10:
  1349.             {
  1350.             SetAreaWeather(WEATHER_AREA_BONE_COUNTY, 17);
  1351.             SetAreaWeather(WEATHER_AREA_WHETSTONE, 32);
  1352.             SetAreaWeather(WEATHER_AREA_RED_COUNTY, 15);
  1353.             SetAreaWeather(WEATHER_AREA_LOS_SANTOS, 21);//
  1354.             SetAreaWeather(WEATHER_AREA_FLINT_COUNTY, 26);
  1355.             SetAreaWeather(WEATHER_AREA_NONE, 22);
  1356.             SetAreaWeather(WEATHER_AREA_TIERRA_ROBADA, 6);
  1357.             SetAreaWeather(WEATHER_AREA_SAN_FIERRO, 20);
  1358.             SetAreaWeather(WEATHER_AREA_LAS_VENTURAS, 43);
  1359.         }
  1360.         case 11:
  1361.             {
  1362.             SetAreaWeather(WEATHER_AREA_BONE_COUNTY, 40);
  1363.             SetAreaWeather(WEATHER_AREA_WHETSTONE, 44);
  1364.             SetAreaWeather(WEATHER_AREA_RED_COUNTY, 8);
  1365.             SetAreaWeather(WEATHER_AREA_LOS_SANTOS, 3);//
  1366.             SetAreaWeather(WEATHER_AREA_FLINT_COUNTY, 22);
  1367.             SetAreaWeather(WEATHER_AREA_NONE, 16);
  1368.             SetAreaWeather(WEATHER_AREA_TIERRA_ROBADA, 5);
  1369.             SetAreaWeather(WEATHER_AREA_SAN_FIERRO, 43);
  1370.             SetAreaWeather(WEATHER_AREA_LAS_VENTURAS, 25);
  1371.         }
  1372.         case 12:
  1373.             {
  1374.             SetAreaWeather(WEATHER_AREA_BONE_COUNTY, 41);
  1375.             SetAreaWeather(WEATHER_AREA_WHETSTONE, 4);
  1376.             SetAreaWeather(WEATHER_AREA_RED_COUNTY, 31);
  1377.             SetAreaWeather(WEATHER_AREA_LOS_SANTOS, 36);//
  1378.             SetAreaWeather(WEATHER_AREA_FLINT_COUNTY, 7);
  1379.             SetAreaWeather(WEATHER_AREA_NONE, 20);
  1380.             SetAreaWeather(WEATHER_AREA_TIERRA_ROBADA, 24);
  1381.             SetAreaWeather(WEATHER_AREA_SAN_FIERRO, 44);
  1382.             SetAreaWeather(WEATHER_AREA_LAS_VENTURAS, 14);
  1383.         }
  1384.         case 13:
  1385.             {
  1386.             SetAreaWeather(WEATHER_AREA_BONE_COUNTY, 43);
  1387.             SetAreaWeather(WEATHER_AREA_WHETSTONE, 33);
  1388.             SetAreaWeather(WEATHER_AREA_RED_COUNTY, 6);
  1389.             SetAreaWeather(WEATHER_AREA_LOS_SANTOS, 30);//
  1390.             SetAreaWeather(WEATHER_AREA_FLINT_COUNTY, 18);
  1391.             SetAreaWeather(WEATHER_AREA_NONE, 21);
  1392.             SetAreaWeather(WEATHER_AREA_TIERRA_ROBADA, 43);
  1393.             SetAreaWeather(WEATHER_AREA_SAN_FIERRO, 38);
  1394.             SetAreaWeather(WEATHER_AREA_LAS_VENTURAS, 35);
  1395.         }
  1396.         case 14:
  1397.             {
  1398.             SetAreaWeather(WEATHER_AREA_BONE_COUNTY, 36);
  1399.             SetAreaWeather(WEATHER_AREA_WHETSTONE, 29);
  1400.             SetAreaWeather(WEATHER_AREA_RED_COUNTY, 33);
  1401.             SetAreaWeather(WEATHER_AREA_LOS_SANTOS, 17);//
  1402.             SetAreaWeather(WEATHER_AREA_FLINT_COUNTY, 29);
  1403.             SetAreaWeather(WEATHER_AREA_NONE, 35);
  1404.             SetAreaWeather(WEATHER_AREA_TIERRA_ROBADA, 42);
  1405.             SetAreaWeather(WEATHER_AREA_SAN_FIERRO, 26);
  1406.             SetAreaWeather(WEATHER_AREA_LAS_VENTURAS, 21);
  1407.         }
  1408.         case 15:
  1409.             {
  1410.             SetAreaWeather(WEATHER_AREA_BONE_COUNTY, 2);
  1411.             SetAreaWeather(WEATHER_AREA_WHETSTONE, 26);
  1412.             SetAreaWeather(WEATHER_AREA_RED_COUNTY, 35);
  1413.             SetAreaWeather(WEATHER_AREA_LOS_SANTOS, 34);//
  1414.             SetAreaWeather(WEATHER_AREA_FLINT_COUNTY, 31);
  1415.             SetAreaWeather(WEATHER_AREA_NONE, 6);
  1416.             SetAreaWeather(WEATHER_AREA_TIERRA_ROBADA, 4);
  1417.             SetAreaWeather(WEATHER_AREA_SAN_FIERRO, 12);
  1418.             SetAreaWeather(WEATHER_AREA_LAS_VENTURAS, 38);
  1419.         }
  1420.         case 16:
  1421.             {
  1422.             SetAreaWeather(WEATHER_AREA_BONE_COUNTY, 35);
  1423.             SetAreaWeather(WEATHER_AREA_WHETSTONE, 34);
  1424.             SetAreaWeather(WEATHER_AREA_RED_COUNTY, 34);
  1425.             SetAreaWeather(WEATHER_AREA_LOS_SANTOS, 35);//
  1426.             SetAreaWeather(WEATHER_AREA_FLINT_COUNTY, 12);
  1427.             SetAreaWeather(WEATHER_AREA_NONE, 14);
  1428.             SetAreaWeather(WEATHER_AREA_TIERRA_ROBADA, 41);
  1429.             SetAreaWeather(WEATHER_AREA_SAN_FIERRO, 6);
  1430.             SetAreaWeather(WEATHER_AREA_LAS_VENTURAS, 42);
  1431.         }
  1432.         case 17:
  1433.             {
  1434.             SetAreaWeather(WEATHER_AREA_BONE_COUNTY, 19);
  1435.             SetAreaWeather(WEATHER_AREA_WHETSTONE, 12);
  1436.             SetAreaWeather(WEATHER_AREA_RED_COUNTY, 20);
  1437.             SetAreaWeather(WEATHER_AREA_LOS_SANTOS, 32);//
  1438.             SetAreaWeather(WEATHER_AREA_FLINT_COUNTY, 32);
  1439.             SetAreaWeather(WEATHER_AREA_NONE, 15);
  1440.             SetAreaWeather(WEATHER_AREA_TIERRA_ROBADA, 40);
  1441.             SetAreaWeather(WEATHER_AREA_SAN_FIERRO, 14);
  1442.             SetAreaWeather(WEATHER_AREA_LAS_VENTURAS, 1);
  1443.         }
  1444.         case 18:
  1445.             {
  1446.             SetAreaWeather(WEATHER_AREA_BONE_COUNTY, 20);
  1447.             SetAreaWeather(WEATHER_AREA_WHETSTONE, 35);
  1448.             SetAreaWeather(WEATHER_AREA_RED_COUNTY, 10);
  1449.             SetAreaWeather(WEATHER_AREA_LOS_SANTOS, 4);//
  1450.             SetAreaWeather(WEATHER_AREA_FLINT_COUNTY, 33);
  1451.             SetAreaWeather(WEATHER_AREA_NONE, 2);
  1452.             SetAreaWeather(WEATHER_AREA_TIERRA_ROBADA, 39);
  1453.             SetAreaWeather(WEATHER_AREA_SAN_FIERRO, 42);
  1454.             SetAreaWeather(WEATHER_AREA_LAS_VENTURAS, 24);
  1455.         }
  1456.         case 19:
  1457.             {
  1458.             SetAreaWeather(WEATHER_AREA_BONE_COUNTY, 4);
  1459.             SetAreaWeather(WEATHER_AREA_WHETSTONE, 20);
  1460.             SetAreaWeather(WEATHER_AREA_RED_COUNTY, 17);
  1461.             SetAreaWeather(WEATHER_AREA_LOS_SANTOS, 29);//
  1462.             SetAreaWeather(WEATHER_AREA_FLINT_COUNTY, 1);
  1463.             SetAreaWeather(WEATHER_AREA_NONE, 40);
  1464.             SetAreaWeather(WEATHER_AREA_TIERRA_ROBADA, 38);
  1465.             SetAreaWeather(WEATHER_AREA_SAN_FIERRO, 23);
  1466.             SetAreaWeather(WEATHER_AREA_LAS_VENTURAS, 11);
  1467.         }
  1468.         case 20:
  1469.             {
  1470.             SetAreaWeather(WEATHER_AREA_BONE_COUNTY, 18);
  1471.             SetAreaWeather(WEATHER_AREA_WHETSTONE, 6);
  1472.             SetAreaWeather(WEATHER_AREA_RED_COUNTY, 11);
  1473.             SetAreaWeather(WEATHER_AREA_LOS_SANTOS, 34);//
  1474.             SetAreaWeather(WEATHER_AREA_FLINT_COUNTY, 20);
  1475.             SetAreaWeather(WEATHER_AREA_NONE, 18);
  1476.             SetAreaWeather(WEATHER_AREA_TIERRA_ROBADA, 37);
  1477.             SetAreaWeather(WEATHER_AREA_SAN_FIERRO, 32);
  1478.             SetAreaWeather(WEATHER_AREA_LAS_VENTURAS, 12);
  1479.         }
  1480.         case 21:
  1481.             {
  1482.             SetAreaWeather(WEATHER_AREA_BONE_COUNTY, 42);
  1483.             SetAreaWeather(WEATHER_AREA_WHETSTONE, 14);
  1484.             SetAreaWeather(WEATHER_AREA_RED_COUNTY, 4);
  1485.             SetAreaWeather(WEATHER_AREA_LOS_SANTOS, 11);//
  1486.             SetAreaWeather(WEATHER_AREA_FLINT_COUNTY, 34);
  1487.             SetAreaWeather(WEATHER_AREA_NONE, 34);
  1488.             SetAreaWeather(WEATHER_AREA_TIERRA_ROBADA, 34);
  1489.             SetAreaWeather(WEATHER_AREA_SAN_FIERRO, 36);
  1490.             SetAreaWeather(WEATHER_AREA_LAS_VENTURAS, 41);
  1491.         }
  1492.         case 22:
  1493.             {
  1494.             SetAreaWeather(WEATHER_AREA_BONE_COUNTY, 34);
  1495.             SetAreaWeather(WEATHER_AREA_WHETSTONE, 36);
  1496.             SetAreaWeather(WEATHER_AREA_RED_COUNTY, 36);
  1497.             SetAreaWeather(WEATHER_AREA_LOS_SANTOS, 16);//
  1498.             SetAreaWeather(WEATHER_AREA_FLINT_COUNTY, 25);
  1499.             SetAreaWeather(WEATHER_AREA_NONE, 24);
  1500.             SetAreaWeather(WEATHER_AREA_TIERRA_ROBADA, 17);
  1501.             SetAreaWeather(WEATHER_AREA_SAN_FIERRO, 12);
  1502.             SetAreaWeather(WEATHER_AREA_LAS_VENTURAS, 28);
  1503.         }
  1504.         case 23:
  1505.             {
  1506.             SetAreaWeather(WEATHER_AREA_BONE_COUNTY, 22);
  1507.             SetAreaWeather(WEATHER_AREA_WHETSTONE, 43);
  1508.             SetAreaWeather(WEATHER_AREA_RED_COUNTY, 9);
  1509.             SetAreaWeather(WEATHER_AREA_LOS_SANTOS, 28);//
  1510.             SetAreaWeather(WEATHER_AREA_FLINT_COUNTY, 42);
  1511.             SetAreaWeather(WEATHER_AREA_NONE, 33);
  1512.             SetAreaWeather(WEATHER_AREA_TIERRA_ROBADA, 34);
  1513.             SetAreaWeather(WEATHER_AREA_SAN_FIERRO, 25);
  1514.             SetAreaWeather(WEATHER_AREA_LAS_VENTURAS, 33);
  1515.         }
  1516.         case 24:
  1517.             {
  1518.             SetAreaWeather(WEATHER_AREA_BONE_COUNTY, 33);
  1519.             SetAreaWeather(WEATHER_AREA_WHETSTONE, 37);
  1520.             SetAreaWeather(WEATHER_AREA_RED_COUNTY, 26);
  1521.             SetAreaWeather(WEATHER_AREA_LOS_SANTOS, 36);//
  1522.             SetAreaWeather(WEATHER_AREA_FLINT_COUNTY, 22);
  1523.             SetAreaWeather(WEATHER_AREA_NONE, 13);
  1524.             SetAreaWeather(WEATHER_AREA_TIERRA_ROBADA, 33);
  1525.             SetAreaWeather(WEATHER_AREA_SAN_FIERRO, 16);
  1526.             SetAreaWeather(WEATHER_AREA_LAS_VENTURAS, 34);
  1527.         }
  1528.         case 25:
  1529.             {
  1530.             SetAreaWeather(WEATHER_AREA_BONE_COUNTY, 21);
  1531.             SetAreaWeather(WEATHER_AREA_WHETSTONE, 9);
  1532.             SetAreaWeather(WEATHER_AREA_RED_COUNTY, 29);
  1533.             SetAreaWeather(WEATHER_AREA_LOS_SANTOS, 14);//
  1534.             SetAreaWeather(WEATHER_AREA_FLINT_COUNTY, 35);
  1535.             SetAreaWeather(WEATHER_AREA_NONE, 7);
  1536.             SetAreaWeather(WEATHER_AREA_TIERRA_ROBADA, 32);
  1537.             SetAreaWeather(WEATHER_AREA_SAN_FIERRO, 27);
  1538.             SetAreaWeather(WEATHER_AREA_LAS_VENTURAS, 5);
  1539.         }
  1540.         case 26:
  1541.             {
  1542.             SetAreaWeather(WEATHER_AREA_BONE_COUNTY, 7);
  1543.             SetAreaWeather(WEATHER_AREA_WHETSTONE, 2);
  1544.             SetAreaWeather(WEATHER_AREA_RED_COUNTY, 7);
  1545.             SetAreaWeather(WEATHER_AREA_LOS_SANTOS, 27);//
  1546.             SetAreaWeather(WEATHER_AREA_FLINT_COUNTY, 8);
  1547.             SetAreaWeather(WEATHER_AREA_NONE, 10);
  1548.             SetAreaWeather(WEATHER_AREA_TIERRA_ROBADA, 3);
  1549.             SetAreaWeather(WEATHER_AREA_SAN_FIERRO, 28);
  1550.             SetAreaWeather(WEATHER_AREA_LAS_VENTURAS, 39);
  1551.         }
  1552.         case 27:
  1553.             {
  1554.             SetAreaWeather(WEATHER_AREA_BONE_COUNTY, 32);
  1555.             SetAreaWeather(WEATHER_AREA_WHETSTONE, 27);
  1556.             SetAreaWeather(WEATHER_AREA_RED_COUNTY, 18);
  1557.             SetAreaWeather(WEATHER_AREA_LOS_SANTOS, 20);//
  1558.             SetAreaWeather(WEATHER_AREA_FLINT_COUNTY, 36);
  1559.             SetAreaWeather(WEATHER_AREA_NONE, 32);
  1560.             SetAreaWeather(WEATHER_AREA_TIERRA_ROBADA, 30);
  1561.             SetAreaWeather(WEATHER_AREA_SAN_FIERRO, 37);
  1562.             SetAreaWeather(WEATHER_AREA_LAS_VENTURAS, 15);
  1563.         }
  1564.         case 28:
  1565.             {
  1566.             SetAreaWeather(WEATHER_AREA_BONE_COUNTY, 30);
  1567.             SetAreaWeather(WEATHER_AREA_WHETSTONE, 38);
  1568.             SetAreaWeather(WEATHER_AREA_RED_COUNTY, 1);
  1569.             SetAreaWeather(WEATHER_AREA_LOS_SANTOS, 5);//
  1570.             SetAreaWeather(WEATHER_AREA_FLINT_COUNTY, 27);
  1571.             SetAreaWeather(WEATHER_AREA_NONE, 1);
  1572.             SetAreaWeather(WEATHER_AREA_TIERRA_ROBADA, 31);
  1573.             SetAreaWeather(WEATHER_AREA_SAN_FIERRO, 7);
  1574.             SetAreaWeather(WEATHER_AREA_LAS_VENTURAS, 32);
  1575.         }
  1576.         case 29:
  1577.             {
  1578.             SetAreaWeather(WEATHER_AREA_BONE_COUNTY, 5);
  1579.             SetAreaWeather(WEATHER_AREA_WHETSTONE, 42);
  1580.             SetAreaWeather(WEATHER_AREA_RED_COUNTY, 37);
  1581.             SetAreaWeather(WEATHER_AREA_LOS_SANTOS, 33);//
  1582.             SetAreaWeather(WEATHER_AREA_FLINT_COUNTY, 37);
  1583.             SetAreaWeather(WEATHER_AREA_NONE, 39);
  1584.             SetAreaWeather(WEATHER_AREA_TIERRA_ROBADA, 29);
  1585.             SetAreaWeather(WEATHER_AREA_SAN_FIERRO, 29);
  1586.             SetAreaWeather(WEATHER_AREA_LAS_VENTURAS, 10);
  1587.         }
  1588.         case 30:
  1589.             {
  1590.             SetAreaWeather(WEATHER_AREA_BONE_COUNTY, 24);
  1591.             SetAreaWeather(WEATHER_AREA_WHETSTONE, 39);
  1592.             SetAreaWeather(WEATHER_AREA_RED_COUNTY, 14);
  1593.             SetAreaWeather(WEATHER_AREA_LOS_SANTOS, 40);//
  1594.             SetAreaWeather(WEATHER_AREA_FLINT_COUNTY, 38);
  1595.             SetAreaWeather(WEATHER_AREA_NONE, 32);
  1596.             SetAreaWeather(WEATHER_AREA_TIERRA_ROBADA, 28);
  1597.             SetAreaWeather(WEATHER_AREA_SAN_FIERRO, 30);
  1598.             SetAreaWeather(WEATHER_AREA_LAS_VENTURAS, 13);
  1599.         }
  1600.         case 31:
  1601.             {
  1602.             SetAreaWeather(WEATHER_AREA_BONE_COUNTY, 25);
  1603.             SetAreaWeather(WEATHER_AREA_WHETSTONE, 21);
  1604.             SetAreaWeather(WEATHER_AREA_RED_COUNTY, 38);
  1605.             SetAreaWeather(WEATHER_AREA_LOS_SANTOS, 35);//
  1606.             SetAreaWeather(WEATHER_AREA_FLINT_COUNTY, 23);
  1607.             SetAreaWeather(WEATHER_AREA_NONE, 8);
  1608.             SetAreaWeather(WEATHER_AREA_TIERRA_ROBADA, 27);
  1609.             SetAreaWeather(WEATHER_AREA_SAN_FIERRO, 20);
  1610.             SetAreaWeather(WEATHER_AREA_LAS_VENTURAS, 6);
  1611.         }
  1612.         case 32:
  1613.             {
  1614.             SetAreaWeather(WEATHER_AREA_BONE_COUNTY, 23);
  1615.             SetAreaWeather(WEATHER_AREA_WHETSTONE, 3);
  1616.             SetAreaWeather(WEATHER_AREA_RED_COUNTY, 39);
  1617.             SetAreaWeather(WEATHER_AREA_LOS_SANTOS, 41);//
  1618.             SetAreaWeather(WEATHER_AREA_FLINT_COUNTY, 2);
  1619.             SetAreaWeather(WEATHER_AREA_NONE, 28);
  1620.             SetAreaWeather(WEATHER_AREA_TIERRA_ROBADA, 25);
  1621.             SetAreaWeather(WEATHER_AREA_SAN_FIERRO, 31);
  1622.             SetAreaWeather(WEATHER_AREA_LAS_VENTURAS, 29);
  1623.         }
  1624.         case 33:
  1625.             {
  1626.             SetAreaWeather(WEATHER_AREA_BONE_COUNTY, 13);
  1627.             SetAreaWeather(WEATHER_AREA_WHETSTONE, 41);
  1628.             SetAreaWeather(WEATHER_AREA_RED_COUNTY, 45);
  1629.             SetAreaWeather(WEATHER_AREA_LOS_SANTOS, 34);//
  1630.             SetAreaWeather(WEATHER_AREA_FLINT_COUNTY, 17);
  1631.             SetAreaWeather(WEATHER_AREA_NONE, 2);
  1632.             SetAreaWeather(WEATHER_AREA_TIERRA_ROBADA, 25);
  1633.             SetAreaWeather(WEATHER_AREA_SAN_FIERRO, 32);
  1634.             SetAreaWeather(WEATHER_AREA_LAS_VENTURAS, 7);
  1635.         }
  1636.         case 34:
  1637.             {
  1638.             SetAreaWeather(WEATHER_AREA_BONE_COUNTY, 14);
  1639.             SetAreaWeather(WEATHER_AREA_WHETSTONE, 10);
  1640.             SetAreaWeather(WEATHER_AREA_RED_COUNTY, 27);
  1641.             SetAreaWeather(WEATHER_AREA_LOS_SANTOS, 25);//
  1642.             SetAreaWeather(WEATHER_AREA_FLINT_COUNTY, 16);
  1643.             SetAreaWeather(WEATHER_AREA_NONE, 27);
  1644.             SetAreaWeather(WEATHER_AREA_TIERRA_ROBADA, 34);
  1645.             SetAreaWeather(WEATHER_AREA_SAN_FIERRO, 33);
  1646.             SetAreaWeather(WEATHER_AREA_LAS_VENTURAS, 44);
  1647.         }
  1648.         case 35:
  1649.             {
  1650.             SetAreaWeather(WEATHER_AREA_BONE_COUNTY, 12);
  1651.             SetAreaWeather(WEATHER_AREA_WHETSTONE, 15);
  1652.             SetAreaWeather(WEATHER_AREA_RED_COUNTY, 40);
  1653.             SetAreaWeather(WEATHER_AREA_LOS_SANTOS, 6);///
  1654.             SetAreaWeather(WEATHER_AREA_FLINT_COUNTY, 9);
  1655.             SetAreaWeather(WEATHER_AREA_NONE, 26);
  1656.             SetAreaWeather(WEATHER_AREA_TIERRA_ROBADA, 23);
  1657.             SetAreaWeather(WEATHER_AREA_SAN_FIERRO, 34);
  1658.             SetAreaWeather(WEATHER_AREA_LAS_VENTURAS, 22);
  1659.         }
  1660.         case 36:
  1661.             {
  1662.             SetAreaWeather(WEATHER_AREA_BONE_COUNTY, 26);
  1663.             SetAreaWeather(WEATHER_AREA_WHETSTONE, 40);
  1664.             SetAreaWeather(WEATHER_AREA_RED_COUNTY, 12);
  1665.             SetAreaWeather(WEATHER_AREA_LOS_SANTOS, 20);//
  1666.             SetAreaWeather(WEATHER_AREA_FLINT_COUNTY, 39);
  1667.             SetAreaWeather(WEATHER_AREA_NONE, 25);
  1668.             SetAreaWeather(WEATHER_AREA_TIERRA_ROBADA, 22);
  1669.             SetAreaWeather(WEATHER_AREA_SAN_FIERRO, 8);
  1670.             SetAreaWeather(WEATHER_AREA_LAS_VENTURAS, 40);
  1671.         }
  1672.         case 37:
  1673.             {
  1674.             SetAreaWeather(WEATHER_AREA_BONE_COUNTY, 43);
  1675.             SetAreaWeather(WEATHER_AREA_WHETSTONE, 22);
  1676.             SetAreaWeather(WEATHER_AREA_RED_COUNTY, 41);
  1677.             SetAreaWeather(WEATHER_AREA_LOS_SANTOS, 42);//
  1678.             SetAreaWeather(WEATHER_AREA_FLINT_COUNTY, 40);
  1679.             SetAreaWeather(WEATHER_AREA_NONE, 10);
  1680.             SetAreaWeather(WEATHER_AREA_TIERRA_ROBADA, 25);
  1681.             SetAreaWeather(WEATHER_AREA_SAN_FIERRO, 21);
  1682.             SetAreaWeather(WEATHER_AREA_LAS_VENTURAS, 45);
  1683.         }
  1684.         case 38:
  1685.             {
  1686.             SetAreaWeather(WEATHER_AREA_BONE_COUNTY, 8);
  1687.             SetAreaWeather(WEATHER_AREA_WHETSTONE, 4);
  1688.             SetAreaWeather(WEATHER_AREA_RED_COUNTY, 2);
  1689.             SetAreaWeather(WEATHER_AREA_LOS_SANTOS, 43);//
  1690.             SetAreaWeather(WEATHER_AREA_FLINT_COUNTY, 24);
  1691.             SetAreaWeather(WEATHER_AREA_NONE, 11);
  1692.             SetAreaWeather(WEATHER_AREA_TIERRA_ROBADA, 20);
  1693.             SetAreaWeather(WEATHER_AREA_SAN_FIERRO, 35);
  1694.             SetAreaWeather(WEATHER_AREA_LAS_VENTURAS, 31);
  1695.         }
  1696.         case 39:
  1697.             {
  1698.             SetAreaWeather(WEATHER_AREA_BONE_COUNTY, 19);
  1699.             SetAreaWeather(WEATHER_AREA_WHETSTONE, 28);
  1700.             SetAreaWeather(WEATHER_AREA_RED_COUNTY, 42);
  1701.             SetAreaWeather(WEATHER_AREA_LOS_SANTOS, 15);//
  1702.             SetAreaWeather(WEATHER_AREA_FLINT_COUNTY, 28);
  1703.             SetAreaWeather(WEATHER_AREA_NONE, 38);
  1704.             SetAreaWeather(WEATHER_AREA_TIERRA_ROBADA, 29);
  1705.             SetAreaWeather(WEATHER_AREA_SAN_FIERRO, 36);
  1706.             SetAreaWeather(WEATHER_AREA_LAS_VENTURAS, 8);
  1707.         }
  1708.         case 40:
  1709.             {
  1710.             SetAreaWeather(WEATHER_AREA_BONE_COUNTY, 29);
  1711.             SetAreaWeather(WEATHER_AREA_WHETSTONE, 11);
  1712.             SetAreaWeather(WEATHER_AREA_RED_COUNTY, 44);
  1713.             SetAreaWeather(WEATHER_AREA_LOS_SANTOS, 7);//
  1714.             SetAreaWeather(WEATHER_AREA_FLINT_COUNTY, 41);
  1715.             SetAreaWeather(WEATHER_AREA_NONE, 31);
  1716.             SetAreaWeather(WEATHER_AREA_TIERRA_ROBADA, 22);
  1717.             SetAreaWeather(WEATHER_AREA_SAN_FIERRO, 9);
  1718.             SetAreaWeather(WEATHER_AREA_LAS_VENTURAS, 30);
  1719.         }
  1720.         case 41:
  1721.             {
  1722.             SetAreaWeather(WEATHER_AREA_BONE_COUNTY, 31);
  1723.             SetAreaWeather(WEATHER_AREA_WHETSTONE, 16);
  1724.             SetAreaWeather(WEATHER_AREA_RED_COUNTY, 43);
  1725.             SetAreaWeather(WEATHER_AREA_LOS_SANTOS, 26);//
  1726.             SetAreaWeather(WEATHER_AREA_FLINT_COUNTY, 3);
  1727.             SetAreaWeather(WEATHER_AREA_NONE, 30);
  1728.             SetAreaWeather(WEATHER_AREA_TIERRA_ROBADA, 17);
  1729.             SetAreaWeather(WEATHER_AREA_SAN_FIERRO, 10);
  1730.             SetAreaWeather(WEATHER_AREA_LAS_VENTURAS, 9);
  1731.         }
  1732.         case 42:
  1733.             {
  1734.             SetAreaWeather(WEATHER_AREA_BONE_COUNTY, 27);
  1735.             SetAreaWeather(WEATHER_AREA_WHETSTONE, 5);
  1736.             SetAreaWeather(WEATHER_AREA_RED_COUNTY, 13);
  1737.             SetAreaWeather(WEATHER_AREA_LOS_SANTOS, 9);//
  1738.             SetAreaWeather(WEATHER_AREA_FLINT_COUNTY, 10);
  1739.             SetAreaWeather(WEATHER_AREA_NONE, 29);
  1740.             SetAreaWeather(WEATHER_AREA_TIERRA_ROBADA, 2);
  1741.             SetAreaWeather(WEATHER_AREA_SAN_FIERRO, 37);
  1742.             SetAreaWeather(WEATHER_AREA_LAS_VENTURAS, 23);
  1743.         }
  1744.         case 43:
  1745.             {
  1746.             SetAreaWeather(WEATHER_AREA_BONE_COUNTY, 15);
  1747.             SetAreaWeather(WEATHER_AREA_WHETSTONE, 17);
  1748.             SetAreaWeather(WEATHER_AREA_RED_COUNTY, 28);
  1749.             SetAreaWeather(WEATHER_AREA_LOS_SANTOS, 8);//
  1750.             SetAreaWeather(WEATHER_AREA_FLINT_COUNTY, 11);
  1751.             SetAreaWeather(WEATHER_AREA_NONE, 1);
  1752.             SetAreaWeather(WEATHER_AREA_TIERRA_ROBADA, 1);
  1753.             SetAreaWeather(WEATHER_AREA_SAN_FIERRO, 23);
  1754.             SetAreaWeather(WEATHER_AREA_LAS_VENTURAS, 16);
  1755.         }
  1756.         case 44:
  1757.             {
  1758.             SetAreaWeather(WEATHER_AREA_BONE_COUNTY, 9);
  1759.             SetAreaWeather(WEATHER_AREA_WHETSTONE, 1);
  1760.             SetAreaWeather(WEATHER_AREA_RED_COUNTY, 3);
  1761.             SetAreaWeather(WEATHER_AREA_LOS_SANTOS, 10);
  1762.             SetAreaWeather(WEATHER_AREA_FLINT_COUNTY, 4);
  1763.             SetAreaWeather(WEATHER_AREA_NONE, 12);
  1764.             SetAreaWeather(WEATHER_AREA_TIERRA_ROBADA, 18);
  1765.             SetAreaWeather(WEATHER_AREA_SAN_FIERRO, 2);
  1766.             SetAreaWeather(WEATHER_AREA_LAS_VENTURAS, 17);
  1767.         }
  1768.  
  1769.  
  1770.     }
  1771.  
  1772.  
  1773. }
  1774.  
  1775. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  1776. {
  1777.         if(PlayerInfo[playerid][CarLic] == 0)
  1778.         {
  1779.             SendClientMessage(playerid, COLOR_RED, "*Òè íåçíàåø äà êàðàø îùå íóæíè ñà òè");
  1780.             SendClientMessage(playerid, COLOR_RED, "*Ëèöåíñ çà Àâòîìîáèëè");
  1781.             SendClientMessage(playerid, COLOR_RED, "*Ëèöåíñ çà Òåæêî-òîâàðíè êàìèîíè");
  1782.             SendClientMessage(playerid, COLOR_RED, "*Ëèöåíñ çà Çà Âúçäóøíè ñðåäñòâà");
  1783.             SendClientMessage(playerid, COLOR_RED, "*Ëèöåíñ çà Ìîòîöèêëåòè");
  1784.             SendClientMessage(playerid, COLOR_RED, "*Ïàçè ñå îò ïîëèöàé");
  1785.             return 0;
  1786.     }
  1787.        else if(PlayerInfo[playerid][TruckLic] == 0)
  1788.         {
  1789.             SendClientMessage(playerid, COLOR_RED, "*Òè íåçíàåø äà êàðàø îùå íóæíè ñà òè");
  1790.             SendClientMessage(playerid, COLOR_RED, "*Ëèöåíñ çà Òåæêî-òîâàðíè êàìèîíè");
  1791.             SendClientMessage(playerid, COLOR_RED, "*Ëèöåíñ çà Çà Âúçäóøíè ñðåäñòâà");
  1792.             SendClientMessage(playerid, COLOR_RED, "*Ëèöåíñ çà Ìîòîöèêëåòè");
  1793.             SendClientMessage(playerid, COLOR_RED, "*Ïàçè ñå îò ïîëèöàé");
  1794.  
  1795.             return 0;
  1796.     }
  1797.        else if(PlayerInfo[playerid][HeliLic] == 0)
  1798.         {
  1799.             SendClientMessage(playerid, COLOR_RED, "*Òè íåçíàåø äà êàðàø îùå íóæíè ñà òè");
  1800.             SendClientMessage(playerid, COLOR_RED, "*Ëèöåíñ çà Çà Âúçäóøíè ñðåäñòâà");
  1801.             SendClientMessage(playerid, COLOR_RED, "*Ëèöåíñ çà Ìîòîöèêëåòè");
  1802.             SendClientMessage(playerid, COLOR_RED, "*Ïàçè ñå îò ïîëèöàé");
  1803.  
  1804.             return 0;
  1805.     }
  1806.        else if(PlayerInfo[playerid][BikeLic] == 0)
  1807.         {
  1808.             SendClientMessage(playerid, COLOR_RED, "*Òè íåçíàåø äà êàðàø îùå íóæíè ñà òè");
  1809.             SendClientMessage(playerid, COLOR_RED, "*Ëèöåíñ çà Ìîòîöèêëåòè");
  1810.             SendClientMessage(playerid, COLOR_RED, "*Ïàçè ñå îò ïîëèöàé");
  1811.  
  1812.             return 0;
  1813.     }
  1814.         if(PlayerInfo[playerid][CarLic] == 1)
  1815.         {
  1816.             SendClientMessage(playerid, COLOR_GREEN, "*Òè èìàø ëèöåíñ è ìîæåø äà êàðàø");
  1817.             return 0;
  1818.     }
  1819.        else if(PlayerInfo[playerid][TruckLic] == 1)
  1820.         {
  1821.             SendClientMessage(playerid, COLOR_GREEN, "*Òè èìàø ëèöåíñ è ìîæåø äà êàðàø");
  1822.             return 0;
  1823.     }
  1824.        else if(PlayerInfo[playerid][HeliLic] == 1)
  1825.         {
  1826.             SendClientMessage(playerid, COLOR_GREEN, "*Òè èìàø ëèöåíñ è ìîæåø äà êàðàø");
  1827.             return 0;
  1828.     }
  1829.        else if(PlayerInfo[playerid][BikeLic] == 1)
  1830.         {
  1831.             SendClientMessage(playerid, COLOR_GREEN, "*Òè èìàø ëèöåíñ è ìîæåø äà êàðàø");
  1832.             return 0;
  1833.     }
  1834.         return 0;
  1835. }
  1836.  
  1837. public OnPlayerExitVehicle(playerid, vehicleid)
  1838. {
  1839.         return 1;
  1840. }
  1841.  
  1842. public OnPlayerEnterCheckpoint(playerid)
  1843. {
  1844.     if(IsPlayerInRangeOfPoint(playerid, 3.0,2766.6602,-2575.1614,3.0000))
  1845.     {
  1846.         if(Fishes[playerid] >= 1)
  1847.         {
  1848.             new string[128];
  1849.             Fishes[playerid] = 0;
  1850.             format(string,sizeof(string),"You sold all your fishes for $%d.", FishWeight[playerid]);
  1851.             SendClientMessage(playerid, COLOR_YELLOW, string);
  1852.             GivePlayerMoney(playerid, FishWeight[playerid]);
  1853.             FishWeight[playerid] = 0;
  1854.             DisablePlayerCheckpoint(playerid);
  1855.             return 1;
  1856.         }
  1857.     }
  1858.     return 1;
  1859. }
  1860. public OnPlayerPickUpPickup(playerid, pickupid)
  1861. {
  1862.     if(pickupid == fishing)
  1863.     {
  1864.         GameTextForPlayer(playerid, "~w~You can buy here~n~some fishing tools~n~type ~r~/buytools ~w~to buy some", 3500, 3);
  1865.     }
  1866.     return 1;
  1867. }
  1868.  
  1869. public OnPlayerUpdate(playerid){
  1870.     if(GetTickCount() - armedbody_pTick[playerid] > 113){ //prefix check itter
  1871.         new
  1872.             weaponid[13],weaponammo[13],pArmedWeapon;
  1873.         pArmedWeapon = GetPlayerWeapon(playerid);
  1874.         GetPlayerWeaponData(playerid,1,weaponid[1],weaponammo[1]);
  1875.         GetPlayerWeaponData(playerid,2,weaponid[2],weaponammo[2]);
  1876.         GetPlayerWeaponData(playerid,4,weaponid[4],weaponammo[4]);
  1877.         GetPlayerWeaponData(playerid,5,weaponid[5],weaponammo[5]);
  1878.         #if ARMEDBODY_USE_HEAVY_WEAPON
  1879.         GetPlayerWeaponData(playerid,7,weaponid[7],weaponammo[7]);
  1880.         #endif
  1881.         if(weaponid[1] && weaponammo[1] > 0){
  1882.             if(pArmedWeapon != weaponid[1]){
  1883.                 if(!IsPlayerAttachedObjectSlotUsed(playerid,0)){
  1884.                     SetPlayerAttachedObject(playerid,0,GetWeaponModel(weaponid[1]),1, 0.199999, -0.139999, 0.030000, 0.500007, -115.000000, 0.000000, 1.000000, 1.000000, 1.000000);
  1885.                 }
  1886.             }
  1887.             else {
  1888.                 if(IsPlayerAttachedObjectSlotUsed(playerid,0)){
  1889.                     RemovePlayerAttachedObject(playerid,0);
  1890.                 }
  1891.             }
  1892.         }
  1893.         else if(IsPlayerAttachedObjectSlotUsed(playerid,0)){
  1894.             RemovePlayerAttachedObject(playerid,0);
  1895.         }
  1896.         if(weaponid[2] && weaponammo[2] > 0){
  1897.             if(pArmedWeapon != weaponid[2]){
  1898.                 if(!IsPlayerAttachedObjectSlotUsed(playerid,1)){
  1899.                     SetPlayerAttachedObject(playerid,1,GetWeaponModel(weaponid[2]),8, -0.079999, -0.039999, 0.109999, -90.100006, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000);
  1900.                 }
  1901.             }
  1902.             else {
  1903.                 if(IsPlayerAttachedObjectSlotUsed(playerid,1)){
  1904.                     RemovePlayerAttachedObject(playerid,1);
  1905.                 }
  1906.             }
  1907.         }
  1908.         else if(IsPlayerAttachedObjectSlotUsed(playerid,1)){
  1909.             RemovePlayerAttachedObject(playerid,1);
  1910.         }
  1911.         if(weaponid[4] && weaponammo[4] > 0){
  1912.             if(pArmedWeapon != weaponid[4]){
  1913.                 if(!IsPlayerAttachedObjectSlotUsed(playerid,2)){
  1914.                     SetPlayerAttachedObject(playerid,2,GetWeaponModel(weaponid[4]),7, 0.000000, -0.100000, -0.080000, -95.000000, -10.000000, 0.000000, 1.000000, 1.000000, 1.000000);
  1915.                 }
  1916.             }
  1917.             else {
  1918.                 if(IsPlayerAttachedObjectSlotUsed(playerid,2)){
  1919.                     RemovePlayerAttachedObject(playerid,2);
  1920.                 }
  1921.             }
  1922.         }
  1923.         else if(IsPlayerAttachedObjectSlotUsed(playerid,2)){
  1924.             RemovePlayerAttachedObject(playerid,2);
  1925.         }
  1926.         if(weaponid[5] && weaponammo[5] > 0){
  1927.             if(pArmedWeapon != weaponid[5]){
  1928.                 if(!IsPlayerAttachedObjectSlotUsed(playerid,3)){
  1929.                     SetPlayerAttachedObject(playerid,3,GetWeaponModel(weaponid[5]),1, 0.200000, -0.119999, -0.059999, 0.000000, 206.000000, 0.000000, 1.000000, 1.000000, 1.000000);
  1930.                 }
  1931.             }
  1932.             else {
  1933.                 if(IsPlayerAttachedObjectSlotUsed(playerid,3)){
  1934.                     RemovePlayerAttachedObject(playerid,3);
  1935.                 }
  1936.             }
  1937.         }
  1938.         else if(IsPlayerAttachedObjectSlotUsed(playerid,3)){
  1939.             RemovePlayerAttachedObject(playerid,3);
  1940.         }
  1941.         #if ARMEDBODY_USE_HEAVY_WEAPON
  1942.         if(weaponid[7] && weaponammo[7] > 0){
  1943.             if(pArmedWeapon != weaponid[7]){
  1944.                 if(!IsPlayerAttachedObjectSlotUsed(playerid,4)){
  1945.                     SetPlayerAttachedObject(playerid,4,GetWeaponModel(weaponid[7]),1,-0.100000, 0.000000, -0.100000, 84.399932, 112.000000, 10.000000, 1.099999, 1.000000, 1.000000);
  1946.                 }
  1947.             }
  1948.             else {
  1949.                 if(IsPlayerAttachedObjectSlotUsed(playerid,4)){
  1950.                     RemovePlayerAttachedObject(playerid,4);
  1951.                 }
  1952.             }
  1953.         }
  1954.         else if(IsPlayerAttachedObjectSlotUsed(playerid,4)){
  1955.             RemovePlayerAttachedObject(playerid,4);
  1956.         }
  1957.         #endif
  1958.         armedbody_pTick[playerid] = GetTickCount();
  1959.     }
  1960.         new Float:Health;
  1961.         GetPlayerHealth(playerid,Health);
  1962.         if(Health >= 90)
  1963.         {
  1964.             TextDrawSetString(HealthBar[playerid],"..........");
  1965.             return 1;
  1966.         }
  1967.         if(Health >= 80)
  1968.         {
  1969.             TextDrawSetString(HealthBar[playerid],".........");
  1970.             return 1;
  1971.         }
  1972.         if(Health >= 70)
  1973.         {
  1974.             TextDrawSetString(HealthBar[playerid],"........");
  1975.             return 1;
  1976.         }
  1977.         if(Health >= 60)
  1978.         {
  1979.             TextDrawSetString(HealthBar[playerid],".......");
  1980.             return 1;
  1981.         }
  1982.         if(Health >= 50)
  1983.         {
  1984.             TextDrawSetString(HealthBar[playerid],"......");
  1985.             return 1;
  1986.         }
  1987.         if(Health >= 40)
  1988.         {
  1989.             TextDrawSetString(HealthBar[playerid],".....");
  1990.             return 1;
  1991.         }
  1992.         if(Health >= 30)
  1993.         {
  1994.             TextDrawSetString(HealthBar[playerid],"....");
  1995.             return 1;
  1996.         }
  1997.         if(Health >= 20)
  1998.         {
  1999.             TextDrawSetString(HealthBar[playerid],"...");
  2000.             return 1;
  2001.         }
  2002.         if(Health >= 10)
  2003.         {
  2004.             TextDrawSetString(HealthBar[playerid],"..");
  2005.             return 1;
  2006.         }
  2007.         if(Health > 0)
  2008.         {
  2009.             TextDrawSetString(HealthBar[playerid],".");
  2010.             return 1;
  2011.         }
  2012.         return 1;
  2013. }
  2014.  
  2015.  
  2016.  
  2017.  
  2018.  
  2019. public Counting(playerid)
  2020. {
  2021.     Count = 1;
  2022.     GameTextForAll("~y~3",1000,6);
  2023.     PlayerPlaySound(playerid, 1056,0,0,0);
  2024.     SetTimer("Counting2",1000,false);
  2025.     return 1;
  2026. }
  2027. public Counting2(playerid)
  2028. {
  2029.     Count = 1;
  2030.     GameTextForAll("~g~2",1000,6);
  2031.     PlayerPlaySound(playerid, 1056,0,0,0);
  2032.     SetTimer("Counting1",1000,false);
  2033.     return 1;
  2034. }
  2035. public Counting1(playerid)
  2036. {
  2037.     Count = 1;
  2038.     GameTextForAll("~b~1",1000,6);
  2039.     PlayerPlaySound(playerid, 1056,0,0,0);
  2040.     SetTimer("CountingGO",1000,false);
  2041.     return 1;
  2042. }
  2043. public OnPlayerStateChange(playerid, newstate, oldstate)
  2044. {
  2045.     if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
  2046.     {
  2047.         if(IsABike(GetPlayerVehicleID(playerid)))
  2048.         {
  2049.             switch(GetPlayerSkin(playerid))
  2050.             {
  2051.                 #define SPAO{%0,%1,%2,%3,%4,%5} SetPlayerAttachedObject(playerid, SLOT, 18645, 2, (%0), (%1), (%2), (%3), (%4), (%5));
  2052.                 case 0, 65, 74, 149, 208, 273:  SPAO{0.070000, 0.000000, 0.000000, 88.000000, 75.000000, 0.000000}
  2053.                 case 1..6, 8, 14, 16, 22, 27, 29, 33, 41..49, 82..84, 86, 87, 119, 289: SPAO{0.070000, 0.000000, 0.000000, 88.000000, 77.000000, 0.000000}
  2054.                 case 7, 10: SPAO{0.090000, 0.019999, 0.000000, 88.000000, 90.000000, 0.000000}
  2055.                 case 9: SPAO{0.059999, 0.019999, 0.000000, 88.000000, 90.000000, 0.000000}
  2056.                 case 11..13: SPAO{0.070000, 0.019999, 0.000000, 88.000000, 90.000000, 0.000000}
  2057.                 case 15: SPAO{0.059999, 0.000000, 0.000000, 88.000000, 82.000000, 0.000000}
  2058.                 case 17..21: SPAO{0.059999, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
  2059.                 case 23..26, 28, 30..32, 34..39, 57, 58, 98, 99, 104..118, 120..131: SPAO{0.079999, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
  2060.                 case 40: SPAO{0.050000, 0.009999, 0.000000, 88.000000, 82.000000, 0.000000}
  2061.                 case 50, 100..103, 148, 150..189, 222: SPAO{0.070000, 0.009999, 0.000000, 88.000000, 82.000000, 0.000000}
  2062.                 case 51..54: SPAO{0.100000, 0.009999, 0.000000, 88.000000, 82.000000, 0.000000}
  2063.                 case 55, 56, 63, 64, 66..73, 75, 76, 78..81, 133..143, 147, 190..207, 209..219, 221, 247..272, 274..288, 290..293: SPAO{0.070000, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
  2064.                 case 59..62: SPAO{0.079999, 0.029999, 0.000000, 88.000000, 82.000000, 0.000000}
  2065.                 case 77: SPAO{0.059999, 0.019999, 0.000000, 87.000000, 82.000000, 0.000000}
  2066.                 case 85, 88, 89: SPAO{0.070000, 0.039999, 0.000000, 88.000000, 82.000000, 0.000000}
  2067.                 case 90..97: SPAO{0.050000, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
  2068.                 case 132: SPAO{0.000000, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
  2069.                 case 144..146: SPAO{0.090000, 0.000000, 0.000000, 88.000000, 82.000000, 0.000000}
  2070.                 case 220: SPAO{0.029999, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
  2071.                 case 223, 246: SPAO{0.070000, 0.050000, 0.000000, 88.000000, 82.000000, 0.000000}
  2072.                 case 224..245: SPAO{0.070000, 0.029999, 0.000000, 88.000000, 82.000000, 0.000000}
  2073.                 case 294: SPAO{0.070000, 0.019999, 0.000000, 91.000000, 84.000000, 0.000000}
  2074.                 case 295: SPAO{0.050000, 0.019998, 0.000000, 86.000000, 82.000000, 0.000000}
  2075.                 case 296..298: SPAO{0.064999, 0.009999, 0.000000, 88.000000, 82.000000, 0.000000}
  2076.                 case 299: SPAO{0.064998, 0.019999, 0.000000, 88.000000, 82.000000, 0.000000}
  2077.             }
  2078.         }
  2079.     }
  2080.     else
  2081.     {
  2082.         RemovePlayerAttachedObject(playerid, SLOT);
  2083.     }
  2084.     return 1;
  2085. }
  2086.  
  2087. public CountingGO(playerid)
  2088. {
  2089.     Count = 0;
  2090.     PlayerPlaySound(playerid, 1057,0,0,0);
  2091.     GameTextForAll("~r~GO!!!",1000,6);
  2092.     TogglePlayerControllable(playerid, 1);
  2093.     return 1;
  2094. }
  2095.  
  2096.  
  2097. CMD:buytools(playerid, params[])
  2098. {
  2099.     #pragma unused params
  2100.     if(IsPlayerInRangeOfPoint(playerid, 2.5,2865.6177,-1929.4780,11.1094))
  2101.     {
  2102.         new string[128];
  2103.         format(string,128,"FishingTools     $%d\nWorms      $%d per one",FishingToolPrice,BaitPrice);
  2104.         ShowPlayerDialog(playerid, 360, DIALOG_STYLE_LIST, "Fishing tools", string,"Purchase","Exit");
  2105.         return 1;
  2106.     }
  2107.     return 1;
  2108. }
  2109. CMD:inventory(playerid, params[])
  2110. {
  2111.     #pragma unused params
  2112.     new string[128];
  2113.     new string2[128];
  2114.     new string3[128];
  2115.     SendClientMessage(playerid, COLOR_GREEN, "____|| Your inventory ||___");
  2116.     if(FishingTool[playerid]==1)
  2117.     {
  2118.         format(string,sizeof(string)," -  Fishing Tool");
  2119.         SendClientMessage(playerid, COLOR_YELLOW, string);
  2120.     }
  2121.     if(Worms[playerid]>0)
  2122.     {
  2123.         format(string2,sizeof(string2)," -  %d Worms", Worms[playerid]);
  2124.         SendClientMessage(playerid, COLOR_YELLOW, string2);
  2125.     }
  2126.     if(Fishes[playerid]>0)
  2127.     {
  2128.         format(string3,sizeof(string3)," -  %d fishes", Fishes[playerid]);
  2129.         SendClientMessage(playerid, COLOR_YELLOW, string3);
  2130.     }
  2131.     SendClientMessage(playerid, COLOR_GREEN, "___________________________");
  2132.     return 1;
  2133. }
  2134. CMD:fishhelp(playerid, params[])
  2135. {
  2136.     #pragma unused params
  2137.     SendClientMessage(playerid,COLOR_GREEN,"________|| Fishing Help ||___________");
  2138.     SendClientMessage(playerid,COLOR_WHITE,"/inventory /buytools");
  2139.     SendClientMessage(playerid,COLOR_WHITE,"/fish");
  2140.     SendClientMessage(playerid,COLOR_WHITE,"/releaseallfishes");
  2141.     SendClientMessage(playerid,COLOR_WHITE,"/sellfishes");
  2142.     SendClientMessage(playerid,COLOR_GREEN,"_____________________________________");
  2143.     return 1;
  2144. }
  2145. CMD:releaseallfishes(playerid, params[])
  2146. {
  2147.     #pragma unused params
  2148.     if(Fishes[playerid] > 0 && IsAtFishPlace(playerid))
  2149.     {
  2150.         SendClientMessage(playerid, COLOR_YELLOW2, "You released all fishes back in sea.");
  2151.         Fishes[playerid] = 0;
  2152.         FishWeight[playerid] = 0;
  2153.         return 1;
  2154.     }
  2155.     else
  2156.     {
  2157.         SendClientMessage(playerid, COLOR_GREY, "You already don't have fishes or you are not at fishing place(Big Wheel)");
  2158.         return 1;
  2159.     }
  2160. }
  2161. COMMAND:start(playerid,params[])
  2162. {
  2163.         if(PlayerInfo[playerid][pAdmin] < 2)
  2164.             return SendClientMessage(playerid, COLOR_RED, "Äîñòúï îòêàçàí.");        new Masyvas[((265 + MAX_VARIANT_SIZE) + MAX_VARIANT_SIZE) + MAX_QUESTION_SIZE];
  2165.         format(Masyvas,sizeof Masyvas,"{ffff00}1.{ffffff} Set poll question. ({ff0000}%s{ffffff})\n{ffff00}2.{ffffff} Set Y variant. ({ff0000}%s{ffffff})\n{ffff00}3.{ffffff} Set N variant. ({ff0000}%s{ffffff})\n{ffff00}4.{ffffff} %s.\n{ffff00}5.{ffffff} Null parameters.",Poll[Question],Poll[yVariant],Poll[nVariant],(Poll[Start]) ? ("Stop poll") : ("Start poll"));
  2166.         ShowPlayerDialog(playerid, GUI_DIALOG_ID, DIALOG_STYLE_LIST, "{ffffff}Poll settings", Masyvas, "Set", "Close");
  2167.         return 1;
  2168. }
  2169. CMD:fish(playerid, params[])
  2170. {
  2171.     #pragma unused params
  2172.     new string[128];
  2173.     new name[MAX_PLAYER_NAME];
  2174.     if(FishingTool[playerid] == 1)
  2175.     {
  2176.         if(Worms[playerid] > 0)
  2177.         {
  2178.             if(IsAtFishPlace(playerid))
  2179.             {
  2180.                 if(AlreadyFished[playerid] == 0 && IsFishing[playerid] == 0)
  2181.                 {
  2182.                     if(Fishes[playerid] >= 15)
  2183.                     {
  2184.                         SendClientMessage(playerid,COLOR_RED,"You have enough fishes and you are tiered of fishing.");
  2185.                         SendClientMessage(playerid,COLOR_RED,"You can sell your fishes at Los Santos docks (/sellfish @ CheckPoint)");
  2186.                         AlreadyFished[playerid] = 1;
  2187.                         SetPlayerCheckpoint(playerid, 2766.6602,-2575.1614,3.0000,3.0);
  2188.                         SetTimerEx("StopFish", 1000*60*10, 0, "i",playerid);
  2189.                     }
  2190.                     else
  2191.                     {
  2192.                         new random2 = randomEx(4000,14000);
  2193.                         IsFishing[playerid] = 1;
  2194.                         SetTimerEx("FishTime", random2, 0, "i",playerid);
  2195.                         GetPlayerName(playerid,name,sizeof(name));
  2196.                         format(string,sizeof(string),"%s swings fishing rod and starts to wait for fish",name);
  2197.                         SendRPMessage(playerid, 20.0, COLOR_PURPLE, string);
  2198.                         GameTextForPlayer(playerid, "~w~Fishing...",random2,3);
  2199.                         TogglePlayerControllable(playerid, false);
  2200.                     }
  2201.                 }
  2202.                 else
  2203.                 {
  2204.                     SendClientMessage(playerid, COLOR_GREY, "You need to wait some time to fish again.");
  2205.                     return 1;
  2206.                 }
  2207.             }
  2208.             else
  2209.             {
  2210.                 SendClientMessage(playerid, COLOR_GREY, "You are not at fishing place(Big Whell or on water)");
  2211.                 return 1;
  2212.             }
  2213.         }
  2214.         else
  2215.         {
  2216.             SendClientMessage(playerid, COLOR_GREY, "You dont have any Baits, buy them at lighthouse");
  2217.         }
  2218.     }
  2219.     else
  2220.     {
  2221.         SendClientMessage(playerid, COLOR_GREY, "You don't have fishing tools, buy them at lighthouse");
  2222.     }
  2223.     return 1;
  2224. }
  2225. CMD:sellfish(playerid, params[])
  2226. {
  2227.     #pragma unused params
  2228.     if(Fishes[playerid] >= 1)
  2229.     {
  2230.         if(IsPlayerInRangeOfPoint(playerid, 3.0,2766.6602,-2575.1614,3.0000))
  2231.         {
  2232.             new string[128];
  2233.             Fishes[playerid] = 0;
  2234.             format(string,sizeof(string),"You sold all your fishes for $%d.", FishWeight[playerid]);
  2235.             SendClientMessage(playerid, COLOR_YELLOW, string);
  2236.             GivePlayerMoney(playerid, FishWeight[playerid]);
  2237.             FishWeight[playerid] = 0;
  2238.         }
  2239.         else
  2240.         {
  2241.             SendClientMessage(playerid, COLOR_GREY, "You need to be at Los Santos docks.");
  2242.             SetPlayerCheckpoint(playerid, 2766.6602,-2575.1614,3.0000,3.0);
  2243.         }
  2244.     }
  2245.     else
  2246.     {
  2247.         SendClientMessage(playerid, COLOR_GREY, "You dont have any fishes that you can sell.");
  2248.         return 1;
  2249.     }
  2250.     return 1;
  2251. }
  2252. CMD:heal(playerid, params[])
  2253. {
  2254.     new pid;
  2255.     if(PlayerInfo[playerid][Medic] < 1)
  2256.         return SendClientMessage(playerid, COLOR_RED, "Òè íå ñè ëåêàð.");
  2257.     else if(sscanf(params,"u",pid)) SendClientMessage(playerid,COLOUR_RED,"USAGE: /heal [ID]");
  2258.     else if(pid == INVALID_PLAYER_ID) SendClientMessage(playerid,COLOUR_RED,"Player was not found.");
  2259.         else
  2260.         {
  2261.              new Float:X, Float:Y, Float:Z;
  2262.              GetPlayerPos(pid, X, Y, Z);
  2263.              if(IsPlayerInRangeOfPoint(playerid, 5.0, X, Y, Z))
  2264.                  return SendClientMessage(playerid, -1, "You are not close enough to the specified player!");
  2265.         new give[42],got[51],name[MAX_PLAYER_NAME],name2[MAX_PLAYER_NAME];
  2266.         GetPlayerName(playerid,name,sizeof(name));
  2267.         GetPlayerName(pid,name2,sizeof(name2));
  2268.         SetPlayerHealth(pid,100);
  2269.         format(give,sizeof(give),"Âèå èçëåêóâàõòå %s",name2);
  2270.         format(got,sizeof(got),"Èçëåêóâàí ñòå îò ëåêàð %s",name);
  2271.         SendClientMessage(playerid,COLOUR_YELLOW,give);
  2272.         SendClientMessage(pid,COLOUR_YELLOW,got);
  2273.           }
  2274.     return 1;
  2275. }
  2276.  
  2277.  
  2278.  
  2279. CMD:ad(playerid, params[])
  2280. {
  2281.     new text;
  2282.     if(sscanf(params,"s",text)) SendClientMessage(playerid,COLOUR_RED,"USAGE: /ad [Òåêñò]");
  2283.     else
  2284.     {
  2285.         new got[51],name[MAX_PLAYER_NAME];
  2286.         GetPlayerName(playerid,name,sizeof(name));
  2287.         format(got,sizeof(got),"[%s]Ðåêëàìà: %s",name,text);
  2288.         SendClientMessageToAll(COLOUR_YELLOW, got);
  2289.         GivePlayerMoney(playerid,-380);
  2290.         SendClientMessage(playerid,COLOUR_RED,"Âèå ïëàòèõòå $380 çà ðåêëàìàòà");
  2291.         }
  2292.     return 1;
  2293.     }
  2294. CMD:sethp(playerid, params[])
  2295. {
  2296.     new pid,ammount;
  2297.     if(PlayerInfo[playerid][pAdmin] < 4)
  2298.         return SendClientMessage(playerid, COLOR_RED, "Access Denied.");
  2299.     else if(sscanf(params,"ud",pid,ammount)) SendClientMessage(playerid,COLOUR_RED,"USAGE: /sethp [ID] [Ammount]");
  2300.     else if(pid == INVALID_PLAYER_ID) SendClientMessage(playerid,COLOUR_RED,"Player was not found");
  2301.     else
  2302.     {
  2303.         new string[50],string1[50],name[MAX_PLAYER_NAME],name2[MAX_PLAYER_NAME];
  2304.         GetPlayerName(playerid,name,sizeof(name));
  2305.         GetPlayerName(pid,name2,sizeof(name2));
  2306.         SetPlayerHealth(pid,ammount);
  2307.         format(string,sizeof(string),"You have set %s's health",name2);
  2308.         format(string1,sizeof(string1),"Your health has been set by %s ",name);
  2309.         SendClientMessage(pid,COLOUR_YELLOW,string1);
  2310.         SendClientMessage(playerid,COLOUR_YELLOW,string);
  2311.         }
  2312.     return 1;
  2313.     }
  2314. CMD:infernus(playerid, params[])
  2315. {
  2316.     if(PlayerInfo[playerid][pAdmin] < 3)
  2317.         return SendClientMessage(playerid, COLOR_RED, "Access Denied.");
  2318.     new Float:X;
  2319.     new Float:Y;
  2320.     new Float:Z;
  2321.     GetPlayerPos(playerid,X,Y,Z);
  2322.     GameTextForPlayer(playerid,"~h~~w~INFERNUS~n~~h~~w~ID:~h~~r~411",2500,1);
  2323.     CreateVehicle(411,X,Y+5,Z,1,1,1,90000);
  2324.     return 1;
  2325.     }
  2326.  
  2327. CMD:setdeath(playerid, params[])
  2328. {
  2329.     new gamer,level;
  2330.     new text[128];
  2331.     new atext[128];
  2332.     if(PlayerInfo[playerid][pAdmin] < 6)
  2333.         return SendClientMessage(playerid, COLOR_RED, "Access Denied.");
  2334.     if (sscanf(params, "ud", gamer , level)) SendClientMessage(playerid, 0xFF0000AA, "Usage: \"/setdeath <playerid> <level>");
  2335.     else if (gamer == INVALID_PLAYER_ID) SendClientMessage(playerid, 0xFF0000AA, "Player not found");
  2336.     else
  2337.     {
  2338.         format (atext, sizeof(atext), "You Give Player Deaths:%i",level);
  2339.         SendClientMessage(gamer, COLOR_PURPLE, atext);
  2340.         format (text, sizeof(text), "Admin Give You Deaths:%i ",level);
  2341.         SendClientMessage(gamer, COLOR_PURPLE, text);
  2342.         PlayerInfo[gamer][pDeaths] = level;
  2343.     }
  2344.     return 1;
  2345. }
  2346. CMD:setkills(playerid, params[])
  2347. {
  2348.     new gamer,level;
  2349.     new text[128];
  2350.     new atext[128];
  2351.     if(PlayerInfo[playerid][pAdmin] < 6)
  2352.         return SendClientMessage(playerid, COLOR_RED, "Access Denied.");
  2353.     if (sscanf(params, "ud", gamer , level)) SendClientMessage(playerid, 0xFF0000AA, "Usage: \"/setkills <playerid> <level>");
  2354.     else if (gamer == INVALID_PLAYER_ID) SendClientMessage(playerid, 0xFF0000AA, "Player not found");
  2355.     else
  2356.     {
  2357.         format (atext, sizeof(atext), "You Give Player Kills:%i",level);
  2358.         SendClientMessage(gamer, COLOR_PURPLE, atext);
  2359.         format (text, sizeof(text), "Admin Give You Kills:%i ",level);
  2360.         SendClientMessage(gamer, COLOR_PURPLE, text);
  2361.         PlayerInfo[gamer][pKills] = level;
  2362.     }
  2363.     return 1;
  2364. }
  2365.  
  2366. CMD:setlevel(playerid, params[])
  2367. {
  2368.     new gamer,level;
  2369.     new text[128];
  2370.     new atext[128];
  2371.     if(PlayerInfo[playerid][pAdmin] < 6)
  2372.         return SendClientMessage(playerid, COLOR_RED, "Äîñòúï îòêàçàí.");
  2373.     if (sscanf(params, "ud", gamer , level)) SendClientMessage(playerid, COLOR_RED, "Èçïîëçâàé: \"/setlevel <Èãðà÷> <Íèâî>");
  2374.     else if (gamer == INVALID_PLAYER_ID) SendClientMessage(playerid, COLOR_RED, "Èãðà÷à íå å íàìåðåí");
  2375.     else
  2376.     {
  2377.         format (atext, sizeof(atext), "Âèå íàïðàâèõòå íèâîòî íà èãðà÷à íà:%i",level);
  2378.         SendClientMessage(playerid, COLOR_PURPLE, atext);
  2379.         format (text, sizeof(text), "Àäìèí íàïðàâè íèâîòî âè íà:%i ",level);
  2380.         SendClientMessage(gamer, COLOR_PURPLE, text);
  2381.         PlayerInfo[gamer][pLevel] = level;
  2382.     }
  2383.     return 1;
  2384. }
  2385. CMD:givecash(playerid, params[])
  2386. {
  2387.     new pid,ammount;
  2388.     if(PlayerInfo[playerid][pAdmin] < 7)
  2389.         return SendClientMessage(playerid, COLOR_RED, "Access Denied.");
  2390.     else if(sscanf(params,"ud",pid,ammount)) SendClientMessage(playerid,COLOUR_RED,"USAGE: /givecash [ID] [Ammount]");
  2391.     else if(pid == INVALID_PLAYER_ID) SendClientMessage(playerid,COLOUR_RED,"Player was not found");
  2392.     else
  2393.     {
  2394.         new string[128],string1[128],name[MAX_PLAYER_NAME],name2[MAX_PLAYER_NAME];
  2395.         GetPlayerName(playerid,name,sizeof(name));
  2396.         GetPlayerName(pid,name2,sizeof(name2));
  2397.         GivePlayerMoney(pid,ammount);
  2398.         format(string,sizeof(string),"You have given %s money",name2);
  2399.         format(string1,sizeof(string1),"%s has given you money using admin power ",name);
  2400.         SendClientMessage(pid,COLOUR_YELLOW,string1);
  2401.         SendClientMessage(playerid,COLOUR_YELLOW,string);
  2402.         return 1;
  2403.         }
  2404.     return 1;
  2405. }
  2406.  
  2407. CMD:setcash(playerid, params[])
  2408. {
  2409.     new pid,ammount;
  2410.     if(PlayerInfo[playerid][pAdmin] < 7)
  2411.         return SendClientMessage(playerid, COLOR_RED, "Access Denied.");
  2412.     else if(sscanf(params,"ud",pid,ammount)) SendClientMessage(playerid,COLOUR_RED,"USAGE: /setcash [ID] [Ammount]");
  2413.     else if(pid == INVALID_PLAYER_ID) SendClientMessage(playerid,COLOUR_RED,"Player was not found");
  2414.     else
  2415.     {
  2416.         new string[50],string1[70],name[MAX_PLAYER_NAME],name2[MAX_PLAYER_NAME];
  2417.         GetPlayerName(playerid,name,sizeof(name));
  2418.         GetPlayerName(pid,name2,sizeof(name2));
  2419.         SetPlayerMoney(pid,ammount);
  2420.         format(string,sizeof(string),"You have set %s's money",name2);
  2421.         format(string1,sizeof(string1),"%s has set your money using admin power ",name);
  2422.         SendClientMessage(pid,COLOUR_YELLOW,string1);
  2423.         SendClientMessage(playerid,COLOUR_YELLOW,string);
  2424.         return 1;
  2425.         }
  2426.     return 1;
  2427. }
  2428.  
  2429.  
  2430. CMD:givew(playerid, params[])
  2431. {
  2432.     new pid,wepid,ammo;
  2433.     if(PlayerInfo[playerid][pAdmin] < 6)
  2434.         return SendClientMessage(playerid, COLOR_RED, "Access Denied.");
  2435.     else if(sscanf(params,"udd",pid,wepid,ammo)) SendClientMessage(playerid,COLOUR_RED,"USAGE: /givew [ID] [Wep ID] [Ammo]");
  2436.     else if(pid == INVALID_PLAYER_ID) SendClientMessage(playerid,COLOUR_RED,"Player was not found");
  2437.     else
  2438.     {
  2439.         new string[50],string1[50],name[MAX_PLAYER_NAME],name2[MAX_PLAYER_NAME];
  2440.         GetPlayerName(playerid,name,sizeof(name));
  2441.         GetPlayerName(pid,name2,sizeof(name2));
  2442.         GivePlayerWeapon(pid,wepid,ammo);
  2443.         format(string,sizeof(string),"You have given %s a weapon",name2);
  2444.         format(string1,sizeof(string1),"%s has given you a weapon ",name);
  2445.         SendClientMessage(pid,COLOUR_YELLOW,string1);
  2446.         SendClientMessage(playerid,COLOUR_YELLOW,string);
  2447.         return 1;
  2448.         }
  2449.     return 1;
  2450. }
  2451.  
  2452. CMD:disarm(playerid, params[])
  2453. {
  2454.     new pid;
  2455.     if(PlayerInfo[playerid][pAdmin] < 3)
  2456.         return SendClientMessage(playerid, COLOR_RED, "Access Denied.");
  2457.     else if(sscanf(params,"u",pid)) SendClientMessage(playerid,COLOUR_RED,"USAGE: /disarm [ID]");
  2458.     else if(pid == INVALID_PLAYER_ID) SendClientMessage(playerid,COLOUR_RED,"Player was not found.");
  2459.     else
  2460.     {
  2461.         new give[42],got[51],name[MAX_PLAYER_NAME],name2[MAX_PLAYER_NAME];
  2462.         GetPlayerName(playerid,name,sizeof(name));
  2463.         GetPlayerName(pid,name2,sizeof(name2));
  2464.         ResetPlayerWeapons(playerid);
  2465.         format(give,sizeof(give),"You have reset %s's weapons",name2);
  2466.         format(got,sizeof(got),"Your weapons have been resetted by %s",name);
  2467.         SendClientMessage(playerid,COLOUR_YELLOW,give);
  2468.         SendClientMessage(pid,COLOUR_RED,got);
  2469.         }
  2470.     return 1;
  2471.     }
  2472. CMD:nradio(playerid, params[])
  2473. {
  2474.     if(PlayerInfo[playerid][Radio] < 1)
  2475.         return SendClientMessage(playerid, COLOR_RED, "Íÿìàø ðàäèî.");
  2476.             new string[100], pname[24];
  2477.             if(isnull(params)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /nradio [msg]");
  2478.             GetPlayerName(playerid, pname, 24);
  2479.             format(string, sizeof(string), "** %s [%d] [Radio]: %s",pname,playerid,params);
  2480.             printf("%s", string);
  2481.             for(new i=0;i<MAX_PLAYERS;i++)
  2482.             {
  2483.                 if(IsPlayerConnected(i)) if(PlayerInfo[i][Radio] == 1) SendClientMessage(i, COLOR_WHITE, string);
  2484.             }
  2485.         return 1;
  2486. }
  2487. CMD:pradio(playerid, params[])
  2488. {
  2489.     if(PlayerInfo[playerid][Police] < 1)
  2490.         return SendClientMessage(playerid, COLOR_RED, "Íÿìàø ðàäèî.");
  2491.             new string[100], pname[24];
  2492.             if(isnull(params)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /pradio [msg]");
  2493.             GetPlayerName(playerid, pname, 24);
  2494.             format(string, sizeof(string), "** %s [%d] [Police] [Radio]: %s",pname,playerid,params);
  2495.             printf("%s", string);
  2496.             for(new i=0;i<MAX_PLAYERS;i++)
  2497.             {
  2498.                 if(IsPlayerConnected(i)) if(PlayerInfo[i][Police] <= 1) SendClientMessage(i, COLOR_WHITE, string);
  2499.             }
  2500.         return 1;
  2501. }
  2502.  
  2503. CMD:goto(playerid, params[])
  2504. {
  2505.     new pid;
  2506.     if(PlayerInfo[playerid][pAdmin] < 2)
  2507.         return SendClientMessage(playerid, COLOR_RED, "Access Denied.");
  2508.     else if(sscanf(params,"u",pid)) SendClientMessage(playerid,COLOUR_RED,"USAGE: /goto [ID]");
  2509.     else
  2510.     {
  2511.         new Float:X,Float:Y,Float:Z,pint,name[MAX_PLAYER_NAME],name2[MAX_PLAYER_NAME],string[40],string2[39];
  2512.         GetPlayerName(playerid,name,sizeof(name));
  2513.         GetPlayerName(pid,name2,sizeof(name2));
  2514.         GetPlayerPos(pid,X,Y,Z);
  2515.         pint = GetPlayerInterior(pid);
  2516.         SetPlayerPos(playerid,X+1,Y,Z);
  2517.         SetPlayerInterior(playerid,pint);
  2518.         format(string,sizeof(string),"You have teleported to %s",name2);
  2519.         format(string2,sizeof(string2),"%s has teleported to you",name);
  2520.         SendClientMessage(playerid,COLOUR_YELLOW,string);
  2521.         SendClientMessage(pid,COLOUR_YELLOW,string2);
  2522.         return 1;
  2523.         }
  2524.     return 1;
  2525. }
  2526. CMD:get(playerid, params[])
  2527. {
  2528.     new pid;
  2529.     if(PlayerInfo[playerid][pAdmin] < 3)
  2530.         return SendClientMessage(playerid, COLOR_RED, "Access Denied.");
  2531.     else if(sscanf(params,"u",pid)) SendClientMessage(playerid,COLOUR_RED,"USAGE: /get [ID]");
  2532.     else
  2533.     {
  2534.         new Float:X,Float:Y,Float:Z,pint,name[MAX_PLAYER_NAME],name2[MAX_PLAYER_NAME],string[44],string2[45];
  2535.         GetPlayerName(playerid,name,sizeof(name));
  2536.         GetPlayerName(pid,name2,sizeof(name2));
  2537.         GetPlayerPos(playerid,X,Y,Z);
  2538.         pint = GetPlayerInterior(playerid);
  2539.         SetPlayerPos(pid,X+1,Y,Z);
  2540.         SetPlayerInterior(pid,pint);
  2541.         format(string,sizeof(string),"You have teleported %s to you",name2);
  2542.         format(string2,sizeof(string2),"You have been teleported to %s",name);
  2543.         SendClientMessage(playerid,COLOUR_YELLOW,string);
  2544.         SendClientMessage(pid,COLOUR_YELLOW,string2);
  2545.         return 1;
  2546.         }
  2547.     return 1;
  2548. }
  2549. CMD:warp(playerid, params[])
  2550. {
  2551.     new pid,tid;
  2552.     if(PlayerInfo[playerid][pAdmin] < 4)
  2553.         return SendClientMessage(playerid, COLOR_RED, "Access Denied.");
  2554.     else if(sscanf(params,"uu",tid,pid)) SendClientMessage(playerid,COLOUR_RED,"USAGE: /warp [ID] [ID]");
  2555.     else
  2556.     {
  2557.         new name1[MAX_PLAYER_NAME],name2[MAX_PLAYER_NAME],name3[MAX_PLAYER_NAME],Float:X,Float:Y,Float:Z,int,string1[58],string2[65],string3[65];
  2558.         GetPlayerName(playerid,name1,sizeof(name1));
  2559.         GetPlayerName(tid,name2,sizeof(name2));
  2560.         GetPlayerName(pid,name3,sizeof(name3));
  2561.         GetPlayerPos(pid,X,Y,Z);
  2562.         int = GetPlayerInterior(pid);
  2563.         SetPlayerPos(tid,X+1,Y,Z);
  2564.         SetPlayerInterior(tid,int);
  2565.         format(string1,sizeof(string1),"You have teleported %s to %s",name2,name3);//playerid
  2566.         format(string2,sizeof(string2),"You have been teleported to %s by %s",name3,name1);//tid
  2567.         format(string3,sizeof(string3),"%s has been teleported to you by %s",name2,name1);//pid
  2568.         SendClientMessage(playerid,COLOUR_YELLOW,string1);
  2569.         SendClientMessage(tid,COLOUR_YELLOW,string2);
  2570.         SendClientMessage(pid,COLOUR_YELLOW,string3);
  2571.         return 1;
  2572.         }
  2573.     return 1;
  2574. }
  2575. CMD:pay(playerid, params[])
  2576. {
  2577.     new otherid, cash;
  2578.     if (sscanf(params, "dd", otherid, cash)) SendClientMessage(playerid, 0xFF0000AA, "Usage: /pay [ID] [Cash]");
  2579.     else
  2580.     {
  2581.         if(GetPlayerMoney(playerid) < cash) SendClientMessage(playerid, COLOR_RED, "You don't have that much!");
  2582.         if(!IsPlayerConnected(otherid)) SendClientMessage(playerid, COLOR_RED, "That PlayerID is not connected!");
  2583.         if(otherid == playerid) SendClientMessage(playerid, COLOR_RED, "It is pointless to pay yourself..");
  2584.         else
  2585.         {
  2586.              new Float:X, Float:Y, Float:Z;
  2587.              GetPlayerPos(otherid, X, Y, Z);
  2588.              if(IsPlayerInRangeOfPoint(playerid, 5.0, X, Y, Z))
  2589.                  return SendClientMessage(playerid, -1, "You are not close enough to the specified player!");
  2590.  
  2591.                  GivePlayerMoney(playerid, -cash);
  2592.                  GivePlayerMoney(otherid, cash);
  2593.           }
  2594.     }
  2595.     return 1;
  2596. }
  2597. CMD:check(playerid, params[])
  2598. {
  2599.     new gamer;
  2600.     if(PlayerInfo[playerid][Police] < 1)
  2601.         return SendClientMessage(playerid, COLOR_RED, "Access Denied.");
  2602.     if (sscanf(params, "u", gamer)) SendClientMessage(playerid, COLOR_RED, "Èçïîëçâàé: \"/check <Èãðà÷>");
  2603.     else if (gamer == INVALID_PLAYER_ID) SendClientMessage(playerid, COLOR_RED, "Èãðà÷à íà å íàìåðåí");
  2604.     else
  2605.     {
  2606.         new atext[128];
  2607.         new wanted = PlayerInfo[gamer][Wanted];
  2608.         format(atext, sizeof(atext), "Wanted on player: %d", wanted);
  2609.         SendClientMessage(playerid, COLOR_PURPLE, atext);
  2610.     }
  2611.     return 1;
  2612. }
  2613.  
  2614. CMD:setadmin(playerid, params[])
  2615. {
  2616.     new gamer,level;
  2617.     new text[128];
  2618.     new atext[128];
  2619.     if(!IsPlayerAdmin(playerid))
  2620.         return SendClientMessage(playerid, COLOR_RED, "Access Denied.");
  2621.     if (sscanf(params, "ud", gamer , level)) SendClientMessage(playerid, COLOR_RED, "Èçïîëçâàé: \"/setadmin <Èãðà÷> <Íèâî>");
  2622.     else if (gamer == INVALID_PLAYER_ID) SendClientMessage(playerid, COLOR_RED, "Èãðà÷à íà å íàìåðåí");
  2623.     else
  2624.     {
  2625.         format (atext, sizeof(atext), "Âèå íàïðàâèõòå àäìèí íèâîòî íà èãðà÷à íà:%i",level);
  2626.         SendClientMessage(playerid, COLOR_PURPLE, atext);
  2627.         format (text, sizeof(text), "Àäìèí íàïðàâè âàøåòî àäìèí íèâî íà:%i ",level);
  2628.         SendClientMessage(gamer, COLOR_PURPLE, text);
  2629.         PlayerInfo[gamer][pAdmin] = level;
  2630.     }
  2631.     return 1;
  2632. }
  2633.  
  2634. CMD:setgov(playerid, params[])
  2635. {
  2636.     new gamer,level;
  2637.     new text[128];
  2638.     new atext[128];
  2639.     if(PlayerInfo[playerid][pAdmin] < 8)
  2640.         return SendClientMessage(playerid, COLOR_RED, "Òè íå ñè Àäìèí.");
  2641.     if (sscanf(params, "ud", gamer , level)) SendClientMessage(playerid, COLOR_RED, "Èçïîëçâàé: \"/setgov <Èãðà÷> <Íèâî>");
  2642.     else if (gamer == INVALID_PLAYER_ID) SendClientMessage(playerid, COLOR_RED, "Èãðà÷à íà å íàìåðåí");
  2643.     else if(level < 1||level > 1) return SendClientMessage(playerid,COLOR_RED,"Ìàõèìóì ëåâåëè 1-1!.");
  2644.     else
  2645.     {
  2646.         format (atext, sizeof(atext), "Âèå íàïðàâèõòå êìåòñêîòî âè íèâî íà èãðà÷à íà:%i",level);
  2647.         SendClientMessage(playerid, COLOR_PURPLE, atext);
  2648.         format (text, sizeof(text), "Àäìèí íàïðàâè âàøåòî êìåòñêî íèâî íà:%i ",level);
  2649.         SendClientMessage(gamer, COLOR_PURPLE, text);
  2650.         PlayerInfo[gamer][Goverment] = level;
  2651.         PlayerInfo[gamer][Faction] = 1;
  2652.     }
  2653.     return 1;
  2654. }
  2655. CMD:updatepolice(playerid, params[])
  2656. {
  2657.     new gamer,level;
  2658.     new text[128];
  2659.     new atext[128];
  2660.     if(PlayerInfo[playerid][Goverment] < 1)
  2661.         return SendClientMessage(playerid, COLOR_RED, "Òè íå ñè êìåò.");
  2662.     if (sscanf(params, "ud", gamer , level)) SendClientMessage(playerid, COLOR_RED, "Èçïîëçâàé: \"/updatepolice <Èãðà÷> <Íèâî>");
  2663.     else if(PlayerInfo[gamer][Faction] == 0) SendClientMessage(playerid, COLOR_RED, "Òîçè èãðà÷ íÿìà ñëóæáà.");
  2664.     else if(PlayerInfo[gamer][Police] == 0) SendClientMessage(playerid, COLOR_RED, "Òîçè èãðà÷ íå å ïîëèöàé.");
  2665.     else if (gamer == INVALID_PLAYER_ID) SendClientMessage(playerid, COLOR_RED, "Èãðà÷à íà å íàìåðåí");
  2666.     else if(level < 1||level > 5) return SendClientMessage(playerid,COLOR_RED,"Ìàõèìóì ëåâåëè 1-5!.");
  2667.     else
  2668.     {
  2669.         format (atext, sizeof(atext), "Âèå ïðîìåíèõòå ïîëèöåèñêîòî íèâî íà èãðà÷à íà:%i",level);
  2670.         SendClientMessage(playerid, COLOR_PURPLE, atext);
  2671.         format (text, sizeof(text), "Êìåòà ïðîìåíè âàøåòî ïîëèöåèñêîòî íèâî íà:%i ",level);
  2672.         SendClientMessage(gamer, COLOR_PURPLE, text);
  2673.         PlayerInfo[gamer][Police] = level;
  2674.     }
  2675.     return 1;
  2676. }
  2677. CMD:setpolice(playerid, params[])
  2678. {
  2679.     new gamer,level;
  2680.     new text[128];
  2681.     new atext[128];
  2682.     if(PlayerInfo[playerid][Goverment] < 1)
  2683.         return SendClientMessage(playerid, COLOR_RED, "Òè íå ñè êìåò.");
  2684.     if (sscanf(params, "ud", gamer , level)) SendClientMessage(playerid, COLOR_RED, "Èçïîëçâàé: \"/setpolice <Èãðà÷> <Íèâî>");
  2685.     else if(PlayerInfo[gamer][Faction] == 1) SendClientMessage(playerid, COLOR_RED, "Òîçè èãðà÷ âå÷å èìà Ôàêöèÿ.");
  2686.     else if (gamer == INVALID_PLAYER_ID) SendClientMessage(playerid, COLOR_RED, "Èãðà÷à íà å íàìåðåí");
  2687.     else if(level < 1||level > 5) return SendClientMessage(playerid,COLOR_RED,"Ìàõèìóì ëåâåëè 1-5!.");
  2688.     else
  2689.     {
  2690.         format (atext, sizeof(atext), "Âèå íàïðàâèõòå ïîëèöåèñêîòî íèâî íà èãðà÷à íà:%i",level);
  2691.         SendClientMessage(playerid, COLOR_PURPLE, atext);
  2692.         format (text, sizeof(text), "Àäìèí íàïðàâè âàøåòî ïîëèöåèñêîòî íèâî íà:%i ",level);
  2693.         SendClientMessage(gamer, COLOR_PURPLE, text);
  2694.         PlayerInfo[gamer][Police] = level;
  2695.         PlayerInfo[gamer][Faction] = 1;
  2696.     }
  2697.     return 1;
  2698. }
  2699. CMD:updatemedic(playerid, params[])
  2700. {
  2701.     new gamer,level;
  2702.     new text[128];
  2703.     new atext[128];
  2704.     if(PlayerInfo[playerid][Goverment] < 1)
  2705.         return SendClientMessage(playerid, COLOR_RED, "Òè íå ñè êìåò.");
  2706.     if (sscanf(params, "ud", gamer , level)) SendClientMessage(playerid, COLOR_RED, "Èçïîëçâàé: \"/updatemedic <Èãðà÷> <Íèâî>");
  2707.     else if(PlayerInfo[gamer][Faction] == 0) SendClientMessage(playerid, COLOR_RED, "Òîçè èãðà÷ íÿìà ñëóæáà.");
  2708.     else if(PlayerInfo[gamer][Medic] == 0) SendClientMessage(playerid, COLOR_RED, "Òîçè èãðà÷ íå å ëåêàð.");
  2709.     else if (gamer == INVALID_PLAYER_ID) SendClientMessage(playerid, COLOR_RED, "Èãðà÷à íà å íàìåðåí");
  2710.     else if(level < 1||level > 1) return SendClientMessage(playerid,COLOR_RED,"Ìàõèìóì ëåâåëè 1-1!.");
  2711.     else
  2712.     {
  2713.         format (atext, sizeof(atext), "Âèå ïðîìåíèõòå ëåêàðñêîòî íèâî íà èãðà÷à íà:%i",level);
  2714.         SendClientMessage(playerid, COLOR_PURPLE, atext);
  2715.         format (text, sizeof(text), "Êìåòà ïðîìåíè âàøåòî ëåêàðñêî íèâî íà:%i ",level);
  2716.         SendClientMessage(gamer, COLOR_PURPLE, text);
  2717.         PlayerInfo[gamer][Police] = level;
  2718.     }
  2719.     return 1;
  2720. }
  2721. CMD:setmedic(playerid, params[])
  2722. {
  2723.     new gamer,level;
  2724.     new text[128];
  2725.     new atext[128];
  2726.     if(PlayerInfo[playerid][Goverment] < 1)
  2727.         return SendClientMessage(playerid, COLOR_RED, "Access Denied.");
  2728.     if (sscanf(params, "ud", gamer , level)) SendClientMessage(playerid, COLOR_RED, "Èçïîëçâàé: \"/setmedic <Èãðà÷> <Íèâî>");
  2729.     else if(PlayerInfo[gamer][Faction] == 1) SendClientMessage(playerid, COLOR_RED, "Òîé âå÷å èìà Ôàêöèÿ.");
  2730.     else if (gamer == INVALID_PLAYER_ID) SendClientMessage(playerid, COLOR_RED, "Èãðà÷à íà å íàìåðåí");
  2731.     else if(level < 1||level > 1) return SendClientMessage(playerid,COLOR_RED,"Ìàõèìóì ëåâåëè 1-1!.");
  2732.     else
  2733.     {
  2734.         format (atext, sizeof(atext), "Âèå íàïðàâèõòå ìåäèöèíñêî íèâî íà èãðà÷à íà:%i",level);
  2735.         SendClientMessage(playerid, COLOR_PURPLE, atext);
  2736.         format (text, sizeof(text), "Àäìèí íàïðàâè âàøåòî ìåäèöèíñêîòî íèâî íà:%i ",level);
  2737.         SendClientMessage(gamer, COLOR_PURPLE, text);
  2738.         PlayerInfo[gamer][Medic] = level;
  2739.         PlayerInfo[gamer][Faction] = 1;
  2740.     }
  2741.     return 1;
  2742. }
  2743. CMD:updatearmy(playerid, params[])
  2744. {
  2745.     new gamer,level;
  2746.     new text[128];
  2747.     new atext[128];
  2748.     if(PlayerInfo[playerid][Goverment] < 1)
  2749.         return SendClientMessage(playerid, COLOR_RED, "Òè íå ñè êìåò.");
  2750.     if (sscanf(params, "ud", gamer , level)) SendClientMessage(playerid, COLOR_RED, "Èçïîëçâàé: \"/updatearmy <Èãðà÷> <Íèâî>");
  2751.     else if(PlayerInfo[gamer][Faction] == 0) SendClientMessage(playerid, COLOR_RED, "Òîçè èãðà÷ íÿìà ñëóæáà.");
  2752.     else if(PlayerInfo[gamer][Army] == 0) SendClientMessage(playerid, COLOR_RED, "Òîçè èãðà÷ íå å âîåíåí.");
  2753.     else if (gamer == INVALID_PLAYER_ID) SendClientMessage(playerid, COLOR_RED, "Èãðà÷à íà å íàìåðåí");
  2754.     else if(level < 1||level > 3) return SendClientMessage(playerid,COLOR_RED,"Ìàõèìóì ëåâåëè 1-3!.");
  2755.     else
  2756.     {
  2757.         format (atext, sizeof(atext), "Âèå ïðîìåíèõòå âîåííîòî íèâî íà èãðà÷à íà:%i",level);
  2758.         SendClientMessage(playerid, COLOR_PURPLE, atext);
  2759.         format (text, sizeof(text), "Êìåòà ïðîìåíè âàøåòî âîåííî íèâî íà:%i ",level);
  2760.         SendClientMessage(gamer, COLOR_PURPLE, text);
  2761.         PlayerInfo[gamer][Police] = level;
  2762.     }
  2763.     return 1;
  2764. }
  2765. CMD:setarmy(playerid, params[])
  2766. {
  2767.     new gamer,level;
  2768.     new text[128];
  2769.     new atext[128];
  2770.     if(PlayerInfo[playerid][Goverment] < 1)
  2771.         return SendClientMessage(playerid, COLOR_RED, "Access Denied.");
  2772.     if (sscanf(params, "ud", gamer , level)) SendClientMessage(playerid, COLOR_RED, "Èçïîëçâàé: \"/setarmy <Èãðà÷> <Íèâî>");
  2773.     else if(PlayerInfo[gamer][Faction] == 1) SendClientMessage(playerid, COLOR_RED, "Òîé âå÷å èìà Ôàêöèÿ.");
  2774.     else if (gamer == INVALID_PLAYER_ID) SendClientMessage(playerid, COLOR_RED, "Èãðà÷à íà å íàìåðåí");
  2775.     else if(level < 1||level > 3) return SendClientMessage(playerid,COLOR_RED,"Ìàõèìóì ëåâåëè 1-3!.");
  2776.     else
  2777.     {
  2778.         format (atext, sizeof(atext), "Âèå íàïðàâèõòå âîåííîòî íèâî íà èãðà÷à íà:%i",level);
  2779.         SendClientMessage(playerid, COLOR_PURPLE, atext);
  2780.         format (text, sizeof(text), "Àäìèí íàïðàâè âàøåòî âîåííî âè íèâî íà:%i ",level);
  2781.         SendClientMessage(gamer, COLOR_PURPLE, text);
  2782.         PlayerInfo[gamer][Medic] = level;
  2783.         PlayerInfo[gamer][Faction] = 1;
  2784.     }
  2785.     return 1;
  2786. }
  2787. CMD:updatecia(playerid, params[])
  2788. {
  2789.     new gamer,level;
  2790.     new text[128];
  2791.     new atext[128];
  2792.     if(PlayerInfo[playerid][Goverment] < 1)
  2793.         return SendClientMessage(playerid, COLOR_RED, "Òè íå ñè êìåò.");
  2794.     if (sscanf(params, "ud", gamer , level)) SendClientMessage(playerid, COLOR_RED, "Èçïîëçâàé: \"/updatecia <Èãðà÷> <Íèâî>");
  2795.     else if(PlayerInfo[gamer][Faction] == 0) SendClientMessage(playerid, COLOR_RED, "Òîçè èãðà÷ íÿìà ñëóæáà.");
  2796.     else if(PlayerInfo[gamer][CIA] == 0) SendClientMessage(playerid, COLOR_RED, "Òîçè èãðà÷ íå å àãåíò.");
  2797.     else if (gamer == INVALID_PLAYER_ID) SendClientMessage(playerid, COLOR_RED, "Èãðà÷à íà å íàìåðåí");
  2798.     else if(level < 1||level > 3) return SendClientMessage(playerid,COLOR_RED,"Ìàõèìóì ëåâåëè 1-3!.");
  2799.     else
  2800.     {
  2801.         format (atext, sizeof(atext), "Âèå ïðîìåíèõòå àãåíòñêîòî íèâî íà èãðà÷à íà:%i",level);
  2802.         SendClientMessage(playerid, COLOR_PURPLE, atext);
  2803.         format (text, sizeof(text), "Êìåòà ïðîìåíè âàøåòî àãåíòñêî íèâî íà:%i ",level);
  2804.         SendClientMessage(gamer, COLOR_PURPLE, text);
  2805.         PlayerInfo[gamer][Police] = level;
  2806.     }
  2807.     return 1;
  2808. }
  2809. CMD:setcia(playerid, params[])
  2810. {
  2811.     new gamer,level;
  2812.     new text[128];
  2813.     new atext[128];
  2814.     if(PlayerInfo[playerid][Goverment] < 1)
  2815.         return SendClientMessage(playerid, COLOR_RED, "Access Denied.");
  2816.     if (sscanf(params, "ud", gamer , level)) SendClientMessage(playerid, COLOR_RED, "Èçïîëçâàé: \"/setcia <Èãðà÷> <Íèâî>");
  2817.     else if(PlayerInfo[gamer][Faction] == 1) SendClientMessage(playerid, COLOR_RED, "Òîé âå÷å èìà Ôàêöèÿ.");
  2818.     else if (gamer == INVALID_PLAYER_ID) SendClientMessage(playerid, COLOR_RED, "Èãðà÷à íà å íàìåðåí");
  2819.     else if(level < 1||level > 3) return SendClientMessage(playerid,COLOR_RED,"Ìàõèìóì ëåâåëè 1-3!.");
  2820.     else
  2821.     {
  2822.         format (atext, sizeof(atext), "Âèå íàïðàâèõòå àãåíòñêîòî íèâîòî íà èãðà÷à íà:%i",level);
  2823.         SendClientMessage(playerid, COLOR_PURPLE, atext);
  2824.         format (text, sizeof(text), "Àäìèí íàïðàâè âàøåòî àãåíòñêî âè íèâî íà:%i ",level);
  2825.         SendClientMessage(gamer, COLOR_PURPLE, text);
  2826.         PlayerInfo[gamer][Medic] = level;
  2827.         PlayerInfo[gamer][Faction] = 1;
  2828.     }
  2829.     return 1;
  2830. }
  2831. CMD:updatefire(playerid, params[])
  2832. {
  2833.     new gamer,level;
  2834.     new text[128];
  2835.     new atext[128];
  2836.     if(PlayerInfo[playerid][Goverment] < 1)
  2837.         return SendClientMessage(playerid, COLOR_RED, "Òè íå ñè êìåò.");
  2838.     if (sscanf(params, "ud", gamer , level)) SendClientMessage(playerid, COLOR_RED, "Èçïîëçâàé: \"/updatefire <Èãðà÷> <Íèâî>");
  2839.     else if(PlayerInfo[gamer][Faction] == 0) SendClientMessage(playerid, COLOR_RED, "Òîçè èãðà÷ íÿìà ñëóæáà.");
  2840.     else if(PlayerInfo[gamer][Fire] == 0) SendClientMessage(playerid, COLOR_RED, "Òîçè èãðà÷ íå å ïîæàðíèêàð.");
  2841.     else if (gamer == INVALID_PLAYER_ID) SendClientMessage(playerid, COLOR_RED, "Èãðà÷à íà å íàìåðåí");
  2842.     else if(level < 1||level > 1) return SendClientMessage(playerid,COLOR_RED,"Ìàõèìóì ëåâåëè 1-1!.");
  2843.     else
  2844.     {
  2845.         format (atext, sizeof(atext), "Âèå ïðîìåíèõòå ïîæàðíèêàðñêîòî íèâî íà èãðà÷à íà:%i",level);
  2846.         SendClientMessage(playerid, COLOR_PURPLE, atext);
  2847.         format (text, sizeof(text), "Êìåòà ïðîìåíè âàøåòî ïîæàðíèêàðñêî íèâî íà:%i ",level);
  2848.         SendClientMessage(gamer, COLOR_PURPLE, text);
  2849.         PlayerInfo[gamer][Police] = level;
  2850.     }
  2851.     return 1;
  2852. }
  2853. CMD:setfire(playerid, params[])
  2854. {
  2855.     new gamer,level;
  2856.     new text[128];
  2857.     new atext[128];
  2858.     if(PlayerInfo[playerid][Goverment] < 1)
  2859.         return SendClientMessage(playerid, COLOR_RED, "Access Denied.");
  2860.     if (sscanf(params, "ud", gamer , level)) SendClientMessage(playerid, COLOR_RED, "Èçïîëçâàé: \"/setfire <Èãðà÷> <Íèâî>");
  2861.     else if(PlayerInfo[gamer][Faction] == 1) SendClientMessage(playerid, COLOR_RED, "Òîé âå÷å èìà Ôàêöèÿ.");
  2862.     else if (gamer == INVALID_PLAYER_ID) SendClientMessage(playerid, COLOR_RED, "Èãðà÷à íà å íàìåðåí");
  2863.     else if(level < 1||level > 1) return SendClientMessage(playerid,COLOR_RED,"Ìàõèìóì ëåâåëè 1-1!.");
  2864.     else
  2865.     {
  2866.         format (atext, sizeof(atext), "Âèå íàïðàâèõòå ïîæàðíèêàðñêîòî íèâî íà èãðà÷à íà:%i",level);
  2867.         SendClientMessage(playerid, COLOR_PURPLE, atext);
  2868.         format (text, sizeof(text), "Àäìèí íàïðàâè ïàæàðíèêàðñêî âè íèâî íà:%i ",level);
  2869.         SendClientMessage(gamer, COLOR_PURPLE, text);
  2870.         PlayerInfo[gamer][Medic] = level;
  2871.         PlayerInfo[gamer][Faction] = 1;
  2872.     }
  2873.     return 1;
  2874. }
  2875. CMD:updatenews(playerid, params[])
  2876. {
  2877.     new gamer,level;
  2878.     new text[128];
  2879.     new atext[128];
  2880.     if(PlayerInfo[playerid][Goverment] < 1)
  2881.         return SendClientMessage(playerid, COLOR_RED, "Òè íå ñè êìåò.");
  2882.     if (sscanf(params, "ud", gamer , level)) SendClientMessage(playerid, COLOR_RED, "Èçïîëçâàé: \"/updatenews <Èãðà÷> <Íèâî>");
  2883.     else if(PlayerInfo[gamer][Faction] == 0) SendClientMessage(playerid, COLOR_RED, "Òîçè èãðà÷ íÿìà ñëóæáà.");
  2884.     else if(PlayerInfo[gamer][News] == 0) SendClientMessage(playerid, COLOR_RED, "Òîçè èãðà÷ íå å íîâèíàð.");
  2885.     else if (gamer == INVALID_PLAYER_ID) SendClientMessage(playerid, COLOR_RED, "Èãðà÷à íà å íàìåðåí");
  2886.     else if(level < 1||level > 1) return SendClientMessage(playerid,COLOR_RED,"Ìàõèìóì ëåâåëè 1-1!.");
  2887.     else
  2888.     {
  2889.         format (atext, sizeof(atext), "Âèå ïðîìåíèõòå íîâèíàðñêîòî íèâî íà èãðà÷à íà:%i",level);
  2890.         SendClientMessage(playerid, COLOR_PURPLE, atext);
  2891.         format (text, sizeof(text), "Êìåòà ïðîìåíè âàøåòî íîâèíàðñêî íèâî íà:%i ",level);
  2892.         SendClientMessage(gamer, COLOR_PURPLE, text);
  2893.         PlayerInfo[gamer][Police] = level;
  2894.     }
  2895.     return 1;
  2896. }
  2897. CMD:setnews(playerid, params[])
  2898. {
  2899.     new gamer,level;
  2900.     new text[128];
  2901.     new atext[128];
  2902.     if(PlayerInfo[playerid][Goverment] < 1)
  2903.         return SendClientMessage(playerid, COLOR_RED, "Access Denied.");
  2904.     if (sscanf(params, "ud", gamer , level)) SendClientMessage(playerid, COLOR_RED, "Èçïîëçâàé: \"/setnews <Èãðà÷> <Íèâî>");
  2905.     else if(PlayerInfo[gamer][Faction] == 1) SendClientMessage(playerid, COLOR_RED, "Òîé âå÷å èìà Ôàêöèÿ.");
  2906.     else if (gamer == INVALID_PLAYER_ID) SendClientMessage(playerid, COLOR_RED, "Èãðà÷à íà å íàìåðåí");
  2907.     else if(level < 1||level > 1) return SendClientMessage(playerid,COLOR_RED,"Ìàõèìóì ëåâåëè 1-1!.");
  2908.     else
  2909.     {
  2910.         format (atext, sizeof(atext), "Âèå íàïðàâèõòå ïîæàðíèêàðñêîòî íèâî íà èãðà÷à íà:%i",level);
  2911.         SendClientMessage(playerid, COLOR_PURPLE, atext);
  2912.         format (text, sizeof(text), "Àäìèí íàïðàâè ïàæàðíèêàðñêî âè íèâî íà:%i ",level);
  2913.         SendClientMessage(gamer, COLOR_PURPLE, text);
  2914.         PlayerInfo[gamer][Medic] = level;
  2915.         PlayerInfo[gamer][Faction] = 1;
  2916.     }
  2917.     return 1;
  2918. }
  2919. CMD:updatelic(playerid, params[])
  2920. {
  2921.     new gamer,level;
  2922.     new text[128];
  2923.     new atext[128];
  2924.     if(PlayerInfo[playerid][Goverment] < 1)
  2925.         return SendClientMessage(playerid, COLOR_RED, "Òè íå ñè êìåò.");
  2926.     if (sscanf(params, "ud", gamer , level)) SendClientMessage(playerid, COLOR_RED, "Èçïîëçâàé: \"/updatelic <Èãðà÷> <Íèâî>");
  2927.     else if(PlayerInfo[gamer][Faction] == 0) SendClientMessage(playerid, COLOR_RED, "Òîçè èãðà÷ íÿìà ñëóæáà.");
  2928.     else if(PlayerInfo[gamer][Licenser] == 0) SendClientMessage(playerid, COLOR_RED, "Òîçè èãðà÷ íå å èíñòðóêòîð.");
  2929.     else if (gamer == INVALID_PLAYER_ID) SendClientMessage(playerid, COLOR_RED, "Èãðà÷à íà å íàìåðåí");
  2930.     else if(level < 1||level > 1) return SendClientMessage(playerid,COLOR_RED,"Ìàõèìóì ëåâåëè 1-1!.");
  2931.     else
  2932.     {
  2933.         format (atext, sizeof(atext), "Âèå ïðîìåíèõòå èíñòðóêòóðêîòî íèâî íà èãðà÷à íà:%i",level);
  2934.         SendClientMessage(playerid, COLOR_PURPLE, atext);
  2935.         format (text, sizeof(text), "Êìåòà ïðîìåíè âàøåòî èíñòðóêòóðêî íèâî íà:%i ",level);
  2936.         SendClientMessage(gamer, COLOR_PURPLE, text);
  2937.         PlayerInfo[gamer][Licenser] = level;
  2938.     }
  2939.     return 1;
  2940. }
  2941. CMD:setlic(playerid, params[])
  2942. {
  2943.     new gamer,level;
  2944.     new text[128];
  2945.     new atext[128];
  2946.     if(PlayerInfo[playerid][Goverment] < 1)
  2947.         return SendClientMessage(playerid, COLOR_RED, "Access Denied.");
  2948.     if (sscanf(params, "ud", gamer , level)) SendClientMessage(playerid, COLOR_RED, "Èçïîëçâàé: \"/setlic <Èãðà÷> <Íèâî>");
  2949.     else if(PlayerInfo[gamer][Faction] == 1) SendClientMessage(playerid, COLOR_RED, "Òîé âå÷å èìà Ôàêöèÿ.");
  2950.     else if (gamer == INVALID_PLAYER_ID) SendClientMessage(playerid, COLOR_RED, "Èãðà÷à íà å íàìåðåí");
  2951.     else if(level < 1||level > 1) return SendClientMessage(playerid,COLOR_RED,"Ìàõèìóì ëåâåëè 1-1!.");
  2952.     else
  2953.     {
  2954.         format (atext, sizeof(atext), "Âèå íàïðàâèõòå èíñòðóêòóðêîòî íèâî íà èãðà÷à íà:%i",level);
  2955.         SendClientMessage(playerid, COLOR_PURPLE, atext);
  2956.         format (text, sizeof(text), "Àäìèí íàïðàâè èíñòðóêòóðêî âè íèâî íà:%i ",level);
  2957.         SendClientMessage(gamer, COLOR_PURPLE, text);
  2958.         PlayerInfo[gamer][Licenser] = level;
  2959.         PlayerInfo[gamer][Faction] = 1;
  2960.     }
  2961.     return 1;
  2962. }
  2963.  
  2964. CMD:removefaction(playerid, params[])
  2965. {
  2966.     new gamer;
  2967.     new text[128];
  2968.     new atext[128];
  2969.     if(PlayerInfo[playerid][Goverment] < 1)
  2970.         return SendClientMessage(playerid, COLOR_RED, "Access Denied.");
  2971.     if (sscanf(params, "u", gamer )) SendClientMessage(playerid, COLOR_RED, "Èçïîëçâàé: \"/removefaction <Èãðà÷>");
  2972.     else if(PlayerInfo[gamer][Faction] == 0) SendClientMessage(playerid, COLOR_RED, "Òîçè èãðà÷ íÿìà èçáðàíà ñëóæáà.");
  2973.     else if (gamer == INVALID_PLAYER_ID) SendClientMessage(playerid, COLOR_RED, "Èãðà÷à íà å íàìåðåí");
  2974.     else
  2975.     {
  2976.         format (atext, sizeof(atext), "Âèå óâîëíèõòå %s",gamer);
  2977.         SendClientMessage(playerid, COLOR_PURPLE, atext);
  2978.         format (text, sizeof(text), "Óâîëíåí ñòå â ñëóæáàòà îò êìåòà %s ",playerid);
  2979.         SendClientMessage(gamer, COLOR_PURPLE, text);
  2980.         PlayerInfo[gamer][Police] = 0;
  2981.         PlayerInfo[gamer][Medic] = 0;
  2982.         PlayerInfo[gamer][Army] = 0;
  2983.         PlayerInfo[gamer][CIA] = 0;
  2984.         PlayerInfo[gamer][Fire] = 0;
  2985.         PlayerInfo[gamer][Licenser] = 0;
  2986.         PlayerInfo[gamer][Faction] = 0;
  2987.     }
  2988.     return 1;
  2989. }
  2990. CMD:carlic(playerid, params[])
  2991. {
  2992.     new gamer;
  2993.     new text[128];
  2994.     new atext[128];
  2995.     if(PlayerInfo[playerid][Licenser] < 1)
  2996.         return SendClientMessage(playerid, COLOR_RED, "Òè íå ñè Ëèöåíñ Èíñòðóêòîð.");
  2997.     if (sscanf(params, "u", gamer )) SendClientMessage(playerid, COLOR_RED, "Èçïîëçâàé: \"/carlic <Èãðà÷>");
  2998.     else if(PlayerInfo[gamer][CarLic] == 1) SendClientMessage(playerid, COLOR_RED, "Òîé âå÷å èìà òîçè ëèöåíñ.");
  2999.     else if (gamer == INVALID_PLAYER_ID) SendClientMessage(playerid, COLOR_RED, "Èãðà÷à íà å íàìåðåí");
  3000.     else
  3001.     {
  3002.         format (atext, sizeof(atext), "Âèå äàäàõòå Ëèöåíñ çà àâòîìîáèë íà %s",gamer);
  3003.         SendClientMessage(playerid, COLOR_PURPLE, atext);
  3004.         format (text, sizeof(text), "%s âè äàäå Ëèöåíñ çà àâòîìîáèë ",playerid);
  3005.         SendClientMessage(gamer, COLOR_PURPLE, text);
  3006.         PlayerInfo[gamer][CarLic] = 1;
  3007.     }
  3008.     return 1;
  3009. }
  3010. CMD:trucklic(playerid, params[])
  3011. {
  3012.     new gamer;
  3013.     new text[128];
  3014.     new atext[128];
  3015.     if(PlayerInfo[playerid][Licenser] < 1)
  3016.         return SendClientMessage(playerid, COLOR_RED, "Òè íå ñè Ëèöåíñ Èíñòðóêòîð.");
  3017.     if (sscanf(params, "u", gamer )) SendClientMessage(playerid, COLOR_RED, "Èçïîëçâàé: \"/trucklick <Èãðà÷>");
  3018.     else if(PlayerInfo[gamer][TruckLic] == 1) SendClientMessage(playerid, COLOR_RED, "Òîé âå÷å èìà òîçè ëèöåíñ.");
  3019.     else if (gamer == INVALID_PLAYER_ID) SendClientMessage(playerid, COLOR_RED, "Èãðà÷à íà å íàìåðåí");
  3020.     else
  3021.     {
  3022.         format (atext, sizeof(atext), "Âèå äàäàõòå Ëèöåíñ çà Òåæêî-òîâàðíè êàìèîíè íà %s",gamer);
  3023.         SendClientMessage(playerid, COLOR_PURPLE, atext);
  3024.         format (text, sizeof(text), "%s âè äàäå Ëèöåíñ çà Òåæêî-òîâàðíè êàìèîíè ",playerid);
  3025.         SendClientMessage(gamer, COLOR_PURPLE, text);
  3026.         PlayerInfo[gamer][TruckLic] = 1;
  3027.     }
  3028.     return 1;
  3029. }
  3030. CMD:helilic(playerid, params[])
  3031. {
  3032.     new gamer;
  3033.     new text[128];
  3034.     new atext[128];
  3035.     if(PlayerInfo[playerid][Licenser] < 1)
  3036.         return SendClientMessage(playerid, COLOR_RED, "Òè íå ñè Ëèöåíñ Èíñòðóêòîð.");
  3037.     if (sscanf(params, "u", gamer )) SendClientMessage(playerid, COLOR_RED, "Èçïîëçâàé: \"/helilic <Èãðà÷>");
  3038.     else if(PlayerInfo[gamer][HeliLic] == 1) SendClientMessage(playerid, COLOR_RED, "Òîé âå÷å èìà òîçè ëèöåíñ.");
  3039.     else if (gamer == INVALID_PLAYER_ID) SendClientMessage(playerid, COLOR_RED, "Èãðà÷à íà å íàìåðåí");
  3040.     else
  3041.     {
  3042.         format (atext, sizeof(atext), "Âèå äàäàõòå Ëèöåíñ çà Âúçäóøíè ñðåäñòâà íà %s",gamer);
  3043.         SendClientMessage(playerid, COLOR_PURPLE, atext);
  3044.         format (text, sizeof(text), "%s âè äàäå Ëèöåíñ çà Âúçäóøíè ñðåäñòâà ",playerid);
  3045.         SendClientMessage(gamer, COLOR_PURPLE, text);
  3046.         PlayerInfo[gamer][HeliLic] = 1;
  3047.     }
  3048.     return 1;
  3049. }
  3050. CMD:bikelic(playerid, params[])
  3051. {
  3052.     new gamer;
  3053.     new text[128];
  3054.     new atext[128];
  3055.     if(PlayerInfo[playerid][Licenser] < 1)
  3056.         return SendClientMessage(playerid, COLOR_RED, "Òè íå ñè Ëèöåíñ Èíñòðóêòîð.");
  3057.     if (sscanf(params, "u", gamer )) SendClientMessage(playerid, COLOR_RED, "Èçïîëçâàé: \"/bikelic <Èãðà÷> ");
  3058.     else if(PlayerInfo[gamer][BikeLic] == 1) SendClientMessage(playerid, COLOR_RED, "Òîé âå÷å èìà òîçè ëèöåíñ.");
  3059.     else if (gamer == INVALID_PLAYER_ID) SendClientMessage(playerid, COLOR_RED, "Èãðà÷à íà å íàìåðåí");
  3060.     else
  3061.     {
  3062.         format (atext, sizeof(atext), "Âèå äàäàõòå Ëèöåíñ çà Ìîòîöèêëåòè íà %s",gamer);
  3063.         SendClientMessage(playerid, COLOR_PURPLE, atext);
  3064.         format (text, sizeof(text), "%s âè äàäå Ëèöåíñ çà Ìîòîöèêëåòè ",playerid);
  3065.         SendClientMessage(gamer, COLOR_PURPLE, text);
  3066.         PlayerInfo[gamer][BikeLic] = 1;
  3067.     }
  3068.     return 1;
  3069. }
  3070. CMD:gunlic(playerid, params[])
  3071. {
  3072.     new gamer;
  3073.     new text[128];
  3074.     new atext[128];
  3075.     if(PlayerInfo[playerid][Police] < 1)
  3076.         return SendClientMessage(playerid, COLOR_RED, "Òè íå ñè Ïîëèöàé.");
  3077.     if (sscanf(params, "u", gamer )) SendClientMessage(playerid, COLOR_RED, "Èçïîëçâàé: \"/gunlic <Èãðà÷>");
  3078.     else if(PlayerInfo[gamer][GunLic] == 1) SendClientMessage(playerid, COLOR_RED, "Òîé âå÷å èìà òîçè ëèöåíñ.");
  3079.     else if (gamer == INVALID_PLAYER_ID) SendClientMessage(playerid, COLOR_RED, "Èãðà÷à íà å íàìåðåí");
  3080.     else
  3081.     {
  3082.         format (atext, sizeof(atext), "Âèå äàäàõòå Ëèöåíñ çà Îðúæèÿ íà %s",gamer);
  3083.         SendClientMessage(playerid, COLOR_PURPLE, atext);
  3084.         format (text, sizeof(text), "%s âè äàäå Ëèöåíñ çà Îðúæèÿ ",playerid);
  3085.         SendClientMessage(gamer, COLOR_PURPLE, text);
  3086.         PlayerInfo[gamer][GunLic] = 1;
  3087.     }
  3088.     return 1;
  3089. }
  3090. CMD:passport(playerid, params[])
  3091. {
  3092.     new gamer;
  3093.     new text[128];
  3094.     new atext[128];
  3095.     if(PlayerInfo[playerid][Police] < 1)
  3096.         return SendClientMessage(playerid, COLOR_RED, "Òè íå ñè Ïîëèöàé.");
  3097.     if (sscanf(params, "u", gamer )) SendClientMessage(playerid, COLOR_RED, "Èçïîëçâàé: \"/passport <Èãðà÷>");
  3098.     else if(PlayerInfo[gamer][Passport] == 1) SendClientMessage(playerid, COLOR_RED, "Òîé âå÷å èìà ïàñïîðò.");
  3099.     else if (gamer == INVALID_PLAYER_ID) SendClientMessage(playerid, COLOR_RED, "Èãðà÷à íà å íàìåðåí");
  3100.     else
  3101.     {
  3102.         format (atext, sizeof(atext), "Âèå äàäàõòå ïàñïîðò íà %s",gamer);
  3103.         SendClientMessage(playerid, COLOR_PURPLE, atext);
  3104.         format (text, sizeof(text), "%s âè äàäå ïàñïîðò",playerid);
  3105.         SendClientMessage(gamer, COLOR_PURPLE, text);
  3106.         PlayerInfo[gamer][Passport] = 1;
  3107.     }
  3108.     return 1;
  3109. }
  3110. CMD:roadblock(playerid,params[])
  3111. {
  3112.         new number, atrb = atblock[playerid];
  3113.         new string[256];
  3114.         new pName[MAX_PLAYER_NAME];
  3115.         if(PlayerInfo[playerid][Police] < 1)return SendClientMessage(playerid,COLOR_INTERFACE_BODY,"Íå ñè ïîëèöàé!");
  3116.         if(sscanf(params,"d",number))
  3117.         {
  3118.             SendClientMessage(playerid,COLOR_BLUE,"USAGE: /roadblock <1/2/3/4/5/6/7>");
  3119.             SendClientMessage(playerid,COLOR_BLUE,"| 1: Small Roadblock");
  3120.             SendClientMessage(playerid,COLOR_BLUE,"| 2: Medium Roadblock");
  3121.             SendClientMessage(playerid,COLOR_BLUE,"| 3: Big Roadblock");
  3122.             SendClientMessage(playerid,COLOR_BLUE,"| 4: Traffic cone");
  3123.             SendClientMessage(playerid,COLOR_BLUE,"| 5: Detour sign");
  3124.             SendClientMessage(playerid,COLOR_BLUE,"| 6: Will be sign");
  3125.             SendClientMessage(playerid,COLOR_BLUE,"| 7: Line closed sign");
  3126.             SendClientMessage(playerid,COLOR_WHITE,"----------------------");
  3127.             format(string, sizeof string,"The roadblock will expire after %i minutes, or use /deleteall",EXPIRE_MINUTES);
  3128.             SendClientMessage(playerid,COLOR_BLUE,string);
  3129.             return 1;
  3130.         }
  3131.  
  3132.         switch(number)
  3133.         {
  3134.             case 1:
  3135.             {
  3136.                     new Float:X, Float:Y, Float:Z, Float:A;
  3137.                     GetPlayerPos(playerid, X, Y, Z);
  3138.                     GetPlayerFacingAngle(playerid, A);
  3139.                     if(atblock[playerid] < MAX_ROADBLOCKS)
  3140.                     {
  3141.                         block[atrb][playerid] = CreateObject(1459, X, Y+1, Z-0.5,0,0,A);
  3142.                         GameTextForPlayer(playerid,"~w~Roadblock ~b~Placed!",3000,1);
  3143.                         #if SEND == true
  3144.                         GetPlayerName(playerid,pName,32);
  3145.                         format(string,sizeof (string)," %s added a roadblock(%i).",pName,number);
  3146.                         SendClientMessageToAll(COLOR_GREEN, string);
  3147.                         #else
  3148.                         SetTimerEx("ExpireRoadblock", EXPIRE_MINUTES*60000, false, "i", block[atrb][playerid]);
  3149.                         atblock[playerid] += 1;
  3150.                         #endif
  3151.                     } else {
  3152.                         format(string,sizeof string,"You cannot place more then %i Roadblocks!",MAX_ROADBLOCKS);
  3153.                         SendClientMessage(playerid, COLOR_RED, string);
  3154.                     }
  3155.                     return 1;
  3156.             }
  3157.  
  3158.  
  3159.             case 2:
  3160.             {
  3161.                     new Float:X, Float:Y, Float:Z, Float:A;
  3162.                     GetPlayerPos(playerid, X, Y, Z);
  3163.                     GetPlayerFacingAngle(playerid, A);
  3164.                     if(atblock[playerid] < MAX_ROADBLOCKS)
  3165.                     {
  3166.                         block[atrb][playerid] = CreateObject(978, X, Y+1, Z,0,0,A);
  3167.                         GameTextForPlayer(playerid,"~w~Roadblock ~b~Placed!",3000,1);
  3168.                         #if SEND == true
  3169.                         GetPlayerName(playerid,pName,32);
  3170.                         format(string,sizeof string,"%s added a roadblock(%i).",pName,number);
  3171.                         SendClientMessageToAll(COLOR_GREEN, string);
  3172.                         #else
  3173.                         SetTimerEx("ExpireRoadblock", EXPIRE_MINUTES*60000, false, "i", block[atrb][playerid]);
  3174.                         atblock[playerid] += 1;
  3175.                         #endif
  3176.                     } else {
  3177.                        format(string,sizeof string,"You cannot place more then %i Roadblocks!",MAX_ROADBLOCKS);
  3178.                         SendClientMessage(playerid, COLOR_RED, string);
  3179.                     }
  3180.                     return 1;
  3181.             }
  3182.  
  3183.             case 3:
  3184.             {
  3185.                     new Float:X, Float:Y, Float:Z, Float:A;
  3186.                     GetPlayerPos(playerid, X, Y, Z);
  3187.                     GetPlayerFacingAngle(playerid, A);
  3188.                     if(atblock[playerid] < MAX_ROADBLOCKS)
  3189.                     {
  3190.                         block[atrb][playerid] = CreateObject(981, X, Y+1, Z,0,0,A);
  3191.                         GameTextForPlayer(playerid,"~w~Roadblock ~b~Placed!",3000,1);
  3192.                         #if SEND == true
  3193.                         GetPlayerName(playerid,pName,32);
  3194.                         format(string,sizeof string," %s added a roadblock(%i).",pName,number);
  3195.                         SendClientMessageToAll(COLOR_GREEN,string);
  3196.                         #else
  3197.                         SetTimerEx("ExpireRoadblock", EXPIRE_MINUTES*60000, false, "i", block[atrb][playerid]);
  3198.                         atblock[playerid] += 1;
  3199.                         #endif
  3200.                     } else {
  3201.                         format(string,sizeof string,"You cannot place more then %i Roadblocks!",MAX_ROADBLOCKS);
  3202.                         SendClientMessage(playerid, COLOR_RED, string);
  3203.                     }
  3204.                     return 1;
  3205.             }
  3206.  
  3207.             case 4:
  3208.             {
  3209.                     new Float:X, Float:Y, Float:Z, Float:A;
  3210.                     GetPlayerPos(playerid, X, Y, Z);
  3211.                     GetPlayerFacingAngle(playerid, A);
  3212.                     if(atblock[playerid] < MAX_ROADBLOCKS)
  3213.                     {
  3214.                         block[atrb][playerid] = CreateObject(1238, X, Y+1, Z-0.5, 0, 0.0,A);
  3215.                         GameTextForPlayer(playerid,"~w~Cone ~b~Placed!",3000,1);
  3216.                         #if SEND == true
  3217.                         GetPlayerName(playerid,pName,32);
  3218.                         format(string,sizeof string," %s added a roadblock(%i).",pName,number);
  3219.                         SendClientMessageToAll(COLOR_GREEN, string);
  3220.                         #else
  3221.                         SetTimerEx("ExpireRoadblock", EXPIRE_MINUTES*60000, false, "i", block[atrb][playerid]);
  3222.                         atblock[playerid] += 1;
  3223.                         #endif
  3224.                     } else {
  3225.                         format(string,sizeof string,"You cannot place more then %i Roadblocks!",MAX_ROADBLOCKS);
  3226.                         SendClientMessage(playerid, COLOR_RED, string);
  3227.                     }
  3228.                     return 1;
  3229.             }
  3230.  
  3231.             case 5:
  3232.             {
  3233.                     new Float:X, Float:Y, Float:Z, Float:A;
  3234.                     GetPlayerPos(playerid, X, Y, Z);
  3235.                     GetPlayerFacingAngle(playerid, A);
  3236.                     if(atblock[playerid] < MAX_ROADBLOCKS)
  3237.                     {
  3238.                         block[atrb][playerid] = CreateObject(1425, X, Y+1, Z-0.5, 0, 0.0,A,300);
  3239.                         GameTextForPlayer(playerid,"~w~Sign ~b~Placed!",3000,1);
  3240.                         #if SEND == true
  3241.                         GetPlayerName(playerid,pName,32);
  3242.                         format(string,sizeof string," %s added a roadblock(%i).",pName,number);
  3243.                         SendClientMessageToAll(COLOR_GREEN, string);
  3244.                         #else
  3245.                         SetTimerEx("ExpireRoadblock", EXPIRE_MINUTES*60000, false, "i", block[atrb][playerid]);
  3246.                         atblock[playerid] += 1;
  3247.                         #endif
  3248.                     } else {
  3249.                         format(string,sizeof string,"You cannot place more then %i Roadblocks!",MAX_ROADBLOCKS);
  3250.                         SendClientMessage(playerid, COLOR_RED, string);
  3251.                     }
  3252.                     return 1;
  3253.             }
  3254.  
  3255.             case 6:
  3256.             {
  3257.                     new Float:X, Float:Y, Float:Z, Float:A;
  3258.                     GetPlayerPos(playerid, X, Y, Z);
  3259.                     GetPlayerFacingAngle(playerid, A);
  3260.                     if(atblock[playerid] < MAX_ROADBLOCKS)
  3261.                     {
  3262.                         block[atrb][playerid] = CreateObject(3265, X, Y+1, Z-0.9, 0, 0.0,A);
  3263.                         GameTextForPlayer(playerid,"~w~Sign ~b~Placed!",3000,1);
  3264.                         #if SEND == true
  3265.                         GetPlayerName(playerid,pName,32);
  3266.                         format(string,sizeof string," %s added a roadblock(%i).",pName,number);
  3267.                         SendClientMessageToAll(COLOR_GREEN, string);
  3268.                         #else
  3269.                         SetTimerEx("ExpireRoadblock", EXPIRE_MINUTES*60000, false, "i", block[atrb][playerid]);
  3270.                         atblock[playerid] += 1;
  3271.                         #endif
  3272.                     } else {
  3273.                         format(string,sizeof string,"You cannot place more then %i Roadblocks!",MAX_ROADBLOCKS);
  3274.                         SendClientMessage(playerid, COLOR_RED, string);
  3275.                     }
  3276.                     return 1;
  3277.             }
  3278.  
  3279.             case 7:
  3280.             {
  3281.                     new Float:X, Float:Y, Float:Z, Float:A;
  3282.                     GetPlayerPos(playerid, X, Y, Z);
  3283.                     GetPlayerFacingAngle(playerid, A);
  3284.                     if(atblock[playerid] < MAX_ROADBLOCKS)
  3285.                     {
  3286.                         block[atrb][playerid] = CreateObject(3091, X, Y+1, Z-0.25, 0, 0.0,A);
  3287.                         GameTextForPlayer(playerid,"~w~Sign ~b~Placed!",3000,1);
  3288.                         #if SEND == true
  3289.                         GetPlayerName(playerid,pName,32);
  3290.                         format(string,sizeof string," %s added a roadblock(%i).",pName,number);
  3291.                         SendClientMessageToAll(COLOR_GREEN, string);
  3292.                         #else
  3293.                         SetTimerEx("ExpireRoadblock",EXPIRE_MINUTES*60000, false, "i", block[atrb][playerid]);
  3294.                         atblock[playerid] += 1;
  3295.                         #endif
  3296.                     } else {
  3297.                         format(string,sizeof string,"You cannot place more then %i Roadblocks!",MAX_ROADBLOCKS);
  3298.                         SendClientMessage(playerid, COLOR_RED, string);
  3299.                     }
  3300.                     return 1;
  3301.             }
  3302.         }
  3303.     return 1;
  3304. }
  3305. CMD:deleteall(playerid,params[])
  3306. {
  3307.     if(PlayerInfo[playerid][Police] < 1)return SendClientMessage(playerid,COLOR_INTERFACE_BODY,"Íå ñè ïîëèöàé!");
  3308.     for(new i=0;i<=sizeof(block);i++) DestroyObject(block[i][playerid]);
  3309.     return 1;
  3310. }
  3311.  
  3312. CMD:rb(playerid, params[])
  3313.             return cmd_roadblock(playerid, params);
  3314.  
  3315. CMD:suspect(playerid,params[])
  3316. {
  3317.  new id,lvl,string[128];
  3318.  if(PlayerInfo[playerid][Police] < 1)return SendClientMessage(playerid,COLOR_INTERFACE_BODY,"Íå ñè ïîëèöàé!");
  3319.  if(sscanf(params,"ui",id,lvl)) return SendClientMessage(playerid,COLOR_RED,"USAGE:/suspect <playerid> <level 1-6>");
  3320.  if(!IsPlayerConnected(id)) return SendClientMessage(playerid,COLOR_RED,"Èãðà÷à íå å â ñúðâúðà");
  3321.  if(lvl < 0||lvl > 6) return SendClientMessage(playerid,COLOR_RED,"Ìàõèìóì ëåâåëè íà èçäèðâàíå 1-6!.");
  3322.  SetPlayerWantedLevel(id,lvl);
  3323.  format(string,sizeof(string)," Èãðà÷à %s(ID:%d)'s ïîëó÷è ëåâåë íà èçäèðâàíå %d!",GetName(id),id,lvl);
  3324.  SendClientMessage(playerid,COLOR_GREEN,string);
  3325.  format(string,sizeof(string)," Òè ïîëó÷è ñúñïåêò îò %s(ID:%d) òâîåòî íèâî íà èçäèðâàíå å %i!",GetName(playerid),playerid,lvl);
  3326.  SendClientMessage(id,COLOR_GREEN,string);
  3327.  return 1;
  3328. }
  3329. new Float:JailCellSpawns[][3] =
  3330. {
  3331.     {197.3941,162.4637,1003.0300},
  3332.     {194.3641,175.6378,1003.0234},
  3333.     {197.8117,174.2043,1003.0234}
  3334. };
  3335.  
  3336. COMMAND:arrest(playerid,params[])
  3337. {
  3338.     new pId;
  3339.     if(PlayerInfo[playerid][Police] < 1 || PlayerInfo[playerid][Army] < 1 || PlayerInfo[playerid][CIA] < 1)return SendClientMessage(playerid,COLOR_INTERFACE_BODY,"Íå ñè ïîëèöàé!");
  3340.  
  3341.         if(sscanf(params, "d", pId)) return SendClientMessage(playerid, 0xFF0000AA, "Usage: /arrest [ID]");
  3342.             else if(!IsPlayerConnected(pId)) return SendClientMessage(playerid, 0xFF0000AA, "The ID You Entered Was Not Found.");
  3343.                 else
  3344.                 {
  3345.                     new Float:x, Float:y, Float:z;
  3346.                     GetPlayerPos(pId, x, y, z);
  3347.                     if(IsPlayerInRangeOfPoint(playerid, 0.5, x, y, z))
  3348.                     {
  3349.                         new pname[MAX_PLAYER_NAME], aname[MAX_PLAYER_NAME], string1[250], string2[256];
  3350.                         GetPlayerName(playerid, pname, sizeof(pname));
  3351.                         GetPlayerName(pId, aname, sizeof(aname));
  3352.                         if (GetPlayerWantedLevel(pId) == 0)
  3353.                         {
  3354.                             SendClientMessage(playerid, 0xFF0000AA, "Òîçè èãðà÷ íå å èçäèðâàí!");
  3355.                             return 1;
  3356.                         }
  3357.                         else if (GetPlayerWantedLevel(pId) > 1)
  3358.                         {
  3359.                             new WantedLevel = GetPlayerWantedLevel(pId);
  3360.                             SetPlayerInterior(pId, 3);
  3361.                             new rand = random(sizeof(JailCellSpawns));
  3362.                             SetPlayerPos(pId, JailCellSpawns[rand][0], JailCellSpawns[rand][1], JailCellSpawns[rand][2]);
  3363.                             SetTimerEx("UnJail",WantedLevel*1000*60,0,"i",pId);
  3364.                             GivePlayerMoney(playerid, WantedLevel*430);
  3365.                             SetPlayerWantedLevel(pId, 0);
  3366.                             format(string1, sizeof(string1), "%s(%d) Å àðåñòóâàì îò %s(%d)", aname, pId, pname, playerid);
  3367.                             SendClientMessageToAll(0xFF0000AA, string1);
  3368.                             format(string2, sizeof(string2), "Âèå ñòå â çàòâîðà %s ìèíóòè çà èçäèðâàíî íèâî %s ", WantedLevel, WantedLevel);
  3369.                             SendClientMessage(pId, 0xFF0000AA, string2);
  3370.                             return 1;
  3371.                         }
  3372.                     }
  3373.     return 1;
  3374.     }
  3375. }
  3376. public UnJail(pId)
  3377. {
  3378.     SetPlayerPos(pId,1568.6295,-1689.9706,6.2188);
  3379.     SetPlayerInterior(pId, 0);
  3380.     SendClientMessage(pId, 0xFF0000AA, "Òè ñè ïóñíàò îò çàòâîðà!");
  3381.     SetPlayerWantedLevel(pId,0);
  3382.     return 1;
  3383. }
  3384. CMD:stats(playerid, params[])
  3385. {
  3386. if(IsPlayerConnected(playerid))
  3387. {
  3388.     StatsShow(playerid,playerid);
  3389.     }
  3390. return 1;}
  3391.  
  3392. forward StatsShow(playerid,targedid);
  3393. public StatsShow(playerid,targedid)
  3394. {
  3395.  
  3396. new pass = PlayerInfo[playerid][pPass];
  3397. new pName[MAX_PLAYER_NAME];
  3398. GetPlayerName(targedid, pName, sizeof(pName));
  3399.  
  3400. new message[128];
  3401. format (message, sizeof(message), "You Hungry: %i ",pass );
  3402. SendClientMessage(playerid, green, message);
  3403.  
  3404. return 1;}
  3405.  
  3406. CMD:setcredits(playerid, params[])
  3407. {
  3408.     new gamer,level;
  3409.     new text[128];
  3410.     new atext[128];
  3411.     if(PlayerInfo[playerid][pAdmin] < 7)
  3412.         return SendClientMessage(playerid, COLOR_RED, "Äîñòúï îòêàçàí.");
  3413.     if (sscanf(params, "ud", gamer , level)) SendClientMessage(playerid, COLOR_RED, "Èçïîëçâàé: \"/setcredits <Èãðà÷> <Áðîéêà>");
  3414.     else if (gamer == INVALID_PLAYER_ID) SendClientMessage(playerid, COLOR_RED, "Player not found");
  3415.     else
  3416.     {
  3417.         format (atext, sizeof(atext), "Âèå äàäàõòå íà èãðà÷ %i êðåäèòà",level);
  3418.         SendClientMessage(playerid, COLOR_PURPLE, atext);
  3419.         format (text, sizeof(text), "Àäìèí âè äàäå %i êðåäèòà",level);
  3420.         SendClientMessage(gamer, COLOR_PURPLE, text);
  3421.         PlayerInfo[gamer][Credits] = level;
  3422.     }
  3423.     return 1;
  3424. }
  3425.  
  3426.     CMD:levelup(playerid, params[])
  3427.     {
  3428.     new level = PlayerInfo[playerid][pLevel];
  3429.     new info[248] , info2[248];
  3430.  
  3431.     if(PlayerInfo[playerid][Xp] < 8*level)
  3432.     {
  3433.                 format(info2,sizeof(info2),"Òðÿáâàò âè [%d]",level*8);
  3434.                 SendClientMessage(playerid,white,info2);
  3435.                 return 1;
  3436.             }
  3437.             else
  3438.             {
  3439.                 PlayerInfo[playerid][Xp] = 0;
  3440.                 PlayerInfo[playerid][pLevel]++;
  3441.                 format(info,sizeof(info)," ~g~ Level Up! ~w~ Your now level: [%d]",level);
  3442.                 GameTextForPlayer(playerid,info,6000,1);
  3443.                 return 1;}
  3444.             }
  3445. CMD:ip(playerid,params[])
  3446. {
  3447.     new id,ip[17],string[65];
  3448.     if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid,COLOR_INTERFACE_BODY,"Òè íå ñè àäìèí");
  3449.     if(sscanf(params,"u",id)) return SendClientMessage(playerid,COLOR_GREEN,"[ADMIN]:/ip <playerid>");
  3450.     GetPlayerIp(id,ip,17);
  3451.     format(string,sizeof(string),"» %s(ID:%d)'s IP: %s",GetPName(id),id,ip);
  3452.     SendClientMessage(playerid,COLOR_GREEN,string);
  3453.     return 1;
  3454. }
  3455. CMD:countdown(playerid,params[])
  3456. {
  3457.     if(PlayerInfo[playerid][pAdmin] < 1)
  3458.         return SendClientMessage(playerid, COLOR_RED, "Äîñòúï îòêàçàí.");
  3459.     new Float:x,Float:y,Float:z;
  3460.     GetPlayerPos(playerid, x, y, z);
  3461.     if (Count == 0)
  3462.     {
  3463.     SetTimer("Counting",1000,false);
  3464.     }else{
  3465.     SendClientMessage(playerid, 0xFF0000FF,"Countdown already started!");
  3466.     }
  3467.     if IsPlayerInRangeOfPoint(playerid, RANGEOFSTARTER, x, y, z)*then
  3468.     {
  3469.     TogglePlayerControllable(playerid, 0);
  3470.     }
  3471.     return 1;
  3472. }
  3473.  
  3474.  
  3475.  
  3476.  
  3477. public IsAtFishPlace(playerid)
  3478. {
  3479.     if(IsPlayerConnected(playerid))
  3480.     {
  3481.         if(IsPlayerInRangeOfPoint(playerid,10.0,2911.0813,-2073.5806,1.0749))
  3482.         {
  3483.             return 1;
  3484.         }
  3485.         else if(IsPlayerInRangeOfPoint(playerid,10.0,2914.7356,-2105.4067,1.4454))
  3486.         {
  3487.             return 1;
  3488.         }
  3489.         else if(IsPlayerInRangeOfPoint(playerid,10.0,2910.9504,-2037.5778,1.4346))
  3490.         {
  3491.             return 1;
  3492.         }
  3493.         else if(IsPlayerInRangeOfPoint(playerid,10.0,2913.1492,-2011.3925,1.1975))
  3494.         {
  3495.             return 1;
  3496.         }
  3497.         else if(IsPlayerInRangeOfPoint(playerid,10.0,2914.6704,-2049.9504,3.5480) || IsPlayerInRangeOfPoint(playerid,10.0,2939.3528,-2051.5566,3.5480))
  3498.         {
  3499.             return 1;
  3500.         }
  3501.         else if(IsPlayerInWater(playerid))
  3502.         {
  3503.             return 1;
  3504.         }
  3505.     }
  3506.     return 0;
  3507. }
  3508. public FishTime(playerid)
  3509. {
  3510.     new string[128];
  3511.     if(IsPlayerConnected(playerid))
  3512.     {
  3513.         new rand = randomEx(1,11);
  3514.         new weight = randomEx(50,180);
  3515.         new money = randomEx(20, 80);
  3516.         if(rand == 1)
  3517.         {
  3518.             SendClientMessage(playerid,COLOR_GREENYELLOW,"You just fished out some trash and throwed it back in sea");
  3519.             Worms[playerid] -= 1;
  3520.             IsFishing[playerid] = 0;
  3521.             TogglePlayerControllable(playerid,true);
  3522.             return 1;
  3523.         }
  3524.         else if(rand == 2)
  3525.         {
  3526.             SendClientMessage(playerid,COLOR_GREENYELLOW,"You just fished out tuna!");
  3527.             Fishes[playerid] += 1;
  3528.             Worms[playerid] -= 1;
  3529.             IsFishing[playerid] = 0;
  3530.             FishWeight[playerid] += weight;
  3531.             TogglePlayerControllable(playerid,true);
  3532.             return 1;
  3533.         }
  3534.         else if(rand == 3)
  3535.         {
  3536.             SendClientMessage(playerid,COLOR_GREENYELLOW,"You just fished out Swordfish!");
  3537.             Fishes[playerid] += 1;
  3538.             IsFishing[playerid] = 0;
  3539.             Worms[playerid] -= 1;
  3540.             FishWeight[playerid] += weight;
  3541.             TogglePlayerControllable(playerid,true);
  3542.             return 1;
  3543.         }
  3544.         else if(rand == 4)
  3545.         {
  3546.             SendClientMessage(playerid,COLOR_GREENYELLOW,"You just fished out Blue Marlin!");
  3547.             Fishes[playerid] += 1;
  3548.             Worms[playerid] -= 1;
  3549.             IsFishing[playerid] = 0;
  3550.             FishWeight[playerid] += weight;
  3551.             TogglePlayerControllable(playerid,true);
  3552.             return 1;
  3553.         }
  3554.         else if(rand == 5)
  3555.         {
  3556.             SendClientMessage(playerid,COLOR_GREENYELLOW,"You just fished out Shark!");
  3557.             Fishes[playerid] += 1;
  3558.             Worms[playerid] -= 1;
  3559.             IsFishing[playerid] = 0;
  3560.             FishWeight[playerid] += weight;
  3561.             TogglePlayerControllable(playerid,true);
  3562.             return 1;
  3563.         }
  3564.         else if(rand == 6)
  3565.         {
  3566.             format(string,sizeof(string),"You just fished out Wallet and in there was $%d!", money);
  3567.             SendClientMessage(playerid,COLOR_GREENYELLOW,string);
  3568.             GivePlayerMoney(playerid, money);
  3569.             Worms[playerid] -= 1;
  3570.             TogglePlayerControllable(playerid,true);
  3571.             IsFishing[playerid] = 0;
  3572.             return 1;
  3573.         }
  3574.         else if(rand == 7)
  3575.         {
  3576.             SendClientMessage(playerid,COLOR_GREENYELLOW,"You just fished out Eel!");
  3577.             Fishes[playerid] += 1;
  3578.             TogglePlayerControllable(playerid,true);
  3579.             Worms[playerid] -= 1;
  3580.             IsFishing[playerid] = 0;
  3581.             FishWeight[playerid] += weight;
  3582.             return 1;
  3583.         }
  3584.         else if(rand == 8)
  3585.         {
  3586.             SendClientMessage(playerid,COLOR_GREENYELLOW,"You just fished out Sea Bass!");
  3587.             Fishes[playerid] += 1;
  3588.             Worms[playerid] -= 1;
  3589.             TogglePlayerControllable(playerid,true);
  3590.             IsFishing[playerid] = 0;
  3591.             FishWeight[playerid] += weight;
  3592.             return 1;
  3593.         }
  3594.         else if(rand == 9)
  3595.         {
  3596.             SendClientMessage(playerid,COLOR_GREENYELLOW,"You just fished out Sail Fish!");
  3597.             Fishes[playerid] += 1;
  3598.             TogglePlayerControllable(playerid,true);
  3599.             Worms[playerid] -= 1;
  3600.             IsFishing[playerid] = 0;
  3601.             FishWeight[playerid] += weight;
  3602.             return 1;
  3603.         }
  3604.         else if(rand == 10)
  3605.         {
  3606.             SendClientMessage(playerid,COLOR_GREENYELLOW,"You didnt catch anything.");
  3607.             Worms[playerid] -= 1;
  3608.             TogglePlayerControllable(playerid,true);
  3609.             IsFishing[playerid] = 0;
  3610.             return 1;
  3611.         }
  3612.         else
  3613.         {
  3614.             SendClientMessage(playerid,COLOR_GREENYELLOW,"You didnt catch anything, but you your worm remained");
  3615.             IsFishing[playerid] = 0;
  3616.             TogglePlayerControllable(playerid,true);
  3617.             return 1;
  3618.         }
  3619.     }
  3620.     return 0;
  3621. }
  3622.  
  3623. //-----------|| Function By BumbiS* ||--------------||
  3624. public SendRPMessage(playerid, Float:radius, color, string[])
  3625. {
  3626.     if(IsPlayerConnected(playerid))
  3627.     {
  3628.         for(new i=0;i<MAX_PLAYERS;i++)
  3629.         {
  3630.             new Float:x,Float:y,Float:z;
  3631.             GetPlayerPos(playerid,x,y,z);
  3632.             if(IsPlayerInRangeOfPoint(i, radius, x,y,z))
  3633.             {
  3634.                 SendClientMessage(i,color,string);
  3635.                 return 1;
  3636.             }
  3637.         }
  3638.     }
  3639.     return 0;
  3640. }
  3641. //--------------------------------------------------||
  3642.  
  3643. //-----------|| By Y_Less ||---------------||
  3644. stock randomEx(minnum = cellmin, maxnum = cellmax) return random(maxnum - minnum + 1) + minnum;
  3645. //----------|| Unknown creater of this, but thanks ||--||
  3646. stock IsPlayerInWater(playerid)
  3647. {
  3648.     new Float:x,Float:y,Float:pz;
  3649.     GetPlayerPos(playerid,x,y,pz);
  3650.     if (
  3651.     (IsPlayerInArea(playerid, 2032.1371, 1841.2656, 1703.1653, 1467.1099) && pz <= 9.0484) //lv piratenschiff
  3652.     || (IsPlayerInArea(playerid, 2109.0725, 2065.8232, 1962.5355, 10.8547) && pz <= 10.0792) //lv visage
  3653.     || (IsPlayerInArea(playerid, -492.5810, -1424.7122, 2836.8284, 2001.8235) && pz <= 41.06) //lv staucamm
  3654.     || (IsPlayerInArea(playerid, -2675.1492, -2762.1792, -413.3973, -514.3894) && pz <= 4.24) //sf südwesten kleiner teich
  3655.     || (IsPlayerInArea(playerid, -453.9256, -825.7167, -1869.9600, -2072.8215) && pz <= 5.72) //sf gammel teich
  3656.     || (IsPlayerInArea(playerid, 1281.0251, 1202.2368, -2346.7451, -2414.4492) && pz <= 9.3145) //ls neben dem airport
  3657.     || (IsPlayerInArea(playerid, 2012.6154, 1928.9028, -1178.6207, -1221.4043) && pz <= 18.45) //ls mitte teich
  3658.     || (IsPlayerInArea(playerid, 2326.4858, 2295.7471, -1400.2797, -1431.1266) && pz <= 22.615) //ls weiter südöstlich
  3659.     || (IsPlayerInArea(playerid, 2550.0454, 2513.7588, 1583.3751, 1553.0753) && pz <= 9.4171) //lv pool östlich
  3660.     || (IsPlayerInArea(playerid, 1102.3634, 1087.3705, -663.1653, -682.5446) && pz <= 112.45) //ls pool nordwestlich
  3661.     || (IsPlayerInArea(playerid, 1287.7906, 1270.4369, -801.3882, -810.0527) && pz <= 87.123) //pool bei maddog's haus oben
  3662.     || (pz < 1.5)
  3663.     )
  3664.     {
  3665.         return 1;
  3666.     }
  3667.     return 0;
  3668. }
  3669. stock IsPlayerInArea(playerid, Float:minx, Float:maxx, Float:miny, Float:maxy)
  3670. {
  3671. new Float:x, Float:y, Float:z;
  3672. GetPlayerPos(playerid, x, y, z);
  3673. if (x > minx && x < maxx && y > miny && y < maxy) return 1;
  3674. return 0;
  3675. }
  3676. //----------------------------------------------------||
  3677. public StopFish(playerid)
  3678. {
  3679.     AlreadyFished[playerid] = 0;
  3680.     SendClientMessage(playerid, COLOR_GREEN, "Hey, you can fish now!");
  3681.     return 1;
  3682. }
  3683. //by Double-O-Seven
  3684. stock GetWeaponModel(weaponid)
  3685. {
  3686.     switch(weaponid)
  3687.     {
  3688.         case 1:
  3689.             return 331;
  3690.  
  3691.         case 2..8:
  3692.             return weaponid+331;
  3693.  
  3694.         case 9:
  3695.             return 341;
  3696.  
  3697.         case 10..15:
  3698.             return weaponid+311;
  3699.  
  3700.         case 16..18:
  3701.             return weaponid+326;
  3702.  
  3703.         case 22..29:
  3704.             return weaponid+324;
  3705.  
  3706.         case 30,31:
  3707.             return weaponid+325;
  3708.  
  3709.         case 32:
  3710.             return 372;
  3711.  
  3712.         case 33..45:
  3713.             return weaponid+324;
  3714.  
  3715.         case 46:
  3716.             return 371;
  3717.     }
  3718.     return 0;
  3719. }
  3720.  
  3721. stock IsABike(vehicleid)
  3722. {
  3723.     new result;
  3724.     new model = GetVehicleModel(vehicleid);
  3725.     switch(model)
  3726.     {
  3727.         case 509, 481, 510, 462, 448, 581, 522, 461, 521, 523, 463, 586, 468, 471: result = model;
  3728.         default: result = 0;
  3729.     }
  3730.     return result;
  3731. }
  3732. stock GetPName(playerid)
  3733. {
  3734.     new
  3735.         pName[MAX_PLAYER_NAME];
  3736.  
  3737.     GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
  3738.     return pName;
  3739. }
  3740.  
  3741. // SScanf
  3742. stock sscanf(string[], format[], {Float,_}:...)
  3743. {
  3744.     #if defined isnull
  3745.         if (isnull(string))
  3746.     #else
  3747.         if (string[0] == 0 || (string[0] == 1 && string[1] == 0))
  3748.     #endif
  3749.         {
  3750.             return format[0];
  3751.         }
  3752.     #pragma tabsize 4
  3753.     new
  3754.         formatPos = 0,
  3755.         stringPos = 0,
  3756.         paramPos = 2,
  3757.         paramCount = numargs(),
  3758.         delim = ' ';
  3759.     while (string[stringPos] && string[stringPos] <= ' ')
  3760.     {
  3761.         stringPos++;
  3762.     }
  3763.     while (paramPos < paramCount && string[stringPos])
  3764.     {
  3765.         switch (format[formatPos++])
  3766.         {
  3767.             case '\0':
  3768.             {
  3769.                 return 0;
  3770.             }
  3771.             case 'i', 'd':
  3772.             {
  3773.                 new
  3774.                     neg = 1,
  3775.                     num = 0,
  3776.                     ch = string[stringPos];
  3777.                 if (ch == '-')
  3778.                 {
  3779.                     neg = -1;
  3780.                     ch = string[++stringPos];
  3781.                 }
  3782.                 do
  3783.                 {
  3784.                     stringPos++;
  3785.                     if ('0' <= ch <= '9')
  3786.                     {
  3787.                         num = (num * 10) + (ch - '0');
  3788.                     }
  3789.                     else
  3790.                     {
  3791.                         return -1;
  3792.                     }
  3793.                 }
  3794.                 while ((ch = string[stringPos]) > ' ' && ch != delim);
  3795.                 setarg(paramPos, 0, num * neg);
  3796.             }
  3797.             case 'h', 'x':
  3798.             {
  3799.                 new
  3800.                     num = 0,
  3801.                     ch = string[stringPos];
  3802.                 do
  3803.                 {
  3804.                     stringPos++;
  3805.                     switch (ch)
  3806.                     {
  3807.                         case 'x', 'X':
  3808.                         {
  3809.                             num = 0;
  3810.                             continue;
  3811.                         }
  3812.                         case '0' .. '9':
  3813.                         {
  3814.                             num = (num << 4) | (ch - '0');
  3815.                         }
  3816.                         case 'a' .. 'f':
  3817.                         {
  3818.                             num = (num << 4) | (ch - ('a' - 10));
  3819.                         }
  3820.                         case 'A' .. 'F':
  3821.                         {
  3822.                             num = (num << 4) | (ch - ('A' - 10));
  3823.                         }
  3824.                         default:
  3825.                         {
  3826.                             return -1;
  3827.                         }
  3828.                     }
  3829.                 }
  3830.                 while ((ch = string[stringPos]) > ' ' && ch != delim);
  3831.                 setarg(paramPos, 0, num);
  3832.             }
  3833.             case 'c':
  3834.             {
  3835.                 setarg(paramPos, 0, string[stringPos++]);
  3836.             }
  3837.             case 'f':
  3838.             {
  3839.  
  3840.                 new changestr[16], changepos = 0, strpos = stringPos;
  3841.                 while(changepos < 16 && string[strpos] && string[strpos] != delim)
  3842.                 {
  3843.                     changestr[changepos++] = string[strpos++];
  3844.                     }
  3845.                 changestr[changepos] = '\0';
  3846.                 setarg(paramPos,0,_:floatstr(changestr));
  3847.             }
  3848.             case 'p':
  3849.             {
  3850.                 delim = format[formatPos++];
  3851.                 continue;
  3852.             }
  3853.             case '\'':
  3854.             {
  3855.                 new
  3856.                     end = formatPos - 1,
  3857.                     ch;
  3858.                 while ((ch = format[++end]) && ch != '\'') {}
  3859.                 if (!ch)
  3860.                 {
  3861.                     return -1;
  3862.                 }
  3863.                 format[end] = '\0';
  3864.                 if ((ch = strfind(string, format[formatPos], false, stringPos)) == -1)
  3865.                 {
  3866.                     if (format[end + 1])
  3867.                     {
  3868.                         return -1;
  3869.                     }
  3870.                     return 0;
  3871.                 }
  3872.                 format[end] = '\'';
  3873.                 stringPos = ch + (end - formatPos);
  3874.                 formatPos = end + 1;
  3875.             }
  3876.             case 'u':
  3877.             {
  3878.                 new
  3879.                     end = stringPos - 1,
  3880.                     id = 0,
  3881.                     bool:num = true,
  3882.                     ch;
  3883.                 while ((ch = string[++end]) && ch != delim)
  3884.                 {
  3885.                     if (num)
  3886.                     {
  3887.                         if ('0' <= ch <= '9')
  3888.                         {
  3889.                             id = (id * 10) + (ch - '0');
  3890.                         }
  3891.                         else
  3892.                         {
  3893.                             num = false;
  3894.                         }
  3895.                     }
  3896.                 }
  3897.                 if (num && IsPlayerConnected(id))
  3898.                 {
  3899.                     setarg(paramPos, 0, id);
  3900.                 }
  3901.                 else
  3902.                 {
  3903.                     #if !defined foreach
  3904.                         #define foreach(%1,%2) for (new %2 = 0; %2 < MAX_PLAYERS; %2++) if (IsPlayerConnected(%2))
  3905.                         #define __SSCANF_FOREACH__
  3906.                     #endif
  3907.                     string[end] = '\0';
  3908.                     num = false;
  3909.                     new
  3910.                         name[MAX_PLAYER_NAME];
  3911.                     id = end - stringPos;
  3912.                     foreach (Player, playerid)
  3913.                     {
  3914.                         GetPlayerName(playerid, name, sizeof (name));
  3915.                         if (!strcmp(name, string[stringPos], true, id))
  3916.                         {
  3917.                             setarg(paramPos, 0, playerid);
  3918.                             num = true;
  3919.                             break;
  3920.                         }
  3921.                     }
  3922.                     if (!num)
  3923.                     {
  3924.                         setarg(paramPos, 0, INVALID_PLAYER_ID);
  3925.                     }
  3926.                     string[end] = ch;
  3927.                     #if defined __SSCANF_FOREACH__
  3928.                         #undef foreach
  3929.                         #undef __SSCANF_FOREACH__
  3930.                     #endif
  3931.                 }
  3932.                 stringPos = end;
  3933.             }
  3934.             case 's', 'z':
  3935.             {
  3936.                 new
  3937.                     i = 0,
  3938.                     ch;
  3939.                 if (format[formatPos])
  3940.                 {
  3941.                     while ((ch = string[stringPos++]) && ch != delim)
  3942.                     {
  3943.                         setarg(paramPos, i++, ch);
  3944.                     }
  3945.                     if (!i)
  3946.                     {
  3947.                         return -1;
  3948.                     }
  3949.                 }
  3950.                 else
  3951.                 {
  3952.                     while ((ch = string[stringPos++]))
  3953.                     {
  3954.                         setarg(paramPos, i++, ch);
  3955.                     }
  3956.                 }
  3957.                 stringPos--;
  3958.                 setarg(paramPos, i, '\0');
  3959.             }
  3960.             default:
  3961.             {
  3962.                 continue;
  3963.             }
  3964.         }
  3965.         while (string[stringPos] && string[stringPos] != delim && string[stringPos] > ' ')
  3966.         {
  3967.             stringPos++;
  3968.         }
  3969.         while (string[stringPos] && (string[stringPos] == delim || string[stringPos] <= ' '))
  3970.         {
  3971.             stringPos++;
  3972.         }
  3973.         paramPos++;
  3974.     }
  3975.     do
  3976.     {
  3977.         if ((delim = format[formatPos++]) > ' ')
  3978.         {
  3979.             if (delim == '\'')
  3980.             {
  3981.                 while ((delim = format[formatPos++]) && delim != '\'') {}
  3982.             }
  3983.             else if (delim != 'z')
  3984.             {
  3985.                 return delim;
  3986.             }
  3987.         }
  3988.     }
  3989.     while (delim > ' ');
  3990.     return 0;
  3991. }
  3992.  
  3993.  
  3994. stock NullVariables()
  3995. {
  3996.         format(Poll[yVariant], 5, "None");
  3997.         format(Poll[nVariant], 5, "None");
  3998.         format(Poll[Question], 5, "None");
  3999.         Poll[Start] = false;
  4000.         Poll[yCount] = 0;
  4001.         Poll[nCount] = 0;
  4002.         Poll[GeneralCount] = 0;
  4003.         Poll[Organizator] = INVALID_PLAYER_ID;
  4004. }
  4005. stock IsNumeric(string[])
  4006. {
  4007.     for (new i = 0, j = strlen(string); i < j; i++)
  4008.     {
  4009.         if (string[i] > '9' || string[i] < '0') return 0;
  4010.     }
  4011.     return 1;
  4012. }
  4013. stock IsValidSkin(SkinID)
  4014. {
  4015.     if((SkinID == 0)||(SkinID == 7)||(SkinID >= 9 && SkinID <= 41)||(SkinID >= 43 && SkinID <= 64)||(SkinID >= 66 && SkinID <= 73)||(SkinID >= 75 && SkinID <= 85)||(SkinID >= 87 && SkinID <= 118)||(SkinID >= 120 && SkinID <= 148)||(SkinID >= 150 && SkinID <= 207)||(SkinID >= 209 && SkinID <= 264)||(SkinID >= 274 && SkinID <= 288)||(SkinID >= 290 && SkinID <= 299)) return true;
  4016.     else return false;
  4017. }
  4018. stock PlayerName(playerid) {
  4019.     new name[255];
  4020.     GetPlayerName(playerid, name, 255);
  4021.     return name;
  4022. }
  4023. stock GetName(playerid)
  4024. {
  4025.     new
  4026.         pName[MAX_PLAYER_NAME];
  4027.  
  4028.     GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
  4029.     return pName;
  4030. }
  4031. public ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5)
  4032. {
  4033.     if(IsPlayerConnected(playerid))
  4034.     {
  4035.         new Float:posx, Float:posy, Float:posz;
  4036.         new Float:oldposx, Float:oldposy, Float:oldposz;
  4037.         new Float:tempposx, Float:tempposy, Float:tempposz;
  4038.         GetPlayerPos(playerid, oldposx, oldposy, oldposz);
  4039.         for(new i = 0; i < MAX_PLAYERS; i++)
  4040.         {
  4041.             if(IsPlayerConnected(i) && (GetPlayerVirtualWorld(playerid) == GetPlayerVirtualWorld(i)))
  4042.             {
  4043.                 GetPlayerPos(i, posx, posy, posz);
  4044.                 tempposx = (oldposx -posx);
  4045.                 tempposy = (oldposy -posy);
  4046.                 tempposz = (oldposz -posz);
  4047.                 if (((tempposx < radi/16) && (tempposx > -radi/16)) && ((tempposy < radi/16) && (tempposy > -radi/16)) && ((tempposz < radi/16) && (tempposz > -radi/16))) // If the player is within 16 meters
  4048.                 {
  4049.                     SendClientMessage(i, col1, string);
  4050.                 }
  4051.                 else if (((tempposx < radi/8) && (tempposx > -radi/8)) && ((tempposy < radi/8) && (tempposy > -radi/8)) && ((tempposz < radi/8) && (tempposz > -radi/8))) // within 8 meters
  4052.                 {
  4053.                     SendClientMessage(i, col2, string);
  4054.                 }
  4055.                 else if (((tempposx < radi/4) && (tempposx > -radi/4)) && ((tempposy < radi/4) && (tempposy > -radi/4)) && ((tempposz < radi/4) && (tempposz > -radi/4))) //4 meters
  4056.                 {
  4057.                     SendClientMessage(i, col3, string);
  4058.                 }
  4059.                 else if (((tempposx < radi/2) && (tempposx > -radi/2)) && ((tempposy < radi/2) && (tempposy > -radi/2)) && ((tempposz < radi/2) && (tempposz > -radi/2))) //2 meters
  4060.                 {
  4061.                     SendClientMessage(i, col4, string);
  4062.                 }
  4063.                 else if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi))) //1 meter
  4064.                 {
  4065.                     SendClientMessage(i, col5, string);
  4066.                 }
  4067.             }
  4068.             else
  4069.             {
  4070.                 SendClientMessage(i, col1, string);
  4071.             }
  4072.         }
  4073.     }
  4074.     return 1;
  4075. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement