25.01.2011, 14:46
pawn Код:
if(strcmp(cmd, "/volume", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /volume [1-100]");
return 1;
}
new volume = strval(tmp);
Audio_SetVolume(playerid, musicc[playerid], volume);
format(string, sizeof(string), "Volume %d", volume);
SendClientMessage(playerid, COLOR_GRAD1, string);
}
return 1;
}