SetTimerEx(\"ZeneOn\", 1000, 1, \"i\", playerid);
forward ZeneOn(playerid);public ZeneOn(playerid){ if(IsPlayerInRangeOfPoint(playerid, 20.0, X, Y, Z)) { //Zene elindítása. } return 1;}
PlayAudioStreamForPlayer(playerid, \"zene/rádió url\", x, y, z, 20, 1);
forward ZeneOn(playerid);SetTimerEx(\"ZeneOn\", 1000, 1, \"i\", playerid); //Ez az OnPlayerConnect Alatt van.public ZeneOn(playerid){ if(IsPlayerInRangeOfPoint(playerid, 20.0, -212.0682,2656.9719,62.6016)) { PlayAudioStreamForPlayer(playerid, \"http://195.70.35.172:8000/radio1.mp3.m3u\", -212.0682,2656.9719,62.6016, 20, 1); } return 1;}
forward ZeneOn(playerid);SetTimerEx(\"ZeneOn\", 1000, 1, \"i\", playerid); //Ez az OnPlayerConnect Alatt van.public ZeneOn(playerid){ PlayAudioStreamForPlayer(playerid, \"http://195.70.35.172:8000/radio1.mp3.m3u\", -212.0682,2656.9719,62.6016, 20, 1); return 1;}
new check[MAX_PLAYERS];
public OnPlayerUpdate(playerid){if(IsPlayerInRangeOfPoint(playerid, 20.0, -212.0682,2656.9719,62.6016)){if(check[playerid] == 1) return 0;else { PlayAudioStreamForPlayer(playerid, \"http://195.70.35.172:8000/radio1.mp3.m3u\", -212.0682,2656.9719,62.6016, 20, 1);check[playerid] = 1; }}else { check[playerid] = 0; }return 1;}