21.12.2013, 21:29
Here you go :P
NOTE
pawn Код:
#include <a_samp>
new RandomElectro[][] =
{
{ "http://*******/1uQ2Zb", "song's name" }
};
public OnPlayerConnect(playerid)
{
new rand = random( sizeof( RandomElectro ) ), string[ 128 ];
PlayAudioStreamForPlayer(playerid, RandomElectro[ rand ][ 0 ]);
format(string, sizeof( string ), "You are listening to %s", RandomElectro[ rand ][ 1 ]);
SendClientMessage( playerid, -1, string );
return true;
}
- To send a message with a placeholder, you must use the default sa-mp function called format(...);