24.01.2011, 18:16
pawn Код:
if(!strcmp(cmdtext, "/radio", true))
{
if (GetPVarInt(playerid, "RadioOn") == 1) return SendClientMessage(playerid, -1, "Your Radio is already on.");
if(Audio_IsClientConnected(playerid))
{
SendClientMessage(playerid,YELLOW,"* Radio now On");
base = Audio_PlayStreamed(playerid, "http://listen.base/dsl.pls");
SetPVarInt( playerid, "RadioOn", 1 );
}
else
{
SendClientMessage(playerid, COLOR_GREEN, "* No Audio Plugin installedl!");
}
return 1;
}