Audio - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Server (
https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (
https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Audio (
/showthread.php?tid=302161)
Audio -
calzo2011 - 07.12.2011
Hi I run a server and I want a fire alarm so when someone calls 911 (/911 or sommit like that) the fire alarm plays to all players near the fd station can any one help me plz plz plz I really need help here
Re: Audio -
Thresholdold - 07.12.2011
https://sampwiki.blast.hk/wiki/PlayAudioStreamForPlayer
So you can use this, first you need the URL of the fire alarm SFX, and then just put in the position of the fire department, and make it within a range of about 20.0
EDIT: SET USEPOS TO 1 (Make sure the last number inside the () is a 1)
if you're using strcmp, it would look something like this:
Код:
if(strcmp(cmdtext, "/911", true) == 0)
{
for(new i = 0; i < MAX_PLAYERS; i++)
PlayAudioStreamForPlayer(i, http://www.myaudioplayer.com, 120.0, 50.0, 180.0, 25.0, 1);
SendClientMessageToAll(0xFF0000AA, "The Fire Department is now on alert!");
}
Re: Audio -
calzo2011 - 07.12.2011
Thanks man and oh you advertising volt host I use them
Re: Audio -
calzo2011 - 07.12.2011
got a problem wit one thing wit that code
C:\Users\Calum Smith\Desktop\SFCRRPG\filterscripts\alarm.pwn(86 -- 87) : error 001: expected token: ")", but found ";"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Re: Audio -
Dragony92 - 08.12.2011
Past your code here.... You forgot );