01.05.2015, 03:32
the sendclientmessage /stopstream spamming
Код:
CMD:stream(playerid,params[]) { new url[200]; if(sscanf(params,"s[200]", url)) return SendClientMessage(playerid, 0x9C9C9CAA, "Syntax: /stream [url]"); foreach(new i: Player) { if(IsPlayerVipType(playerid,3)) { PlayAudioStreamForPlayer(i, url); new string[64], pName[MAX_PLAYER_NAME]; GetPlayerName(playerid,pName,MAX_PLAYER_NAME); format(string,sizeof string,"%s has stream the music [%s]",pName, url); SendClientMessageToAll(0xF0F8FFAA, "Use /stopstream to stop the song"); } else return SendClientMessage(playerid, 0xAA3333AA, "ERROR: THIS COMMAND IS FOR VIP PREMIUM"); } return 1; } CMD:stopstream(playerid,params[]) { StopAudioStreamForPlayer(playerid); return 1; }