19.02.2011, 00:49
Thanks, and you could do the same with this cmd?
I tried the same thing as the playstreamed but it does not work
I tried the same thing as the playstreamed but it does not work
Код:
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; }