Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 20.55 KB | None | 0 0
  1. // This is a comment
  2. // uncomment the line below if you want to write a filterscript
  3. //#define FILTERSCRIPT
  4.  
  5. #include <a_samp>
  6. #include <core>
  7. #include <float>
  8. #include <string>
  9. #include <file>
  10. #include <time>
  11. #include <datagram>
  12. #include <a_players>
  13. #include <a_vehicles>
  14. #include <a_objects>
  15. #include <a_sampdb>
  16.  
  17. #define COLOR_GRAD1 0xB4B5B7FF
  18. #define COLOR_GRAD2 0xBFC0C2FF
  19. #define COLOR_GRAD3 0xCBCCCEFF
  20. #define COLOR_GRAD4 0xD8D8D8FF
  21. #define COLOR_GRAD5 0xE3E3E3FF
  22. #define COLOR_GRAD6 0xF0F0F0FF
  23. #define COLOR_GREY 0xAFAFAFAA
  24. #define COLOR_GREEN 0x33AA33AA
  25. #define COLOR_RED 0xAA3333AA
  26. #define COLOR_LIGHTRED 0xFF6347AA
  27. #define COLOR_LIGHTBLUE 0x33CCFFAA
  28. #define COLOR_LIGHTGREEN 0x9ACD32AA
  29. #define COLOR_YELLOW 0xFFFF00AA
  30. #define COLOR_YELLOW2 0xF5DEB3AA
  31. #define COLOR_WHITE 0xFFFFFFAA
  32. #define COLOR_BLACK 0x000000
  33. #define COLOR_FADE1 0xE6E6E6E6
  34. #define COLOR_FADE2 0xC8C8C8C8
  35. #define COLOR_FADE3 0xAAAAAAAA
  36. #define COLOR_FADE4 0x8C8C8C8C
  37. #define COLOR_FADE5 0x6E6E6E6E
  38. #define COLOR_PURPLE 0xC2A2DAAA
  39. #define COLOR_DARKVIOLET 0xC22FF2AA
  40. #define COLOR_DBLUE 0x2641FEAA
  41. #define COLOR_BLUE 0x0000BBAA
  42. #define COLOR_ORANGE 0xF67A00AA
  43. #define COLOR_LIGHTRED2 0xF60000AA
  44. #define COLOR_PINK 0xF600F6AA
  45.  
  46. public OnFilterScriptInit()
  47. {
  48.     print("\n--------------------------------------");
  49.     print(" By Woks");
  50.     print("--------------------------------------\n");
  51.     return 1;
  52. }
  53.  
  54. public OnFilterScriptExit()
  55. {
  56.     return 1;
  57. }
  58.  
  59. new TelePos[MAX_PLAYERS][3];
  60.  
  61. main()
  62. {
  63.     print("\n----------------------------------");
  64.     print(" By Woks");
  65.     print("----------------------------------\n");
  66. }
  67.  
  68. stock IsNumeric(const string[])
  69. {
  70.     for (new i = 0, j = strlen(string); i < j; i++)
  71.     if(string[i] > '9' || string[j] < '0') return 0;
  72.     return 1;
  73. }
  74.  
  75. strtok(const string[], &index)
  76. {
  77.     new length = strlen(string);
  78.     while ((index < length) && (string[index] <= ' '))
  79.     {
  80.         index++;
  81.     }
  82.  
  83.     new offset = index;
  84.     new result[20];
  85.     while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
  86.     {
  87.         result[index - offset] = string[index];
  88.         index++;
  89.     }
  90.     result[index - offset] = EOS;
  91.     return result;
  92. }
  93.  
  94. ReturnUser(text[], playerid = INVALID_PLAYER_ID)
  95. {
  96.     new pos = 0;
  97.     while (text[pos] < 0x21)
  98.     {
  99.         if (text[pos] == 0) return INVALID_PLAYER_ID;
  100.         pos++;
  101.     }
  102.     new userid = INVALID_PLAYER_ID;
  103.     if (IsNumeric(text[pos]))
  104.     {
  105.         userid = strval(text[pos]);
  106.         if (userid >=0 && userid < MAX_PLAYERS)
  107.         {
  108.             if(!IsPlayerConnected(userid))
  109.             {
  110.                 userid = INVALID_PLAYER_ID;
  111.             }
  112.             else
  113.             {
  114.                 return userid;
  115.             }
  116.         }
  117.     }
  118.     new len = strlen(text[pos]);
  119.     new count = 0;
  120.     new name[MAX_PLAYER_NAME];
  121.     for (new i = 0; i < MAX_PLAYERS; i++)
  122.     {
  123.         if (IsPlayerConnected(i))
  124.         {
  125.             GetPlayerName(i, name, sizeof (name));
  126.             if (strcmp(name, text[pos], true, len) == 0)
  127.             {
  128.                 if (len == strlen(name))
  129.                 {
  130.                     return i;
  131.                 }
  132.                 else
  133.                 {
  134.                     count++;
  135.                     userid = i;
  136.                 }
  137.             }
  138.         }
  139.     }
  140.     if (count != 1)
  141.     {
  142.         if (playerid != INVALID_PLAYER_ID)
  143.         {
  144.             if (count)
  145.             {
  146.                 SendClientMessage(playerid, COLOR_DARKVIOLET, "There are multiple users, enter full playername.");
  147.             }
  148.             else
  149.             {
  150.                 SendClientMessage(playerid, COLOR_DARKVIOLET, "Playername not found.");
  151.             }
  152.         }
  153.         userid = INVALID_PLAYER_ID;
  154.     }
  155.     return userid;
  156. }
  157.  
  158.  
  159. new UsedCom[MAX_PLAYERS];
  160.     new Menu: FrogoMenu;
  161. public OnGameModeInit()
  162. {
  163.     FrogoMenu = CreateMenu("Victum", 2, 100.0, 150.0, 85.0, 85.0);
  164.     SetMenuColumnHeader(FrogoMenu, 0, "Skins");
  165.     AddMenuItem(FrogoMenu, 0, "Next");
  166.     AddMenuItem(FrogoMenu, 0, "Down");
  167.  
  168.     AddPlayerClass(78,1154.2191,-1770.0973,16.5938,4.1672,0,0,0,0,0,0);
  169.     CreateVehicle(426,-2064.2239,-84.0578,34.9071,0.0597,10,10,120); // Машина #1
  170.     CreateVehicle(426,-2072.8416,-83.6993,34.9073,359.2102,10,10,120); // Машина #2
  171.     CreateVehicle(426,-2081.0989,-84.4191,34.9069,359.8509,10,10,120); // Машина #3
  172.     CreateVehicle(426,-2089.6599,-83.5961,34.9076,0.3226,10,10,120); // Машина #3
  173.     CreateVehicle(487,-2027.4215,-109.6284,39.0985,1.3872,54,29,120); // Учебный вертолет
  174.     return 1;
  175. }
  176. public OnPlayerSelectedMenuRow(playerid, row)
  177. {
  178.     if(GetPlayerMenu(playerid) == FrogoMenu)
  179.     {
  180.         switch(row)
  181.         {
  182.             case 0:
  183.             {
  184.                 SetPlayerSkin(playerid, 78);
  185.             }
  186.             case 1:
  187.             {
  188.                 SetPlayerSkin(playerid, 79);
  189.             }
  190.             case 2:
  191.             {
  192.                 SetPlayerSkin(playerid, 137);
  193.             }
  194.         }
  195.     }
  196.     return 1;
  197. }
  198.  
  199. public OnGameModeExit()
  200. {
  201.     return 1;
  202. }
  203.  
  204. public OnPlayerRequestClass(playerid, classid)
  205. {
  206.     SetPlayerPos(playerid, 222.4321,-8.7334,1002.2109);
  207.     SetPlayerCameraPos(playerid, 222.4321,-8.7334,1002.2109);
  208.     SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  209.     return 1;
  210. }
  211.  
  212. public OnPlayerConnect(playerid)
  213. {
  214.     return 1;
  215. }
  216.  
  217. public OnPlayerDisconnect(playerid, reason)
  218. {
  219.     return 1;
  220. }
  221.  
  222. public OnPlayerSpawn(playerid)
  223. {
  224.     return 1;
  225. }
  226.  
  227. public OnPlayerDeath(playerid, killerid, reason)
  228. {
  229.     return 1;
  230. }
  231.  
  232. public OnVehicleSpawn(vehicleid)
  233. {
  234.     return 1;
  235. }
  236.  
  237. public OnVehicleDeath(vehicleid, killerid)
  238. {
  239.     return 1;
  240. }
  241.  
  242. public OnPlayerText(playerid, text[])
  243. {
  244.     return 1;
  245. }
  246.  
  247. public OnPlayerCommandText(playerid, cmdtext[])
  248. {
  249.     new sendername[MAX_PLAYER_NAME];
  250.     new playername[MAX_PLAYER_NAME];
  251.     new giveplayer[MAX_PLAYER_NAME];
  252.     new giveplayerid;
  253.     new cmd[256];
  254.     new tmp[256];
  255.     new idx;
  256.     new string[256];
  257.     cmd = strtok(cmdtext, idx);
  258.     if(strcmp(cmd, "/goto", true) == 0)
  259.     {
  260.         if(UsedCom[playerid]>0) return SendClientMessage(playerid, COLOR_WHITE, "Ввод команды разрешон раз в 1 секунду");
  261.         if(IsPlayerConnected(playerid))
  262.         {
  263.             tmp = strtok(cmdtext, idx);
  264.             if(!strlen(tmp))
  265.             {
  266.                 SendClientMessage(playerid, COLOR_GRAD2, "Используйте: /goto [id]");
  267.                 return 1;
  268.             }
  269.             new Float:plocx,Float:plocy,Float:plocz;
  270.             new plo;
  271.             plo = ReturnUser(tmp);
  272.             if (IsPlayerConnected(plo))
  273.             {
  274.                 if(plo != INVALID_PLAYER_ID)
  275.                 {
  276.                     /*if (PlayerInfo[playerid][pAdmin] >= 3)
  277.                     {*/
  278.                     GetPlayerPos(plo, plocx, plocy, plocz);
  279.                     /*if(PlayerInfo[plo][pInt] > 0)
  280.                     {
  281.                         SafeSetPlayerInterior(playerid,PlayerInfo[plo][pInt]);
  282.                         PlayerInfo[playerid][pLocal] = PlayerInfo[plo][pLocal];
  283.                     }
  284.                     else
  285.                     {
  286.                         SafeSetPlayerInterior(playerid,0);
  287.                     }*/
  288.                     if (GetPlayerState(playerid) == 2)
  289.                     {
  290.                         new tmpcar = GetPlayerVehicleID(playerid);
  291.                         SetVehiclePos(tmpcar, plocx, plocy+4, plocz);
  292.                         TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
  293.                     }
  294.                     else
  295.                     {
  296.                         SetPlayerPos(playerid,plocx,plocy+2, plocz);
  297.                     }
  298.                     SetPlayerVirtualWorld(playerid, PlayerInfo[plo][pVirWorld]);
  299.                     GetPlayerName(plo, giveplayer, sizeof(giveplayer));
  300.                     format(string, sizeof(string), SendClientMessage(playerid, COLOR_WHITE, "Вы телепортировались к игроку.")
  301.                     ABroadCast(COLOR_LIGHTRED, string, 5);
  302.                     DisablePlayerCheckpoint(playerid);
  303.                     OnPlayerExitFood(playerid);
  304.                     new y, m, d;
  305.                     new h,mi,s;
  306.                     getdate(y,m,d);
  307.                     gettime(h,mi,s);
  308.                     format(string,sizeof(string), SendClientMessage(playerid, COLOR_WHITE, "Вы телепортировались к игроку.")
  309.                     TelesLog(string);
  310.                     /*}
  311.                     else
  312.                     {
  313.                         SendClientMessage(playerid, COLOR_GRAD1, "У вас нет прав на использоване  этой команды!");
  314.                     }*/
  315.                 }
  316.             }
  317.             else
  318.             {
  319.                 format(string, sizeof(string), "%d нету в игре.", plo);
  320.                 SendClientMessage(playerid, COLOR_GRAD1, string);
  321.             }
  322.         }
  323.         UsedCom[playerid]=1;
  324.         return 1;
  325.     }
  326. //==============================================================================
  327.     if(strcmp(cmd, "/gethere", true) == 0)
  328.     {
  329.         if(UsedCom[playerid]>0) return SendClientMessage(playerid, COLOR_WHITE, "Ввод команды разрешон раз в 1 секунду")
  330.         if(IsPlayerConnected(playerid))
  331.         {
  332.             tmp = strtok(cmdtext, idx);
  333.             if(!strlen(tmp))
  334.             {
  335.                 SendClientMessage(playerid, COLOR_GRAD2, "Используйте: /gethere [ID игрока/Имя_Фамилия]");
  336.                 return 1;
  337.             }
  338.             new Float:plocx,Float:plocy,Float:plocz;
  339.             new plo;
  340.             plo = ReturnUser(tmp);
  341.             GetPlayerName(playerid,sendername,sizeof(sendername));
  342.             GetPlayerName(plo, giveplayer, sizeof(giveplayer));
  343.             if (IsPlayerConnected(plo))
  344.             {
  345.                 if(plo != INVALID_PLAYER_ID)
  346.                 {
  347.                     if (PlayerInfo[playerid][pAdmin] >= 4)
  348.                     {
  349.                         GetPlayerPos(playerid, plocx, plocy, plocz);
  350.                         if(PlayerInfo[playerid][pInt] > 0)
  351.                         {
  352.                             SafeSetPlayerInterior(plo,PlayerInfo[playerid][pInt]);
  353.                             PlayerInfo[plo][pLocal] = PlayerInfo[playerid][pLocal];
  354.                         }
  355.                         if(PlayerInfo[playerid][pInt] == 0)
  356.                         {
  357.                             SafeSetPlayerInterior(plo,0);
  358.                         }
  359.                         if(plocz > 930.0 && PlayerInfo[playerid][pInt] == 0) //the highest land point in sa = 526.8
  360.                         {
  361.                             SafeSetPlayerInterior(plo,1);
  362.                             PlayerInfo[plo][pInt] = 1;
  363.                         }
  364.                         if (GetPlayerState(plo) == 2)
  365.                         {
  366.                             TelePos[plo][0] = 0.0;
  367.                             TelePos[plo][1] = 0.0;
  368.                             new tmpcar = GetPlayerVehicleID(plo);
  369.                             SetVehiclePos(tmpcar, plocx, plocy+4, plocz);
  370.                         }
  371.                         else
  372.                         {
  373.                             SetPlayerPos(plo,plocx,plocy+2, plocz);
  374.                         }
  375.                         SetPlayerVirtualWorld(plo, PlayerInfo[playerid][pVirWorld]);
  376.                         format(string,sizeof(string), SendClientMessage(playerid, COLOR_WHITE, "Вас телепортировал администратор этого сервера.")
  377.                         ABroadCast(COLOR_LIGHTRED,string, 5);
  378.                         DisablePlayerCheckpoint(plo);
  379.                         OnPlayerExitFood(plo);
  380.                         new y, m, d;
  381.                         new h,mi,s;
  382.                         getdate(y,m,d);
  383.                         gettime(h,mi,s);
  384.                         format(string,sizeof(string), SendClientMessage(playerid, COLOR_WHITE, "Вас телепортировал администратор этого сервера.")
  385.                         AdminLog(string);
  386.                     }
  387.                     else
  388.                     {
  389.                         SendClientMessage(playerid, COLOR_GRAD1, "У вас нет прав на использоване  этой команды!");
  390.                     }
  391.                 }
  392.             }
  393.             else
  394.             {
  395.                 format(string, sizeof(string), "%d нету в игре.", plo);
  396.                 SendClientMessage(playerid, COLOR_GRAD1, string);
  397.             }
  398.         }
  399.         UsedCom[playerid]=1;
  400.         return 1;
  401.     }
  402. //==============================================================================
  403.     if(strcmp(cmd, "/id", true) == 0)
  404.     {
  405.         if(UsedCom[playerid]>0) return SendClientMessage(playerid, COLOR_WHITE, "Ввод команды разрешон раз в 1 секунду")
  406.         if(IsPlayerConnected(playerid))
  407.         {
  408.             tmp = strtok(cmdtext, idx);
  409.             if(!strlen(tmp))
  410.             {
  411.                 SendClientMessage(playerid, COLOR_GRAD2, "Используйте: /id [Ник/Часть ника/id]");
  412.                 return 1;
  413.             }
  414.             new target;
  415.             target = ReturnUser(tmp);
  416.             new sstring[256];
  417.             if(IsPlayerConnected(target))
  418.             {
  419.                 if(target != INVALID_PLAYER_ID)
  420.                 {
  421.                     GetPlayerName(target, giveplayer, sizeof(giveplayer));
  422.                     format(sstring, sizeof(sstring), "%s(%d)",target,giveplayer);
  423.                     SendClientMessage(playerid, COLOR_GRAD1, sstring);
  424.                 }
  425.             }
  426.         }
  427.         UsedCom[playerid]=1;
  428.         return 1;
  429.     }
  430. //==============================================================================
  431.     if(strcmp(cmd, "/ahelp", true) == 0 || strcmp(cmd, "/ah", true) == 0)
  432.     {
  433.         if(UsedCom[playerid]>0) return SendClientMessage(playerid, COLOR_WHITE, "Ввод команды разрешон раз в 1 секунду")
  434.         if(IsPlayerConnected(playerid))
  435.         {
  436.             if (PlayerInfo[playerid][pAdmin] < 1)
  437.             {
  438.                 SendClientMessage(playerid, COLOR_GREY, "Вы не авторизованы для использование этой команды!");
  439.                 return 1;
  440.             }
  441.             new plevel = PlayerInfo[playerid][pAdmin];
  442.             tmp = strtok(cmdtext, idx);
  443.             if(!strlen(tmp))
  444.             {
  445.                 SendClientMessage(playerid, COLOR_GREY, "Используйте: /(ah)elp [Уровень]");
  446.                 if(plevel == 1)
  447.                 {
  448.                     SendClientMessage(playerid, COLOR_GREY, "Доступные уровни: 1.");
  449.                 }
  450.                 else if(plevel == 2)
  451.                 {
  452.                     SendClientMessage(playerid, COLOR_GREY, "Доступные уровни: 1, 2.");
  453.                 }
  454.                 else if(plevel == 3)
  455.                 {
  456.                     SendClientMessage(playerid, COLOR_GREY, "Доступные уровни: 1, 2, 3.");
  457.                 }
  458.                 else if(plevel == 4)
  459.                 {
  460.                     SendClientMessage(playerid, COLOR_GREY, "Доступные уровни: 1, 2, 3, 4.");
  461.                 }
  462.                 else if(plevel == 5)
  463.                 {
  464.                     SendClientMessage(playerid, COLOR_GREY, "Доступные уровни: 1, 2, 3, 4, 5.");
  465.                 }
  466.                 else if(plevel == 6)
  467.                 {
  468.                     SendClientMessage(playerid, COLOR_GREY, "Доступные уровни: 1, 2, 3, 4, 5, 6.");
  469.                 }
  470.                 else if(plevel >= 1337)
  471.                 {
  472.                     SendClientMessage(playerid, COLOR_GREY, "Доступные уровни: 1, 2, 3, 4, 5, 6, 1337.");
  473.                 }
  474.                 return 1;
  475.             }
  476.             new level = strval(tmp);
  477.             if (level == 1)
  478.             {
  479.                 if(PlayerInfo[playerid][pAdmin] >= 1)
  480.                 {
  481.                     SendClientMessage(playerid, COLOR_WHITE, "======================================== Мл.Модератор ========================================");
  482.                     SendClientMessage(playerid, COLOR_GRAD1, "/check /setint /setvw /mute /kick /nick /(un)warn /jailed /blinded  /reports /masked /apm /freeze");
  483.                     SendClientMessage(playerid, COLOR_GRAD1, "/learn /sr /(not)Checked /muted /frozen /suspectlist /richlist /slap /kill /messages /admin /warned ");
  484.                     SendClientMessage(playerid, COLOR_GRAD1, "/ajail /checkweapons /(end)spec /turn /givetime /ip /unjail /trace /afk /pending /registred");
  485.                 }
  486.                 else
  487.                 {
  488.                     SendClientMessage(playerid, COLOR_GREY, "Вы не 1 уровень!");
  489.                     return 1;
  490.                 }
  491.             }
  492.             else if (level == 2)
  493.             {
  494.                 if(PlayerInfo[playerid][pAdmin] >= 2)
  495.                 ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"Админские комманды","/kick-кик, /ban-бан\nПункт 2\nПункт 3","Выбрать","отмена");
  496.                 {
  497.                     SendClientMessage(playerid, COLOR_WHITE,"======================================== Модератор ========================================");
  498.                     SendClientMessage(playerid, COLOR_GRAD2,"/skydive /kickres /unprison /punch /setjob  /update /agl /agivepassport /shiftname");
  499.                     SendClientMessage(playerid, COLOR_GRAD2,"/skick /nopub /txt /bigears /fine /fban /respawnthiscar(/rtc) /disarm /asu /cancelcontract");
  500.                 }
  501.                 else
  502.                 {
  503.                     SendClientMessage(playerid, COLOR_GREY, "Вы не 2 уровень!");
  504.                     return 1;
  505.                 }
  506.             }
  507.             else if (level == 3)
  508.             {
  509.                 if(PlayerInfo[playerid][pAdmin] >= 3)
  510.                 {
  511.                     SendClientMessage(playerid, COLOR_WHITE,"======================================== Ст.Модератор ========================================");
  512.                     SendClientMessage(playerid, COLOR_GRAD3,"/ban /hog /announce /fourdive /mole /fuelcars /giveddtk /remddtk /atake");
  513.                     SendClientMessage(playerid, COLOR_GRAD3,"/mark /gotomark /oldcar /write /teles /setage /prison /vehslap /burn /goto");
  514.                     SendClientMessage(playerid, COLOR_GRAD3,"/chuck /respawnrentbikes /respawnrentcars /giveddstk /remddst /srall");
  515.                 }
  516.                 else
  517.                 {
  518.                     SendClientMessage(playerid, COLOR_GREY, "Вы не 3 уровень!");
  519.                     return 1;
  520.                 }
  521.             }
  522.             else if (level == 4)
  523.             {
  524.                 if(PlayerInfo[playerid][pAdmin] >= 4)
  525.                 {
  526.                     SendClientMessage(playerid, COLOR_WHITE,"======================================== Гл.Модератор ========================================");
  527.                     SendClientMessage(playerid, COLOR_GRAD4,"/setteam /anews /gates /givemats /carreset /ddrights /atcrights /getincar /setskin");
  528.                     SendClientMessage(playerid, COLOR_GRAD4,"/cc /sethp /setarmour /forceskin /explode /cnnn /cnn /acnn /gethere /td /setmats");
  529.                     SendClientMessage(playerid, COLOR_GRAD4,"/supervehslap /asellhouse /asellbiz /setdrugs /givedrugs /asellsbiz /setchamp /cop(un)suspend");
  530.                 }
  531.                 else
  532.                 {
  533.                     SendClientMessage(playerid, COLOR_GREY, "Вы не 4 уровень!");
  534.                     return 1;
  535.                 }
  536.             }
  537.             else if (level == 5)
  538.             {
  539.                 if(PlayerInfo[playerid][pAdmin] >= 5)
  540.                 {
  541.                     SendClientMessage(playerid, COLOR_WHITE,"======================================== Упр.Модератор ========================================");
  542.                     SendClientMessage(playerid, COLOR_GRAD5,"/unbanip /startlotto(ex) /bizentrance /sbizentrance /moves /tod /restartcars");
  543.                     SendClientMessage(playerid, COLOR_GRAD5,"/lottosay /asellcar /weather /house /biz /houseo /setdesc /setcar /xgoto /(un)setcar");
  544.                     SendClientMessage(playerid, COLOR_GRAD5,"/say /houseentrance /housexit /lottoann /payday /crash /adv /houseint /dvehicles /(un)sethouse");
  545.                 }
  546.                 else
  547.                 {
  548.                     SendClientMessage(playerid, COLOR_GREY, "Вы не 5 уровень!");
  549.                     return 1;
  550.                 }
  551.             }
  552.             else if (level == 6)
  553.             {
  554.                 if(PlayerInfo[playerid][pAdmin] >= 6)
  555.                 {
  556.                     SendClientMessage(playerid, COLOR_WHITE,"======================================== Профессионал ========================================");
  557.                     SendClientMessage(playerid, COLOR_GRAD6,"/getcar /veh /st /tn /edit /upload /createpickup /makehelper /(bank)reward");
  558.                     SendClientMessage(playerid, COLOR_GRAD6,"/ccnn /gcnn /reward /(bank)money /taxday /setcarhp /setcarpj /givefight");
  559.                     SendClientMessage(playerid, COLOR_GRAD6,"/setlottonumber /opendev /setstat /makeleader /(bank)tax /setjackpot");
  560.                 }
  561.                 else
  562.                 {
  563.                     SendClientMessage(playerid, COLOR_GREY, "Вы не 6 уровень!");
  564.                     return 1;
  565.                 }
  566.             }
  567.             else if (level == 1337)
  568.             {
  569.                 if(PlayerInfo[playerid][pAdmin] >= 1337)
  570.                 {
  571.                     SendClientMessage(playerid, COLOR_WHITE,"======================================== Скриптер / Создатель ========================================");
  572.                     SendClientMessage(playerid, COLOR_WHITE, "/setadminlevel /makeircadmin /rcnn /vr /setlotto /(bank)moneyall /resetofficertimer");
  573.                     SendClientMessage(playerid, COLOR_WHITE, "/resetammutimer /setweapskill /gotoammu /spayday /resetpassporttimer /setalllotto");
  574.                 }
  575.                 else
  576.                 {
  577.                     SendClientMessage(playerid, COLOR_GREY, "Вы не 1337/1338 уровень!");
  578.                     return 1;
  579.                 }
  580.             }
  581.             else
  582.             {
  583.                 SendClientMessage(playerid, COLOR_GREY, "Не правильный уровень!");
  584.                 return 1;
  585.             }
  586.             new y, m, d;
  587.             new h,mi,s;
  588.             getdate(y,m,d);
  589.             gettime(h,mi,s);
  590.             format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s [Использовал команду] -> /ahelp",d,m,y,h,mi,s,sendername);
  591.             CommandLog(string);
  592.         }
  593.         UsedCom[playerid]=1;
  594.         return 1;
  595.     }
  596. //==============================================================================
  597.  
  598. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  599. {
  600.     return 1;
  601. }
  602.  
  603. public OnPlayerExitVehicle(playerid, vehicleid)
  604. {
  605.     return 1;
  606. }
  607.  
  608. public OnPlayerStateChange(playerid, newstate, oldstate)
  609. {
  610.     return 1;
  611. }
  612.  
  613. public OnPlayerEnterCheckpoint(playerid)
  614. {
  615.     return 1;
  616. }
  617.  
  618. public OnPlayerLeaveCheckpoint(playerid)
  619. {
  620.     return 1;
  621. }
  622.  
  623. public OnPlayerEnterRaceCheckpoint(playerid)
  624. {
  625.     return 1;
  626. }
  627.  
  628. public OnPlayerLeaveRaceCheckpoint(playerid)
  629. {
  630.     return 1;
  631. }
  632.  
  633. public OnRconCommand(cmd[])
  634. {
  635.     return 1;
  636. }
  637.  
  638. public OnPlayerRequestSpawn(playerid)
  639. {
  640.     return 1;
  641. }
  642.  
  643. public OnObjectMoved(objectid)
  644. {
  645.     return 1;
  646. }
  647.  
  648. public OnPlayerObjectMoved(playerid, objectid)
  649. {
  650.     return 1;
  651. }
  652.  
  653. public OnPlayerPickUpPickup(playerid, pickupid)
  654. {
  655.     return 1;
  656. }
  657.  
  658. public OnVehicleMod(playerid, vehicleid, componentid)
  659. {
  660.     return 1;
  661. }
  662.  
  663. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  664. {
  665.     return 1;
  666. }
  667.  
  668. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  669. {
  670.     return 1;
  671. }
  672.  
  673. public OnPlayerSelectedMenuRow(playerid, row)
  674. {
  675.     return 1;
  676. }
  677.  
  678. public OnPlayerExitedMenu(playerid)
  679. {
  680.     return 1;
  681. }
  682.  
  683. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  684. {
  685.     return 1;
  686. }
  687.  
  688. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  689. {
  690.     return 1;
  691. }
  692.  
  693. public OnRconLoginAttempt(ip[], password[], success)
  694. {
  695.     return 1;
  696. }
  697.  
  698. public OnPlayerUpdate(playerid)
  699. {
  700.     return 1;
  701. }
  702.  
  703. public OnPlayerStreamIn(playerid, forplayerid)
  704. {
  705.     return 1;
  706. }
  707.  
  708. public OnPlayerStreamOut(playerid, forplayerid)
  709. {
  710.     return 1;
  711. }
  712.  
  713. public OnVehicleStreamIn(vehicleid, forplayerid)
  714. {
  715.     return 1;
  716. }
  717.  
  718. public OnVehicleStreamOut(vehicleid, forplayerid)
  719. {
  720.     return 1;
  721. }
  722.  
  723. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  724. {
  725.     return 1;
  726. }
  727.  
  728. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  729. {
  730.     return 1;
  731. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement