07.12.2011, 17:51
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:
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!"); }