dcmd_playstreamed (playerid, params[])
{
#pragma unused playerid
new
bool:downmix,
bool:loop,
bool:pause,
url[256];
if (sscanf(params, "sddd", url, pause, loop, downmix))
{
SendClientMessage(playerid, COLOR_YELLOW, "USAGE: /playstreamed <url> <pause (0/1)> <loop (0/1)> <downmix (0/1)>");
return 1;
}
Audio_PlayStreamed(playerid, url, pause, loop, downmix);
return 1;
}
|
Audio_PlayStreamed(playerid, url, pause, loop, downmix); |
for(new i = 0; i < 500; i++)
{
if(!IsPlayerConnected(i) || IsPlayerNPC(i)) continue;
Audio_PlayStreamed(i, url, pause, loop, downmix);
}
dcmd_set3dposition(playerid, params[])
{
#pragma unused playerid
new
handleid,
Float:distance,
Float:x,
Float:y,
Float:z;
if (sscanf(params, "dffff", handleid, x, y, z, distance))
{
SendClientMessage(playerid, COLOR_YELLOW, "USAGE: /set3dposition <handleid> <x> <y> <z> <distance>");
return 1;
}
new
string[128];
format(string, sizeof(string), "Audio 3D position set to %.01f, %.01f, %.01f (distance: %.01f) for handle ID %d", x, y, z, distance, handleid);
SendClientMessage(playerid, COLOR_YELLOW, string);
Audio_Set3DPosition(playerid, handleid, x, y, z, distance);
return 1;
}
|
SendClientMessage(playerid, COLOR_YELLOW, string); Audio_Set3DPosition(playerid, handleid, x, y, z, distance); |
for(new i = 0; i < 500; i++){
SendClientMessage(i, COLOR_YELLOW, string);
Audio_Set3DPosition(i, handleid, x, y, z, distance);
}
|
if (sscanf(params, "dffff", handleid, x, y, z, distance)) { SendClientMessage(playerid, COLOR_YELLOW, "USAGE: /set3dposition <handleid> <x> <y> <z> <distance>"); return 1; } |