[FilterScript] songs system
#2

I'll script it for you!

Код:
#include zcmd
#include Dini
#include streamer
#include foreach

#define DIALOG_SONG 1487

#define MAX_SONGS           1

-----------------------------

public OnPlayerConnect (playerid)

if(dini_Int(File,"UseSong") == 1) PlaySong(playerid,random(MAX_SONGS));


------

stock PlaySong(playerid,songid)
{
	if(dini_Int(File,"UseSong") == 0) return SendClientMessage(playerid,COLOR_RED,"Songs have been disabled by an admin!");
	switch(songid)
	{
	    case 0:PlayAudioStreamForPlayer(playerid,"http://dimi-sa-mp.weebly.com/uploads/7/0/2/3/7023626/christmas_songs_-_we_wish_you_a_merry_chrismas.mp3",0.0,0.0,0.0,350.0,0);
	    default: return 1;
	}
	return 1;
}
If you want to add another song, just add case 1,and so.
Reply


Messages In This Thread
songs system - by Gamo - 27.12.2013, 11:33
Re: songs system - by Flaken - 27.12.2013, 14:04

Forum Jump:


Users browsing this thread: 1 Guest(s)