17.02.2012, 12:42
no not that i mean this
pawn Code:
CMD:youaremyno1(playerid, params[])
{
new string[128],pname[MAX_PLAYER_NAME];
for(new i = 0; i < MAX_PLAYERS; i++)
{
GetPlayerName(playerid, pname, sizeof(pname));
if(IsSongPlaying[i] == 0)
{
if(IsPlayerConnected(i))
{
format(string, sizeof(string), "%s has played the song You're my number one by S CLUB 7", pname);
SendClientMessageToAll(COLOR_RED, string);
SendClientMessage(playerid, COLOR_GREEN, "You played the song You're my number one by S CLUB 7");
PlayAudioStreamForPlayer(i, "http://k002.kiwi6.com/hotlink/04gp2006f8/s_club_7_you_re_my_number_one.mp3");
IsSongPlaying[i] = 1;
}
}
else
{
if(IsPlayerConnected(i))
{
format(string, sizeof(string), "%s has stop playing the song You're my number one by S CLUB 7", pname);
SendClientMessageToAll(COLOR_RED, string);
SendClientMessage(playerid, COLOR_RED, "You stop playing the song You're my number one by S CLUB 7");
StopAudioStreamForPlayer(i);
IsSongPlaying[i] = 0;
}
}
}
return 1;
}