19.04.2011, 01:47
(
Последний раз редактировалось Unknown123; 19.04.2011 в 02:20.
)
pawn Код:
#include <a_samp>
#include <audio>
#include <zcmd>
#include <sscanf2>
#define COLOR_RED 0xFF0000FF
#define COLOR_YELLOW 0xFFFF00FF
public OnFilterScriptInit()
{
Audio_SetPack("default_pack", true);
return 1;
}
COMMAND:play(playerid, params[])
{
new audioid;
if(sscanf(params, "d", audioid)) return SendClientMessage(playerid, COLOR_YELLOW, "USAGE: /play (audioid)");
{
Audio_Play(playerid, audioid, false, false, false);
return 1;
}
}
COMMAND:stop(playerid, params[])
{
new handleid;
if(sscanf(params, "d", handleid)) return SendClientMessage(playerid, COLOR_YELLOW, "USAGE: /stop (handleid)");
{
Audio_Stop(playerid, handleid);
return 1;
}
}
Код:
[default_pack] 1 = test.wav 2 = test2.wav 3 = test3.wav archive = CR archive = SCRIPT
Код:
test.wav test2.wav test3.wav