11.12.2011, 10:10
pawn Код:
new AudioTest;
if (strcmp("/alarmprison", cmdtext, true) == 0)
{
If(!CopPlayer) return SendClientMessage(playerid, COLOR_RED, " Your not LSPD");
new Float:X, Float:Y, Float:Z, Float:Distance = 5.0;
GetPlayerPos(playerid, X, Y, Z);
AudioTest = PlayAudioStreamForPlayer(playerid, "http://somafm.com/tags.pls", X, Y, Z, Distance, 1);
return 1;
}
if (strcmp("/stopalarm", cmdtext, true) == 0)
{
If(!CopPlayer) return SendClientMessage(playerid, COLOR_RED, " Your not LSPD");
StopAudioStreamForPlayer(AudioTest);
return 1;
}