Quick question about a command.
#1

Hi guys,

After fixing my radio script yesterday, I noticed something about a command I've scripted.
The command is /stopradio:

pawn Код:
if (strcmp("/stopradio", cmdtext, true, 10) == 0)
{
    StopAudioStreamForPlayer(playerid);
    SendClientMessage(playerid, COLOR_RED, "You have turned off the radio.");
    return 1;
}
I want to add another client message saying "The radio is already off". Can anyone help me out here ?
I want it to detect if the radio is on or off.
Reply


Messages In This Thread
Quick question about a command. - by sniperwars - 06.03.2012, 14:53
Re: Quick question about a command. - by GNGification - 06.03.2012, 15:19
Re: Quick question about a command. - by Campbell- - 06.03.2012, 16:27
Re: Quick question about a command. - by sniperwars - 06.03.2012, 16:35
Re: Quick question about a command. - by Campbell- - 06.03.2012, 16:49
Re: Quick question about a command. - by sniperwars - 06.03.2012, 17:15
Re: Quick question about a command. - by Campbell- - 06.03.2012, 17:22
Re: Quick question about a command. - by FalconX - 06.03.2012, 17:23
Re: Quick question about a command. - by sniperwars - 06.03.2012, 17:33
Re: Quick question about a command. - by FalconX - 06.03.2012, 17:34

Forum Jump:


Users browsing this thread: 2 Guest(s)