Advertisement
Guest User

Champ's Production

a guest
Dec 4th, 2013
367
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 20.07 KB | None | 0 0
  1.  
  2. #define FILTERSCRIPT
  3.  
  4. #include <a_samp>
  5.  
  6.  
  7. #if defined FILTERSCRIPT
  8.  
  9. #define COLOR_ORANGE 0xFF9900AA
  10. #define COLOR_YELLOW 0xFFFF00AA
  11.  
  12. new Text:radio0;
  13. new Text:radio1;
  14. new Text:radio2;
  15. new radio[MAX_PLAYERS];
  16.  
  17. new Text:groupradio0;
  18. new Text:groupradio1;
  19. new Text:groupradio2;
  20. new groupradio[MAX_PLAYERS];
  21.  
  22. new Text:response0;
  23. new Text:response1;
  24. new Text:response2;
  25. new responze[MAX_PLAYERS];
  26.  
  27. public OnFilterScriptInit()
  28. {
  29.     print("\n--------------------------------------");
  30.     print(" C' Radio System [LOADED]");
  31.     print("--------------------------------------\n");
  32.    
  33.     radio0 = TextDrawCreate(15.000000, 162.000000, "Radio Commands");
  34.     TextDrawBackgroundColor(radio0, 255);
  35.     TextDrawFont(radio0, 3);
  36.     TextDrawLetterSize(radio0, 0.500000, 1.000000);
  37.     TextDrawColor(radio0, -65281);
  38.     TextDrawSetOutline(radio0, 0);
  39.     TextDrawSetProportional(radio0, 1);
  40.     TextDrawSetShadow(radio0, 1);
  41.  
  42.     radio1 = TextDrawCreate(13.000000, 173.000000, "~n~~n~1. 'Cover Me'~n~2. 'You Take the Point'~n~3. 'Hold This Position'~n~4. 'Regroup Team'~n~5. 'Follow Me'");
  43.     TextDrawBackgroundColor(radio1, 255);
  44.     TextDrawFont(radio1, 1);
  45.     TextDrawLetterSize(radio1, 0.500000, 1.300000);
  46.     TextDrawColor(radio1, -1);
  47.     TextDrawSetOutline(radio1, 0);
  48.     TextDrawSetProportional(radio1, 1);
  49.     TextDrawSetShadow(radio1, 1);
  50.  
  51.     radio2 = TextDrawCreate(13.000000, 244.000000, "~n~6. 'Taking Fire, Need Assistance'~n~~n~0. Exit");
  52.     TextDrawBackgroundColor(radio2, 255);
  53.     TextDrawFont(radio2, 1);
  54.     TextDrawLetterSize(radio2, 0.500000, 1.300000);
  55.     TextDrawColor(radio2, -1);
  56.     TextDrawSetOutline(radio2, 0);
  57.     TextDrawSetProportional(radio2, 1);
  58.     TextDrawSetShadow(radio2, 1);
  59.  
  60.  
  61.     groupradio0 = TextDrawCreate(15.000000, 162.000000, "Group Radio Commands");
  62.     TextDrawBackgroundColor(groupradio0, 255);
  63.     TextDrawFont(groupradio0, 3);
  64.     TextDrawLetterSize(groupradio0, 0.500000, 1.000000);
  65.     TextDrawColor(groupradio0, -65281);
  66.     TextDrawSetOutline(groupradio0, 0);
  67.     TextDrawSetProportional(groupradio0, 1);
  68.     TextDrawSetShadow(groupradio0, 1);
  69.  
  70.     groupradio1 = TextDrawCreate(13.000000, 173.000000, "~n~~n~1. 'Go'~n~2. 'Fall Back'~n~3. 'Stick Together Team'~n~4. 'Get in Position'~n~5. 'Storm the Front'~n~6. 'Report In'");
  71.     TextDrawBackgroundColor(groupradio1, 255);
  72.     TextDrawFont(groupradio1, 1);
  73.     TextDrawLetterSize(groupradio1, 0.500000, 1.300000);
  74.     TextDrawColor(groupradio1, -1);
  75.     TextDrawSetOutline(groupradio1, 0);
  76.     TextDrawSetProportional(groupradio1, 1);
  77.     TextDrawSetShadow(groupradio1, 1);
  78.  
  79.     groupradio2 = TextDrawCreate(13.000000, 284.000000, "0. Exit");
  80.     TextDrawBackgroundColor(groupradio2, 255);
  81.     TextDrawFont(groupradio2, 1);
  82.     TextDrawLetterSize(groupradio2, 0.500000, 1.300000);
  83.     TextDrawColor(groupradio2, -1);
  84.     TextDrawSetOutline(groupradio2, 0);
  85.     TextDrawSetProportional(groupradio2, 1);
  86.     TextDrawSetShadow(groupradio2, 1);
  87.  
  88.  
  89.     response0 = TextDrawCreate(15.000000, 162.000000, "Radio Responses/Reports");
  90.     TextDrawBackgroundColor(response0, 255);
  91.     TextDrawFont(response0, 3);
  92.     TextDrawLetterSize(response0, 0.500000, 1.000000);
  93.     TextDrawColor(response0, -65281);
  94.     TextDrawSetOutline(response0, 0);
  95.     TextDrawSetProportional(response0, 1);
  96.     TextDrawSetShadow(response0, 1);
  97.  
  98.     response1 = TextDrawCreate(13.000000, 203.000000, "1. 'Affirmative~n~2. 'Negative'~n~3. 'Enemy Spotted'~n~4. 'Need Backup'~n~5. 'Sector Clear'~n~6. 'I'm in Position'~n~7. 'Reporting In'");
  99.     TextDrawBackgroundColor(response1, 255);
  100.     TextDrawFont(response1, 1);
  101.     TextDrawLetterSize(response1, 0.500000, 1.299999);
  102.     TextDrawColor(response1, -1);
  103.     TextDrawSetOutline(response1, 0);
  104.     TextDrawSetProportional(response1, 1);
  105.     TextDrawSetShadow(response1, 1);
  106.  
  107.     response2 = TextDrawCreate(13.000000, 274.000000, "~n~8. 'She's gonna Blow!'~n~9. 'Enemy Down'~n~~n~0. Exit");
  108.     TextDrawBackgroundColor(response2, 255);
  109.     TextDrawFont(response2, 1);
  110.     TextDrawLetterSize(response2, 0.500000, 1.299999);
  111.     TextDrawColor(response2, -1);
  112.     TextDrawSetOutline(response2, 0);
  113.     TextDrawSetProportional(response2, 1);
  114.     TextDrawSetShadow(response2, 1);
  115.    
  116.     return 1;
  117. }
  118.  
  119. public OnFilterScriptExit()
  120. {
  121.     return 1;
  122. }
  123.  
  124. #else
  125.  
  126. #endif
  127.  
  128.  
  129. public OnPlayerText(playerid, text[])
  130. {
  131.  
  132.     if(radio[playerid] == 1)
  133.     {
  134.             if(text[0] == '1')
  135.             {
  136.                 for(new i = 0; i < MAX_PLAYERS; i++)
  137.                 {
  138.  
  139.                         new pname[MAX_PLAYER_NAME], stringr[22 ];
  140.                         GetPlayerName(playerid, pname, sizeof(pname));
  141.                         format(stringr, sizeof(stringr), "[RADIO] %s 'Cover Me'.", pname);
  142.                         SendClientMessage(playerid,COLOR_ORANGE, stringr);
  143.  
  144.                         PlayAudioStreamForPlayer(playerid, "http://svtradio.site50.net/01.%20Radio%20Commands/1.%20Cover%20Me.mp3");
  145.  
  146.  
  147.                 }
  148.                 TextDrawHideForPlayer(playerid, radio0);
  149.                 TextDrawHideForPlayer(playerid, radio1);
  150.                 TextDrawHideForPlayer(playerid, radio2);
  151.                 radio[playerid] = 0;
  152.                 return 0;
  153.             }
  154.             if(text[0] == '2')
  155.             {
  156.                 for(new i = 0; i < MAX_PLAYERS; i++)
  157.                 {
  158.  
  159.                         new pname[MAX_PLAYER_NAME], stringr[22 ];
  160.                         GetPlayerName(playerid, pname, sizeof(pname));
  161.                         format(stringr, sizeof(stringr), "[RADIO] %s 'You Take the Point'.", pname);
  162.                         SendClientMessage(playerid,COLOR_ORANGE, stringr);
  163.  
  164.                         PlayAudioStreamForPlayer(playerid, "http://svtradio.site50.net/01.%20Radio%20Commands/2.%20You%20Take%20the%20Point.mp3");
  165.  
  166.  
  167.  
  168.                 }
  169.                 TextDrawHideForPlayer(playerid, radio0);
  170.                 TextDrawHideForPlayer(playerid, radio1);
  171.                 TextDrawHideForPlayer(playerid, radio2);
  172.                 radio[playerid] = 0;
  173.                 return 0;
  174.             }
  175.             if(text[0] == '3')
  176.             {
  177.                 for(new i = 0; i < MAX_PLAYERS; i++)
  178.                 {
  179.                         new pname[MAX_PLAYER_NAME], stringr[22 ];
  180.                         GetPlayerName(playerid, pname, sizeof(pname));
  181.                         format(stringr, sizeof(stringr), "[RADIO] %s 'Hold This Position'.", pname);
  182.                         SendClientMessage(playerid,COLOR_ORANGE, stringr);
  183.  
  184.                         PlayAudioStreamForPlayer(playerid, "http://svtradio.site50.net/01.%20Radio%20Commands/3.%20Hold%20This%20Position.mp3");
  185.  
  186.  
  187.                 }
  188.                 TextDrawHideForPlayer(playerid, radio0);
  189.                 TextDrawHideForPlayer(playerid, radio1);
  190.                 TextDrawHideForPlayer(playerid, radio2);
  191.                 radio[playerid] = 0;
  192.                 return 0;
  193.             }
  194.             if(text[0] == '4')
  195.             {
  196.                 for(new i = 0; i < MAX_PLAYERS; i++)
  197.                 {
  198.  
  199.                         new pname[MAX_PLAYER_NAME], stringr[22 ];
  200.                         GetPlayerName(playerid, pname, sizeof(pname));
  201.                         format(stringr, sizeof(stringr), "[RADIO] %s 'Regroup Team'.", pname);
  202.                         SendClientMessage(playerid,COLOR_ORANGE, stringr);
  203.  
  204.  
  205.                         PlayAudioStreamForPlayer(playerid, "http://svtradio.site50.net/01.%20Radio%20Commands/4.%20Regroup%20Team.mp3");
  206.  
  207.                 }
  208.                 TextDrawHideForPlayer(playerid, radio0);
  209.                 TextDrawHideForPlayer(playerid, radio1);
  210.                 TextDrawHideForPlayer(playerid, radio2);
  211.                 radio[playerid] = 0;
  212.                 return 0;
  213.             }
  214.             if(text[0] == '5')
  215.             {
  216.                 for(new i = 0; i < MAX_PLAYERS; i++)
  217.                 {
  218.  
  219.                         new pname[MAX_PLAYER_NAME], stringr[22 ];
  220.                         GetPlayerName(playerid, pname, sizeof(pname));
  221.                         format(stringr, sizeof(stringr), "[RADIO] %s 'Follow Me'.", pname);
  222.                         SendClientMessage(playerid,COLOR_ORANGE, stringr);
  223.  
  224.  
  225.                         PlayAudioStreamForPlayer(playerid, "http://svtradio.site50.net/01.%20Radio%20Commands/5.%20Follow%20Me.mp3");
  226.  
  227.                 }
  228.                 TextDrawHideForPlayer(playerid, radio0);
  229.                 TextDrawHideForPlayer(playerid, radio1);
  230.                 TextDrawHideForPlayer(playerid, radio2);
  231.                 radio[playerid] = 0;
  232.                 return 0;
  233.             }
  234.             if(text[0] == '6')
  235.             {
  236.                 for(new i = 0; i < MAX_PLAYERS; i++)
  237.                 {
  238.  
  239.                         new pname[MAX_PLAYER_NAME], stringr[128 ];
  240.                         GetPlayerName(playerid, pname, sizeof(pname));
  241.                         format(stringr, sizeof(stringr), "[RADIO] %s 'Taking Fire, Need Assistance'.", pname);
  242.                         SendClientMessage(playerid,COLOR_ORANGE, stringr);
  243.  
  244.                         PlayAudioStreamForPlayer(playerid, "http://svtradio.site50.net/01.%20Radio%20Commands/6.%20Taking%20Fire,%20Need%20Assistance.mp3");
  245.  
  246.                 }
  247.                 TextDrawHideForPlayer(playerid, radio0);
  248.                 TextDrawHideForPlayer(playerid, radio1);
  249.                 TextDrawHideForPlayer(playerid, radio2);
  250.                 radio[playerid] = 0;
  251.                 return 0;
  252.             }
  253.             if(text[0] == '0')
  254.             {
  255.                 TextDrawHideForPlayer(playerid, radio0);
  256.                 TextDrawHideForPlayer(playerid, radio1);
  257.                 TextDrawHideForPlayer(playerid, radio2);
  258.                 radio[playerid] = 0;
  259.                 return 0;
  260.             }
  261.     }
  262.     if(groupradio[playerid] == 1)
  263.     {
  264.             if(text[0] == '1')
  265.             {
  266.                 for(new i = 0; i < MAX_PLAYERS; i++)
  267.                 {
  268.  
  269.                     new pname[MAX_PLAYER_NAME], stringr[22 ];
  270.                     GetPlayerName(playerid, pname, sizeof(pname));
  271.                     format(stringr, sizeof(stringr), "[Group-Radio] %s 'Go Go Go'.", pname);
  272.                     SendClientMessage(playerid,COLOR_ORANGE, stringr);
  273.  
  274.                     PlayAudioStreamForPlayer(playerid, "http://www.svtradio.site50.net/02.%20Group%20Radio%20Commands/1.%20Go%20Go%20Go.mp3");
  275.                 }
  276.                 TextDrawHideForPlayer(playerid, groupradio0);
  277.                 TextDrawHideForPlayer(playerid, groupradio1);
  278.                 TextDrawHideForPlayer(playerid, groupradio2);
  279.                 groupradio[playerid] = 0;
  280.                 return 0;
  281.             }
  282.             if(text[0] == '2')
  283.             {
  284.                 for(new i = 0; i < MAX_PLAYERS; i++)
  285.                 {
  286.  
  287.                     new pname[MAX_PLAYER_NAME], stringr[22 ];
  288.                     GetPlayerName(playerid, pname, sizeof(pname));
  289.                     format(stringr, sizeof(stringr), "[Group-Radio] %s 'Team, Fall Backn'.", pname);
  290.                     SendClientMessage(playerid,COLOR_ORANGE, stringr);
  291.  
  292.                     PlayAudioStreamForPlayer(playerid, "http://www.svtradio.site50.net/02.%20Group%20Radio%20Commands/2.%20Team,%20Fall%20Back.mp3");
  293.                 }
  294.                 TextDrawHideForPlayer(playerid, groupradio0);
  295.                 TextDrawHideForPlayer(playerid, groupradio1);
  296.                 TextDrawHideForPlayer(playerid, groupradio2);
  297.                 groupradio[playerid] = 0;
  298.                 return 0;
  299.             }
  300.             if(text[0] == '3')
  301.             {
  302.                 for(new i = 0; i < MAX_PLAYERS; i++)
  303.                 {
  304.  
  305.                     new pname[MAX_PLAYER_NAME], stringr[22 ];
  306.                     GetPlayerName(playerid, pname, sizeof(pname));
  307.                     format(stringr, sizeof(stringr), "[Group-Radio] %s 'Stick Together'.", pname);
  308.                     SendClientMessage(playerid,COLOR_ORANGE, stringr);
  309.  
  310.                     PlayAudioStreamForPlayer(playerid, "http://www.svtradio.site50.net/02.%20Group%20Radio%20Commands/3.%20Stick%20Together,%20Team.mp3");
  311.                 }
  312.                 TextDrawHideForPlayer(playerid, groupradio0);
  313.                 TextDrawHideForPlayer(playerid, groupradio1);
  314.                 TextDrawHideForPlayer(playerid, groupradio2);
  315.                 groupradio[playerid] = 0;
  316.                 return 0;
  317.             }
  318.             if(text[0] == '4')
  319.             {
  320.                 for(new i = 0; i < MAX_PLAYERS; i++)
  321.                 {
  322.  
  323.                     new pname[MAX_PLAYER_NAME], stringr[22 ];
  324.                     GetPlayerName(playerid, pname, sizeof(pname));
  325.                     format(stringr, sizeof(stringr), "[Group-Radio] %s 'Get in Position and Wait for My Go'.", pname);
  326.                     SendClientMessage(playerid,COLOR_ORANGE, stringr);
  327.  
  328.                     PlayAudioStreamForPlayer(playerid, "http://svtradio.site50.net/02.%20Group%20Radio%20Commands/4.%20Get%20in%20Position%20and%20Wait%20For%20My%20Go.mp3");
  329.                 }
  330.                 TextDrawHideForPlayer(playerid, groupradio0);
  331.                 TextDrawHideForPlayer(playerid, groupradio1);
  332.                 TextDrawHideForPlayer(playerid, groupradio2);
  333.                 groupradio[playerid] = 0;
  334.                 return 0;
  335.             }
  336.             if(text[0] == '5')
  337.             {
  338.                 for(new i = 0; i < MAX_PLAYERS; i++)
  339.                 {
  340.  
  341.                     new pname[MAX_PLAYER_NAME], stringr[22 ];
  342.                     GetPlayerName(playerid, pname, sizeof(pname));
  343.                     format(stringr, sizeof(stringr), "[Group-Radio] %s 'Storm the Front'.", pname);
  344.                     SendClientMessage(playerid,COLOR_ORANGE, stringr);
  345.  
  346.                     PlayAudioStreamForPlayer(playerid, "http://svtradio.site50.net/02.%20Group%20Radio%20Commands/5.%20Storm%20the%20Front.mp3");
  347.                 }
  348.                 TextDrawHideForPlayer(playerid, groupradio0);
  349.                 TextDrawHideForPlayer(playerid, groupradio1);
  350.                 TextDrawHideForPlayer(playerid, groupradio2);
  351.                 groupradio[playerid] = 0;
  352.                 return 0;
  353.             }
  354.             if(text[0] == '6')
  355.             {
  356.                 for(new i = 0; i < MAX_PLAYERS; i++)
  357.                 {
  358.  
  359.                     new pname[MAX_PLAYER_NAME], stringr[22 ];
  360.                     GetPlayerName(playerid, pname, sizeof(pname));
  361.                     format(stringr, sizeof(stringr), "[Group-Radio] %s 'Report In, Team'.", pname);
  362.                     SendClientMessage(playerid,COLOR_ORANGE, stringr);
  363.  
  364.                     PlayAudioStreamForPlayer(playerid, "http://svtradio.site50.net/02.%20Group%20Radio%20Commands/6.%20Report%20In,%20Team.mp3");
  365.                 }
  366.                 TextDrawHideForPlayer(playerid, groupradio0);
  367.                 TextDrawHideForPlayer(playerid, groupradio1);
  368.                 TextDrawHideForPlayer(playerid, groupradio2);
  369.                 groupradio[playerid] = 0;
  370.                 return 0;
  371.             }
  372.             if(text[0] == '0')
  373.             {
  374.                 TextDrawHideForPlayer(playerid, groupradio0);
  375.                 TextDrawHideForPlayer(playerid, groupradio1);
  376.                 TextDrawHideForPlayer(playerid, groupradio2);
  377.                 groupradio[playerid] = 0;
  378.                 return 0;
  379.             }
  380.     }
  381.     if(responze[playerid] == 1)
  382.     {
  383.             if(text[0] == '1')
  384.             {
  385.                 for(new i = 0; i < MAX_PLAYERS; i++)
  386.                 {
  387.  
  388.                     new pname[MAX_PLAYER_NAME], stringr[22 ];
  389.                     GetPlayerName(playerid, pname, sizeof(pname));
  390.                     format(stringr, sizeof(stringr), "[Response] %s 'Affirmative'.", pname);
  391.                     SendClientMessage(playerid,COLOR_YELLOW, stringr);
  392.  
  393.                     PlayAudioStreamForPlayer(playerid, "http://svtradio.site50.net/03.%20Radio%20Responses-Reports/1.%20Affirmative.mp3");
  394.                 }
  395.                 TextDrawHideForPlayer(playerid, response0);
  396.                 TextDrawHideForPlayer(playerid, response1);
  397.                 TextDrawHideForPlayer(playerid, response2);
  398.                 responze[playerid] = 0;
  399.                 return 0;
  400.             }
  401.             if(text[0] == '2')
  402.             {
  403.                 for(new i = 0; i < MAX_PLAYERS; i++)
  404.                 {
  405.                    
  406.                     new pname[MAX_PLAYER_NAME], stringr[22 ];
  407.                     GetPlayerName(playerid, pname, sizeof(pname));
  408.                     format(stringr, sizeof(stringr), "[Response] %s 'Negative'.", pname);
  409.                     SendClientMessage(playerid,COLOR_YELLOW, stringr);
  410.  
  411.                     PlayAudioStreamForPlayer(playerid, "http://svtradio.site50.net/03.%20Radio%20Responses-Reports/8.%20Negative.mp3");
  412.                 }
  413.                 TextDrawHideForPlayer(playerid, response0);
  414.                 TextDrawHideForPlayer(playerid, response1);
  415.                 TextDrawHideForPlayer(playerid, response2);
  416.                 responze[playerid] = 0;
  417.                 return 0;
  418.             }
  419.             if(text[0] == '3')
  420.             {
  421.                 for(new i = 0; i < MAX_PLAYERS; i++)
  422.                 {
  423.                    
  424.                     new pname[MAX_PLAYER_NAME], stringr[22 ];
  425.                     GetPlayerName(playerid, pname, sizeof(pname));
  426.                     format(stringr, sizeof(stringr), "[Response] %s 'Enemy Spotted'.", pname);
  427.                     SendClientMessage(playerid,COLOR_YELLOW, stringr);
  428.                     PlayAudioStreamForPlayer(playerid, "http://svtradio.site50.net/03.%20Radio%20Responses-Reports/2.%20Enemy%20Spotted.mp3");
  429.                 }
  430.                 TextDrawHideForPlayer(playerid, response0);
  431.                 TextDrawHideForPlayer(playerid, response1);
  432.                 TextDrawHideForPlayer(playerid, response2);
  433.                 responze[playerid] = 0;
  434.                 return 0;
  435.             }
  436.             if(text[0] == '4')
  437.             {
  438.                 for(new i = 0; i < MAX_PLAYERS; i++)
  439.                 {
  440.                    
  441.                     new pname[MAX_PLAYER_NAME], stringr[22 ];
  442.                     GetPlayerName(playerid, pname, sizeof(pname));
  443.                     format(stringr, sizeof(stringr), "[Response] %s 'Need Backup'.", pname);
  444.                     SendClientMessage(playerid,COLOR_YELLOW, stringr);
  445.  
  446.                     PlayAudioStreamForPlayer(playerid, "http://svtradio.site50.net/03.%20Radio%20Responses-Reports/3.%20Need%20Backup.mp3");
  447.                 }
  448.                 TextDrawHideForPlayer(playerid, response0);
  449.                 TextDrawHideForPlayer(playerid, response1);
  450.                 TextDrawHideForPlayer(playerid, response2);
  451.                 responze[playerid] = 0;
  452.                 return 0;
  453.             }
  454.             if(text[0] == '5')
  455.             {
  456.                 for(new i = 0; i < MAX_PLAYERS; i++)
  457.                 {
  458.                    
  459.                     new pname[MAX_PLAYER_NAME], stringr[22 ];
  460.                     GetPlayerName(playerid, pname, sizeof(pname));
  461.                     format(stringr, sizeof(stringr), "[Response] %s 'Sector Clear'.", pname);
  462.                     SendClientMessage(playerid,COLOR_YELLOW, stringr);
  463.  
  464.                     PlayAudioStreamForPlayer(playerid, "http://svtradio.site50.net/03.%20Radio%20Responses-Reports/4.%20Sector%20Clear.mp3");
  465.                 }
  466.                 TextDrawHideForPlayer(playerid, response0);
  467.                 TextDrawHideForPlayer(playerid, response1);
  468.                 TextDrawHideForPlayer(playerid, response2);
  469.                 responze[playerid] = 0;
  470.                 return 0;
  471.             }
  472.             if(text[0] == '6')
  473.             {
  474.                 for(new i = 0; i < MAX_PLAYERS; i++)
  475.                 {
  476.                    
  477.                     new pname[MAX_PLAYER_NAME], stringr[22 ];
  478.                     GetPlayerName(playerid, pname, sizeof(pname));
  479.                     format(stringr, sizeof(stringr), "[Response] %s 'I'm in Position'.", pname);
  480.                     SendClientMessage(playerid,COLOR_YELLOW, stringr);
  481.  
  482.                     PlayAudioStreamForPlayer(playerid, "http://svtradio.site50.net/03.%20Radio%20Responses-Reports/5.%20I'm%20in%20Position.mp3");
  483.                 }
  484.                 TextDrawHideForPlayer(playerid, response0);
  485.                 TextDrawHideForPlayer(playerid, response1);
  486.                 TextDrawHideForPlayer(playerid, response2);
  487.                 responze[playerid] = 0;
  488.                 return 0;
  489.             }
  490.             if(text[0] == '7')
  491.             {
  492.                 for(new i = 0; i < MAX_PLAYERS; i++)
  493.                 {
  494.                    
  495.                     new pname[MAX_PLAYER_NAME], stringr[22 ];
  496.                     GetPlayerName(playerid, pname, sizeof(pname));
  497.                     format(stringr, sizeof(stringr), "[Response] %s 'Reporting In'.", pname);
  498.                     SendClientMessage(playerid,COLOR_YELLOW, stringr);
  499.  
  500.                     PlayAudioStreamForPlayer(playerid, "http://svtradio.site50.net/03.%20Radio%20Responses-Reports/6.%20Reporting%20In.mp3");
  501.                 }
  502.                 TextDrawHideForPlayer(playerid, response0);
  503.                 TextDrawHideForPlayer(playerid, response1);
  504.                 TextDrawHideForPlayer(playerid, response2);
  505.                 responze[playerid] = 0;
  506.                 return 0;
  507.             }
  508.             if(text[0] == '8')
  509.             {
  510.                 for(new i = 0; i < MAX_PLAYERS; i++)
  511.                 {
  512.                    
  513.                     new pname[MAX_PLAYER_NAME], stringr[128 ];
  514.                     GetPlayerName(playerid, pname, sizeof(pname));
  515.                     format(stringr, sizeof(stringr), "[Response] %s 'Get Out of There, It's Gonna Blow!'.", pname);
  516.                     SendClientMessage(playerid,COLOR_YELLOW, stringr);
  517.  
  518.                     PlayAudioStreamForPlayer(playerid, "http://svtradio.site50.net/03.%20Radio%20Responses-Reports/7.%20Get%20Out%20Of%20There,%20It's%20Gonna%20Blow!.mp3");
  519.                 }
  520.                 TextDrawHideForPlayer(playerid, response0);
  521.                 TextDrawHideForPlayer(playerid, response1);
  522.                 TextDrawHideForPlayer(playerid, response2);
  523.                 responze[playerid] = 0;
  524.                 return 0;
  525.             }
  526.             if(text[0] == '9')
  527.             {
  528.                 for(new i = 0; i < MAX_PLAYERS; i++)
  529.                 {
  530.                    
  531.                     new pname[MAX_PLAYER_NAME], stringr[22 ];
  532.                     GetPlayerName(playerid, pname, sizeof(pname));
  533.                     format(stringr, sizeof(stringr), "[Response] %s 'Enemy Down'.", pname);
  534.                     SendClientMessage(playerid,COLOR_YELLOW, stringr);
  535.  
  536.                     PlayAudioStreamForPlayer(playerid, "http://svtradio.site50.net/03.%20Radio%20Responses-Reports/9.%20Enemy%20Down.mp3");
  537.                 }
  538.                 TextDrawHideForPlayer(playerid, response0);
  539.                 TextDrawHideForPlayer(playerid, response1);
  540.                 TextDrawHideForPlayer(playerid, response2);
  541.                 responze[playerid] = 0;
  542.                 return 0;
  543.             }
  544.             if(text[0] == '0')
  545.             {
  546.                 TextDrawHideForPlayer(playerid, response0);
  547.                 TextDrawHideForPlayer(playerid, response1);
  548.                 TextDrawHideForPlayer(playerid, response2);
  549.                 responze[playerid] = 0;
  550.                 return 0;
  551.             }
  552.     }
  553.     return 1;
  554. }
  555.  
  556. public OnPlayerCommandText(playerid, cmdtext[])
  557. {
  558.     if (strcmp("/radio", cmdtext, true, 10) == 0)
  559.     {
  560.         TextDrawShowForPlayer(playerid, radio0);
  561.         TextDrawShowForPlayer(playerid, radio1);
  562.         TextDrawShowForPlayer(playerid, radio2);
  563.         radio[playerid] = 1;
  564.         return 1;
  565.     }
  566.     if (strcmp("/groupradio", cmdtext, true, 10) == 0)
  567.     {
  568.         TextDrawShowForPlayer(playerid, groupradio0);
  569.         TextDrawShowForPlayer(playerid, groupradio1);
  570.         TextDrawShowForPlayer(playerid, groupradio2);
  571.         groupradio[playerid] = 1;
  572.         return 1;
  573.     }
  574.     if (strcmp("/response", cmdtext, true, 10) == 0)
  575.     {
  576.         TextDrawShowForPlayer(playerid, response0);
  577.         TextDrawShowForPlayer(playerid, response1);
  578.         TextDrawShowForPlayer(playerid, response2);
  579.         responze[playerid] = 1;
  580.         return 1;
  581.     }
  582.     return 0;
  583. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement