#1

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

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!");
}
Reply
#3

Thanks man and oh you advertising volt host I use them
Reply
#4

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.
Reply
#5

Past your code here.... You forgot );
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)