SA-MP Forums Archive
Need help with making Dynamic Radio - 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: Need help with making Dynamic Radio (/showthread.php?tid=321565)



Need help with making Dynamic Radio - Just rp - 27.02.2012

Hello Guys,

i am making a Dynamic Boombox(radioobject) system
i already have this now:
pawn Код:
CMD:placeboombox(playerid, params[])
{
    if (PlayerInfo[playerid][pAdmin] == 99999)
    {
        GetPlayerPos(playerid,Positions[0][0], Positions[0][1], Positions[0][2]);
        SetPVarFloat(playerid, "DYN_Boombox_FLOAT_X", Positions[0][0]);
        SetPVarFloat(playerid, "DYN_Boombox_FLOAT_Y", Positions[0][1]);
        SetPVarFloat(playerid, "DYN_Boombox_FLOAT_Z", Positions[0][2]);
        PlayerInfo[playerid][pBoombox] = CreateDynamicObject(2103, Positions[0][0], Positions[0][1], Positions[0][2]-0.9, 0, 0, 3.9700012207031);
        ApplyAnimation(playerid,"BOMBER","BOM_Plant",4.0,0,0,0,0,0);
        ApplyAnimation(playerid,"BOMBER","BOM_Plant",4.0,0,0,0,0,0);
        SendClientMessageEx(playerid, COLOR_YELLOW, "You have placed Boombox on the ground, /pickupboombox to remove it.");
    }
    return 1;
}

CMD:pickupboombox(playerid, params[])
{
    if (PlayerInfo[playerid][pAdmin] != 99999)
    {
        SendClientMessageEx(playerid, COLOR_RED, "You are not a Executive Administrator!");
        return 1;
    }
    if (PlayerInfo[playerid][pBoombox] == 0)
    {
        SendClientMessageEx(playerid, COLOR_RED, "You haven't placed a Boombox!");
        return 1;
    }
    if(IsPlayerInRangeOfPoint(playerid, 3.0, GetPVarFloat(playerid, "DYN_Boombox_FLOAT_X"), GetPVarFloat(playerid, "DYN_Boombox_FLOAT_Y"), GetPVarFloat(playerid, "DYN_Boombox_FLOAT_Z")))
    {
        PickUpBoombox(playerid);
        SendClientMessageEx(playerid, COLOR_YELLOW, "Boombox picked up successfully.");
        return 1;
    }
    return 1;
}
But how can i make it that i can do /setboombox and get a Dialog of streams.
click on one RADIO stream and hearing music in a range of 20 or 50?

Please help me out
Thanks


Re: Need help with making Dynamic Radio - Just rp - 27.02.2012

Can anyone help me with this please


Re: Need help with making Dynamic Radio - Just rp - 28.02.2012

Bump..