/raadio Command Help
#1

My Command
pawn Код:
CMD:raadio(playerid, params[])
{
    if(IsPlayerInAnyVehicle(playerid) == 1 && GetPlayerVehicleSeat(playerid) == 0)
    {
        ShowPlayerDialog(playerid, 9998, DIALOG_STYLE_LIST, "Raadiojaamad", "SkyPlus \nPowerHitRadio\nStar FM \nRaadio vдlja", "Vali", "Sule");
    }
    else
    {
        SendClientMessage(playerid, 0xFF330000, "SERVER: Sa pead olema autos juhikohal, et seda commandi kasutada.");
        return 1;
    }
    return 1;
}
How To Make This Command for Everyone if player is in car

For Now this is for only a driver
Reply
#2

You mean show dialog to all players in vehicle ?
Reply
#3

Quote:
Originally Posted by James Coral
Посмотреть сообщение
My Command
pawn Код:
CMD:raadio(playerid, params[])
{
    if(IsPlayerInAnyVehicle(playerid) == 1 && GetPlayerVehicleSeat(playerid) == 0)
    {
        ShowPlayerDialog(playerid, 9998, DIALOG_STYLE_LIST, "Raadiojaamad", "SkyPlus \nPowerHitRadio\nStar FM \nRaadio vдlja", "Vali", "Sule");
    }
    else
    {
        SendClientMessage(playerid, 0xFF330000, "SERVER: Sa pead olema autos juhikohal, et seda commandi kasutada.");
        return 1;
    }
    return 1;
}
How To Make This Command for Everyone if player is in car

For Now this is for only a driver
f(IsPlayerInAnyVehicle(playerid) == 1 && GetPlayerVehicleSeat(playerid) == 0 || GetPlayerVehicleSeat(playerid) == 1 || GetPlayerVehicleSeat(playerid) == 2 || GetPlayerVehicleSeat(playerid) == 3)

I guess that will work, i'm not sure
Reply
#4

Quote:
Originally Posted by Aira
Посмотреть сообщение
f(IsPlayerInAnyVehicle(playerid) == 1 && GetPlayerVehicleSeat(playerid) == 0 || GetPlayerVehicleSeat(playerid) == 1 || GetPlayerVehicleSeat(playerid) == 2 || GetPlayerVehicleSeat(playerid) == 3)

I guess that will work, i'm not sure
He want for every player not every vehicle seat.... I think ? But what for every player ? I can only see dailog , which you want to show to all players ?

I think the think you want is to play radio for all players in vehicle , that will be done onDialogresponse not in this cmd
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)