SA-MP Forums Archive
CMD - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: CMD (/showthread.php?tid=635631)



CMD - JesusChrysler - 10.06.2017

Код HTML:
YCMD:radiohelp(playerid, params[], help)
{
	if(help)
	{
		SendClientMessage(playerid, COLOR_GREY, "Lists radio commands.");
	}
	
	SendClientMessage(playerid, COLOR_GREEN, "Radio Help: /®adio /(togr)adio /(adjustr)adio");
	return 1;
}
When I enter this command into my server it will say the message but after it will say "SERVER: Unknown Command". This happens for all commands on this server. Does anyone know why?


Re: CMD - KingSenpai - 26.06.2017

Quote:
Originally Posted by JesusChrysler
Посмотреть сообщение
Код HTML:
YCMD:radiohelp(playerid, params[], help)
{
	if(help)
	{
		SendClientMessage(playerid, COLOR_GREY, "Lists radio commands.");
	}
	
	SendClientMessage(playerid, COLOR_GREEN, "Radio Help: /®adio /(togr)adio /(adjustr)adio");
	return 1;
}
When I enter this command into my server it will say the message but after it will say "SERVER: Unknown Command". This happens for all commands on this server. Does anyone know why?
Use this

PHP код:
#define FILTERSCRIPT
#include <a_samp>
#if defined FILTERSCRIPT
#define COLOR_ORANGE 0xFF9900AA
#define COLOR_YELLOW 0xFFFF00AA
new Text:radio0;
new 
Text:radio1;
new 
Text:radio2;
new 
radio[MAX_PLAYERS];
new 
Text:groupradio0;
new 
Text:groupradio1;
new 
Text:groupradio2;
new 
groupradio[MAX_PLAYERS];
new 
Text:response0;
new 
Text:response1;
new 
Text:response2;
new 
responze[MAX_PLAYERS];
public 
OnFilterScriptInit()
{
    print(
"\n--------------------------------------");
    print(
" C' Radio System [LOADED]");
    print(
"--------------------------------------\n");
    
    
radio0 TextDrawCreate(15.000000162.000000"Radio Commands");
    
TextDrawBackgroundColor(radio0255);
    
TextDrawFont(radio03);
    
TextDrawLetterSize(radio00.5000001.000000);
    
TextDrawColor(radio0, -65281);
    
TextDrawSetOutline(radio00);
    
TextDrawSetProportional(radio01);
    
TextDrawSetShadow(radio01);
    
radio1 TextDrawCreate(13.000000173.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'");
    
TextDrawBackgroundColor(radio1255);
    
TextDrawFont(radio11);
    
TextDrawLetterSize(radio10.5000001.300000);
    
TextDrawColor(radio1, -1);
    
TextDrawSetOutline(radio10);
    
TextDrawSetProportional(radio11);
    
TextDrawSetShadow(radio11);
    
radio2 TextDrawCreate(13.000000244.000000"~n~6. 'Taking Fire, Need Assistance'~n~~n~0. Exit");
    
TextDrawBackgroundColor(radio2255);
    
TextDrawFont(radio21);
    
TextDrawLetterSize(radio20.5000001.300000);
    
TextDrawColor(radio2, -1);
    
TextDrawSetOutline(radio20);
    
TextDrawSetProportional(radio21);
    
TextDrawSetShadow(radio21);
    
groupradio0 TextDrawCreate(15.000000162.000000"Group Radio Commands");
    
TextDrawBackgroundColor(groupradio0255);
    
TextDrawFont(groupradio03);
    
TextDrawLetterSize(groupradio00.5000001.000000);
    
TextDrawColor(groupradio0, -65281);
    
TextDrawSetOutline(groupradio00);
    
TextDrawSetProportional(groupradio01);
    
TextDrawSetShadow(groupradio01);
    
groupradio1 TextDrawCreate(13.000000173.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'");
    
TextDrawBackgroundColor(groupradio1255);
    
TextDrawFont(groupradio11);
    
TextDrawLetterSize(groupradio10.5000001.300000);
    
TextDrawColor(groupradio1, -1);
    
TextDrawSetOutline(groupradio10);
    
TextDrawSetProportional(groupradio11);
    
TextDrawSetShadow(groupradio11);
    
groupradio2 TextDrawCreate(13.000000284.000000"0. Exit");
    
TextDrawBackgroundColor(groupradio2255);
    
TextDrawFont(groupradio21);
    
TextDrawLetterSize(groupradio20.5000001.300000);
    
TextDrawColor(groupradio2, -1);
    
TextDrawSetOutline(groupradio20);
    
TextDrawSetProportional(groupradio21);
    
TextDrawSetShadow(groupradio21);
    
response0 TextDrawCreate(15.000000162.000000"Radio Responses/Reports");
    
TextDrawBackgroundColor(response0255);
    
TextDrawFont(response03);
    
TextDrawLetterSize(response00.5000001.000000);
    
TextDrawColor(response0, -65281);
    
TextDrawSetOutline(response00);
    
TextDrawSetProportional(response01);
    
TextDrawSetShadow(response01);
    
response1 TextDrawCreate(13.000000203.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'");
    
TextDrawBackgroundColor(response1255);
    
TextDrawFont(response11);
    
TextDrawLetterSize(response10.5000001.299999);
    
TextDrawColor(response1, -1);
    
TextDrawSetOutline(response10);
    
TextDrawSetProportional(response11);
    
TextDrawSetShadow(response11);
    
response2 TextDrawCreate(13.000000274.000000"~n~8. 'She's gonna Blow!'~n~9. 'Enemy Down'~n~~n~0. Exit");
    
TextDrawBackgroundColor(response2255);
    
TextDrawFont(response21);
    
TextDrawLetterSize(response20.5000001.299999);
    
TextDrawColor(response2, -1);
    
TextDrawSetOutline(response20);
    
TextDrawSetProportional(response21);
    
TextDrawSetShadow(response21);
    
    return 
1;
}
public 
OnFilterScriptExit()
{
    return 
1;
}
#else
#endif
public OnPlayerText(playeridtext[])
{
    if(
radio[playerid] == 1)
    {
            if(
text[0] == '1')
            {
                for(new 
0MAX_PLAYERSi++)
                {
                        new 
pname[MAX_PLAYER_NAME], stringr[22 ];
                        
GetPlayerName(playeridpnamesizeof(pname));
                        
format(stringrsizeof(stringr), "[RADIO] %s 'Cover Me'."pname);
                        
SendClientMessage(playerid,COLOR_ORANGEstringr);
                        
PlayAudioStreamForPlayer(playerid"http://svtradio.site50.net/01.%20Radio%20Commands/1.%20Cover%20Me.mp3");
                }
                
TextDrawHideForPlayer(playeridradio0);
                
TextDrawHideForPlayer(playeridradio1);
                
TextDrawHideForPlayer(playeridradio2);
                
radio[playerid] = 0;
                return 
0;
              }
            if(
text[0] == '2')
            {
                for(new 
0MAX_PLAYERSi++)
                {
                        new 
pname[MAX_PLAYER_NAME], stringr[22 ];
                        
GetPlayerName(playeridpnamesizeof(pname));
                        
format(stringrsizeof(stringr), "[RADIO] %s 'You Take the Point'."pname);
                        
SendClientMessage(playerid,COLOR_ORANGEstringr);
                        
PlayAudioStreamForPlayer(playerid"http://svtradio.site50.net/01.%20Radio%20Commands/2.%20You%20Take%20the%20Point.mp3");
                }
                
TextDrawHideForPlayer(playeridradio0);
                
TextDrawHideForPlayer(playeridradio1);
                
TextDrawHideForPlayer(playeridradio2);
                
radio[playerid] = 0;
                return 
0;
            }
            if(
text[0] == '3')
            {
                 for(new 
0MAX_PLAYERSi++)
                {
                        new 
pname[MAX_PLAYER_NAME], stringr[22 ];
                        
GetPlayerName(playeridpnamesizeof(pname));
                        
format(stringrsizeof(stringr), "[RADIO] %s 'Hold This Position'."pname);
                        
SendClientMessage(playerid,COLOR_ORANGEstringr);
                        
PlayAudioStreamForPlayer(playerid"http://svtradio.site50.net/01.%20Radio%20Commands/3.%20Hold%20This%20Position.mp3");
                }
                
TextDrawHideForPlayer(playeridradio0);
                
TextDrawHideForPlayer(playeridradio1);
                
TextDrawHideForPlayer(playeridradio2);
                
radio[playerid] = 0;
                return 
0;
            }
            if(
text[0] == '4')
            {
                for(new 
0MAX_PLAYERSi++)
                {
                        new 
pname[MAX_PLAYER_NAME], stringr[22 ];
                        
GetPlayerName(playeridpnamesizeof(pname));
                        
format(stringrsizeof(stringr), "[RADIO] %s 'Regroup Team'."pname);
                        
SendClientMessage(playerid,COLOR_ORANGEstringr);
                        
PlayAudioStreamForPlayer(playerid"http://svtradio.site50.net/01.%20Radio%20Commands/4.%20Regroup%20Team.mp3");
                }
                
TextDrawHideForPlayer(playeridradio0);
                
TextDrawHideForPlayer(playeridradio1);
                
TextDrawHideForPlayer(playeridradio2);
                
radio[playerid] = 0;
                return 
0;
            }
            if(
text[0] == '5')
            {
                for(new 
0MAX_PLAYERSi++)
                {
                        new 
pname[MAX_PLAYER_NAME], stringr[22 ];
                        
GetPlayerName(playeridpnamesizeof(pname));
                        
format(stringrsizeof(stringr), "[RADIO] %s 'Follow Me'."pname);
                        
SendClientMessage(playerid,COLOR_ORANGEstringr);
                        
PlayAudioStreamForPlayer(playerid"http://svtradio.site50.net/01.%20Radio%20Commands/5.%20Follow%20Me.mp3");
                }
                
TextDrawHideForPlayer(playeridradio0);
                
TextDrawHideForPlayer(playeridradio1);
                
TextDrawHideForPlayer(playeridradio2);
                
radio[playerid] = 0;
                return 
0;
            }
            if(
text[0] == '6')
            {
                for(new 
0MAX_PLAYERSi++)
                {
                        new 
pname[MAX_PLAYER_NAME], stringr[128 ];
                        
GetPlayerName(playeridpnamesizeof(pname));
                        
format(stringrsizeof(stringr), "[RADIO] %s 'Taking Fire, Need Assistance'."pname);
                        
SendClientMessage(playerid,COLOR_ORANGEstringr);
                        
PlayAudioStreamForPlayer(playerid"http://svtradio.site50.net/01.%20Radio%20Commands/6.%20Taking%20Fire,%20Need%20Assistance.mp3");
                }
                
TextDrawHideForPlayer(playeridradio0);
                
TextDrawHideForPlayer(playeridradio1);
                
TextDrawHideForPlayer(playeridradio2);
                
radio[playerid] = 0;
                return 
0;
            }
            if(
text[0] == '0')
            {
                
TextDrawHideForPlayer(playeridradio0);
                
TextDrawHideForPlayer(playeridradio1);
                
TextDrawHideForPlayer(playeridradio2);
                
radio[playerid] = 0;
                return 
0;
            }
    }
    if(
groupradio[playerid] == 1)
    {
            if(
text[0] == '1')
            {
                for(new 
0MAX_PLAYERSi++)
                {
                    new 
pname[MAX_PLAYER_NAME], stringr[22 ];
                    
GetPlayerName(playeridpnamesizeof(pname));
                    
format(stringrsizeof(stringr), "[Group-Radio] %s 'Go Go Go'."pname);
                    
SendClientMessage(playerid,COLOR_ORANGEstringr);
                    
PlayAudioStreamForPlayer(playerid"http://www.svtradio.site50.net/02.%20Group%20Radio%20Commands/1.%20Go%20Go%20Go.mp3");
                }
                
TextDrawHideForPlayer(playeridgroupradio0);
                
TextDrawHideForPlayer(playeridgroupradio1);
                
TextDrawHideForPlayer(playeridgroupradio2);
                
groupradio[playerid] = 0;
                return 
0;
            }
            if(
text[0] == '2')
            {
                for(new 
0MAX_PLAYERSi++)
                {
                    new 
pname[MAX_PLAYER_NAME], stringr[22 ];
                    
GetPlayerName(playeridpnamesizeof(pname));
                    
format(stringrsizeof(stringr), "[Group-Radio] %s 'Team, Fall Backn'."pname);
                    
SendClientMessage(playerid,COLOR_ORANGEstringr);
                    
PlayAudioStreamForPlayer(playerid"http://www.svtradio.site50.net/02.%20Group%20Radio%20Commands/2.%20Team,%20Fall%20Back.mp3");
                }
                
TextDrawHideForPlayer(playeridgroupradio0);
                
TextDrawHideForPlayer(playeridgroupradio1);
                
TextDrawHideForPlayer(playeridgroupradio2);
                
groupradio[playerid] = 0;
                return 
0;
            }
            if(
text[0] == '3')
            {
                for(new 
0MAX_PLAYERSi++)
                {
                    new 
pname[MAX_PLAYER_NAME], stringr[22 ];
                    
GetPlayerName(playeridpnamesizeof(pname));
                    
format(stringrsizeof(stringr), "[Group-Radio] %s 'Stick Together'."pname);
                    
SendClientMessage(playerid,COLOR_ORANGEstringr);
                    
PlayAudioStreamForPlayer(playerid"http://www.svtradio.site50.net/02.%20Group%20Radio%20Commands/3.%20Stick%20Together,%20Team.mp3");
                }
                
TextDrawHideForPlayer(playeridgroupradio0);
                
TextDrawHideForPlayer(playeridgroupradio1);
                
TextDrawHideForPlayer(playeridgroupradio2);
                
groupradio[playerid] = 0;
                return 
0;
            }
            if(
text[0] == '4')
            {
                for(new 
0MAX_PLAYERSi++)
                {
                    new 
pname[MAX_PLAYER_NAME], stringr[22 ];
                    
GetPlayerName(playeridpnamesizeof(pname));
                    
format(stringrsizeof(stringr), "[Group-Radio] %s 'Get in Position and Wait for My Go'."pname);
                    
SendClientMessage(playerid,COLOR_ORANGEstringr);
                    
PlayAudioStreamForPlayer(playerid"http://svtradio.site50.net/02.%20Group%20Radio%20Commands/4.%20Get%20in%20Position%20and%20Wait%20For%20My%20Go.mp3");
                }
                
TextDrawHideForPlayer(playeridgroupradio0);
                
TextDrawHideForPlayer(playeridgroupradio1);
                
TextDrawHideForPlayer(playeridgroupradio2);
                
groupradio[playerid] = 0;
                return 
0;
            }
            if(
text[0] == '5')
            {
                for(new 
0MAX_PLAYERSi++)
                {
                    new 
pname[MAX_PLAYER_NAME], stringr[22 ];
                    
GetPlayerName(playeridpnamesizeof(pname));
                    
format(stringrsizeof(stringr), "[Group-Radio] %s 'Storm the Front'."pname);
                    
SendClientMessage(playerid,COLOR_ORANGEstringr);
                    
PlayAudioStreamForPlayer(playerid"http://svtradio.site50.net/02.%20Group%20Radio%20Commands/5.%20Storm%20the%20Front.mp3");
                }
                
TextDrawHideForPlayer(playeridgroupradio0);
                
TextDrawHideForPlayer(playeridgroupradio1);
                
TextDrawHideForPlayer(playeridgroupradio2);
                
groupradio[playerid] = 0;
                return 
0;
            }
            if(
text[0] == '6')
            {
                for(new 
0MAX_PLAYERSi++)
                {
                    new 
pname[MAX_PLAYER_NAME], stringr[22 ];
                    
GetPlayerName(playeridpnamesizeof(pname));
                    
format(stringrsizeof(stringr), "[Group-Radio] %s 'Report In, Team'."pname);
                    
SendClientMessage(playerid,COLOR_ORANGEstringr);
                    
PlayAudioStreamForPlayer(playerid"http://svtradio.site50.net/02.%20Group%20Radio%20Commands/6.%20Report%20In,%20Team.mp3");
                }
                
TextDrawHideForPlayer(playeridgroupradio0);
                
TextDrawHideForPlayer(playeridgroupradio1);
                
TextDrawHideForPlayer(playeridgroupradio2);
                
groupradio[playerid] = 0;
                return 
0;
            }
            if(
text[0] == '0')
            {
                
TextDrawHideForPlayer(playeridgroupradio0);
                
TextDrawHideForPlayer(playeridgroupradio1);
                
TextDrawHideForPlayer(playeridgroupradio2);
                
groupradio[playerid] = 0;
                return 
0;
            }
    }
    if(
responze[playerid] == 1)
    {
            if(
text[0] == '1')
            {
                for(new 
0MAX_PLAYERSi++)
                {
                    new 
pname[MAX_PLAYER_NAME], stringr[22 ];
                    
GetPlayerName(playeridpnamesizeof(pname));
                    
format(stringrsizeof(stringr), "[Response] %s 'Affirmative'."pname);
                    
SendClientMessage(playerid,COLOR_YELLOWstringr);
                    
PlayAudioStreamForPlayer(playerid"http://svtradio.site50.net/03.%20Radio%20Responses-Reports/1.%20Affirmative.mp3");
                }
                
TextDrawHideForPlayer(playeridresponse0);
                
TextDrawHideForPlayer(playeridresponse1);
                
TextDrawHideForPlayer(playeridresponse2);
                
responze[playerid] = 0;
                return 
0;
            }
            if(
text[0] == '2')
            {
                for(new 
0MAX_PLAYERSi++)
                {
                    
                    new 
pname[MAX_PLAYER_NAME], stringr[22 ];
                    
GetPlayerName(playeridpnamesizeof(pname));
                    
format(stringrsizeof(stringr), "[Response] %s 'Negative'."pname);
                    
SendClientMessage(playerid,COLOR_YELLOWstringr);
                    
PlayAudioStreamForPlayer(playerid"http://svtradio.site50.net/03.%20Radio%20Responses-Reports/8.%20Negative.mp3");
                }
                
TextDrawHideForPlayer(playeridresponse0);
                
TextDrawHideForPlayer(playeridresponse1);
                
TextDrawHideForPlayer(playeridresponse2);
                
responze[playerid] = 0;
                return 
0;
            }
            if(
text[0] == '3')
            {
                for(new 
0MAX_PLAYERSi++)
                {
                    
                    new 
pname[MAX_PLAYER_NAME], stringr[22 ];
                    
GetPlayerName(playeridpnamesizeof(pname));
                    
format(stringrsizeof(stringr), "[Response] %s 'Enemy Spotted'."pname);
                    
SendClientMessage(playerid,COLOR_YELLOWstringr);
                    
PlayAudioStreamForPlayer(playerid"http://svtradio.site50.net/03.%20Radio%20Responses-Reports/2.%20Enemy%20Spotted.mp3");
                }
                
TextDrawHideForPlayer(playeridresponse0);
                
TextDrawHideForPlayer(playeridresponse1);
                
TextDrawHideForPlayer(playeridresponse2);
                
responze[playerid] = 0;
                return 
0;
            }
            if(
text[0] == '4')
            {
                for(new 
0MAX_PLAYERSi++)
                {
                    
                    new 
pname[MAX_PLAYER_NAME], stringr[22 ];
                    
GetPlayerName(playeridpnamesizeof(pname));
                    
format(stringrsizeof(stringr), "[Response] %s 'Need Backup'."pname);
                    
SendClientMessage(playerid,COLOR_YELLOWstringr);
                    
PlayAudioStreamForPlayer(playerid"http://svtradio.site50.net/03.%20Radio%20Responses-Reports/3.%20Need%20Backup.mp3");
                }
                
TextDrawHideForPlayer(playeridresponse0);
                
TextDrawHideForPlayer(playeridresponse1);
                
TextDrawHideForPlayer(playeridresponse2);
                
responze[playerid] = 0;
                return 
0;
            }
            if(
text[0] == '5')
            {
                for(new 
0MAX_PLAYERSi++)
                {
                    
                    new 
pname[MAX_PLAYER_NAME], stringr[22 ];
                    
GetPlayerName(playeridpnamesizeof(pname));
                    
format(stringrsizeof(stringr), "[Response] %s 'Sector Clear'."pname);
                    
SendClientMessage(playerid,COLOR_YELLOWstringr);
                    
PlayAudioStreamForPlayer(playerid"http://svtradio.site50.net/03.%20Radio%20Responses-Reports/4.%20Sector%20Clear.mp3");
                }
                
TextDrawHideForPlayer(playeridresponse0);
                
TextDrawHideForPlayer(playeridresponse1);
                
TextDrawHideForPlayer(playeridresponse2);
                
responze[playerid] = 0;
                return 
0;
            }
            if(
text[0] == '6')
            {
                for(new 
0MAX_PLAYERSi++)
                {
                    
                    new 
pname[MAX_PLAYER_NAME], stringr[22 ];
                    
GetPlayerName(playeridpnamesizeof(pname));
                    
format(stringrsizeof(stringr), "[Response] %s 'I'm in Position'."pname);
                    
SendClientMessage(playerid,COLOR_YELLOWstringr);
                    
PlayAudioStreamForPlayer(playerid"http://svtradio.site50.net/03.%20Radio%20Responses-Reports/5.%20I'm%20in%20Position.mp3");
                }
                
TextDrawHideForPlayer(playeridresponse0);
                
TextDrawHideForPlayer(playeridresponse1);
                
TextDrawHideForPlayer(playeridresponse2);
                
responze[playerid] = 0;
                return 
0;
            }
            if(
text[0] == '7')
            {
                for(new 
0MAX_PLAYERSi++)
                {
                    
                    new 
pname[MAX_PLAYER_NAME], stringr[22 ];
                    
GetPlayerName(playeridpnamesizeof(pname));
                    
format(stringrsizeof(stringr), "[Response] %s 'Reporting In'."pname);
                    
SendClientMessage(playerid,COLOR_YELLOWstringr);
                    
PlayAudioStreamForPlayer(playerid"http://svtradio.site50.net/03.%20Radio%20Responses-Reports/6.%20Reporting%20In.mp3");
                }
                
TextDrawHideForPlayer(playeridresponse0);
                
TextDrawHideForPlayer(playeridresponse1);
                
TextDrawHideForPlayer(playeridresponse2);
                
responze[playerid] = 0;
                return 
0;
            }
            if(
text[0] == '8')
            {
                for(new 
0MAX_PLAYERSi++)
                {
                    
                    new 
pname[MAX_PLAYER_NAME], stringr[128 ];
                    
GetPlayerName(playeridpnamesizeof(pname));
                    
format(stringrsizeof(stringr), "[Response] %s 'Get Out of There, It's Gonna Blow!'."pname);
                    
SendClientMessage(playerid,COLOR_YELLOWstringr);
                    
PlayAudioStreamForPlayer(playerid"http://svtradio.site50.net/03.%20Radio%20Responses-Reports/7.%20Get%20Out%20Of%20There,%20It's%20Gonna%20Blow!.mp3");
                }
                
TextDrawHideForPlayer(playeridresponse0);
                
TextDrawHideForPlayer(playeridresponse1);
                
TextDrawHideForPlayer(playeridresponse2);
                
responze[playerid] = 0;
                return 
0;
            }
            if(
text[0] == '9')
            {
                for(new 
0MAX_PLAYERSi++)
                {
                    
                    new 
pname[MAX_PLAYER_NAME], stringr[22 ];
                    
GetPlayerName(playeridpnamesizeof(pname));
                    
format(stringrsizeof(stringr), "[Response] %s 'Enemy Down'."pname);
                    
SendClientMessage(playerid,COLOR_YELLOWstringr);
                    
PlayAudioStreamForPlayer(playerid"http://svtradio.site50.net/03.%20Radio%20Responses-Reports/9.%20Enemy%20Down.mp3");
                }
                
TextDrawHideForPlayer(playeridresponse0);
                
TextDrawHideForPlayer(playeridresponse1);
                
TextDrawHideForPlayer(playeridresponse2);
                
responze[playerid] = 0;
                return 
0;
            }
            if(
text[0] == '0')
            {
                
TextDrawHideForPlayer(playeridresponse0);
                
TextDrawHideForPlayer(playeridresponse1);
                
TextDrawHideForPlayer(playeridresponse2);
                
responze[playerid] = 0;
                return 
0;
            }
    }
    return 
1;
}
public 
OnPlayerCommandText(playeridcmdtext[])
{
    if (
strcmp("/radio"cmdtexttrue10) == 0)
    {
        
TextDrawShowForPlayer(playeridradio0);
        
TextDrawShowForPlayer(playeridradio1);
        
TextDrawShowForPlayer(playeridradio2);
        
radio[playerid] = 1;
        return 
1;
    }
    if (
strcmp("/groupradio"cmdtexttrue10) == 0)
    {
        
TextDrawShowForPlayer(playeridgroupradio0);
        
TextDrawShowForPlayer(playeridgroupradio1);
        
TextDrawShowForPlayer(playeridgroupradio2);
        
groupradio[playerid] = 1;
        return 
1;
    }
    if (
strcmp("/response"cmdtexttrue10) == 0)
    {
        
TextDrawShowForPlayer(playeridresponse0);
        
TextDrawShowForPlayer(playeridresponse1);
        
TextDrawShowForPlayer(playeridresponse2);
        
responze[playerid] = 1;
        return 
1;
    }
    return 
0;




Re: CMD - HellixBG - 26.06.2017

Make this like me but you need sscanf for this

Код:
	if(strcmp(cmd, "/radiohelp", true) == 0 || strcmp(cmd, "/rh", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			new rhelp[2230];
			{
			strins(rhelp,"{D90000}Radio Commands:\n",strlen(rhelp));
			strins(rhelp,"{F4F400} Your commands here\n",strlen(rhelp));
			}
			ShowPlayerDialog(playerid,dialog_command,DIALOG_STYLE_MSGBOX,"{D90000}Radio Commands:",rhelp,"Exit","");
			}
		}
		return 1;
	}
If you want to add more commands write like this
Код:
{
strins(rhelp,"{D90000}here you put your commands\n",strlen(rhelp)); //If you need more lines type same thing under strins but after all things you type you need to put \n (new line)
}