21.08.2012, 20:22
(
Последний раз редактировалось Reix[EST]; 22.08.2012 в 18:42.
)
If Owner/Admin/Player (however you like to use it) connect to server then everyone will hear MP3 song of your choose.
1. Put this script into your gamemode/filterscript under "OnPlayerConnect".
2. For search MP3 songs go to www.beemp3.com (example).
3. Compile your gamemode/filterscript.
4. Enjoy!
If this isnt work problem can be:
1. Wrong/broken mp3 link.
2. Not correct admin level check line.
3. You must define your admin system in top of your filterscript/gamemode.
In top of your script define your admin system.
Код:
#include <Define here your admin system>
Код:
public OnPlayerConnect(playerid) { if (APlayerData[playerid][PlayerLevel] >= 5) //You must modify this line,change it to make it work with your admin system. { for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { StopAudioStreamForPlayer(i); PlayAudioStreamForPlayer(i, "Put here MP3 url link" ); } } } return 1; }