/raadio Command Help - 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: /raadio Command Help (
/showthread.php?tid=332201)
/raadio Command Help -
James Coral - 07.04.2012
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
Re: /raadio Command Help -
Shabi RoxX - 07.04.2012
You mean show dialog to all players in vehicle ?
Re: /raadio Command Help -
Aira - 07.04.2012
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
Re: /raadio Command Help -
Shabi RoxX - 07.04.2012
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