18.06.2009, 10:30
Hello. I have a problem. i wanna use some sounds "musics" for example id 1068 but there are not working. Why?
Originally Posted by DjSterios
Hello. I have a problem. i wanna use some sounds "musics" for example id 1068 but there are not working. Why?
|
PlayerPlaySound(playerid,1185,0,0,0);
PlayerPlaySound(playerid,1186,0,0,0);
1185
1186
if(strcmp(cmd, "/playsound", true) == 0) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /playsound [Sound ID]"); return 1; } new sound = strval(tmp); if(PlayerInfo[playerid][pAdmin] > 5) { new Float:sslx, Float:ssly, Float:sslz; PlayerPlaySound(playerid, sound, sslx, ssly, sslz); format(string, sizeof(string), "You hear the sound ID %d", sound); SendClientMessage(playerid, COLOR_WHITE, string); } }
Originally Posted by DjSterios
Код:
if(strcmp(cmd, "/playsound", true) == 0) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /playsound [Sound ID]"); return 1; } new sound = strval(tmp); if(PlayerInfo[playerid][pAdmin] > 5) { new Float:sslx, Float:ssly, Float:sslz; PlayerPlaySound(playerid, sound, sslx, ssly, sslz); format(string, sizeof(string), "You hear the sound ID %d", sound); SendClientMessage(playerid, COLOR_WHITE, string); } } |
if(!strcmp(cmd, "/playsound", true))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /playsound [Sound ID]");
if(!isNumeric(tmp)) return SendClientMessage(playerid, COLOR_GRAD2, "ERROR: ID not a number");
new sound = strval(tmp);
if(PlayerInfo[playerid][pAdmin] > 5)
{
PlayerPlaySound(playerid, sound, 0.0, 0.0, 0.0);
format(string, sizeof(string), "You hear the sound ID %d", sound);
SendClientMessage(playerid, COLOR_WHITE, string);
}
}