Need help with making Dynamic Radio
#1

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
Reply
#2

Can anyone help me with this please
Reply
#3

Bump..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)