new Zene[MAX_PLAYERS];public OnPlayerUpdate(playerid);{if(PlayerToPoint(500.0,playerid,X,Y,Z) && Zene[playerid] == 0){Zene[playerid] = 1;[A zene kódja]}if(!PlayerToPoint(500.0,playerid,X,Y,Z) && Zene[playerid] == 1){Zene[playerid] = 0;[A zene leállító kódja]}return 0;}
#define FILTERSCRIPT#include a_samp#define COLOR_RED 0xAA3333AA#define COLOR_WHITE 0xFFFFFFAA#define COLOR_GREEN 0x33AA33AA#define MusicX 2841.0227#define MusicY 1940.9119#define MusicZ 10.8203public OnPlayerSpawn(playerid){ if(IsPlayerInRangeOfPoint(playerid, 500.0, MusicX, MusicY, MusicZ)) { PlayAudioStreamForPlayer(playerid,\"zene elérhetõség\"); SendClientMessage(playerid, COLOR_WHITE, \"Beléptél a zónába: {33AA33}Elindult a zene.\"); } else { StopAudioStreamForPlayer(playerid); SendClientMessage(playerid, COLOR_WHITE, \"Kiléptél a körzetbõl: {AA3333}Leállt a zene.\");} return 1;}
Hát, valami ilyesmi lehet de nem biztos: #define FILTERSCRIPT#include a_samp#define COLOR_RED 0xAA3333AA#define COLOR_WHITE 0xFFFFFFAA#define COLOR_GREEN 0x33AA33AA#define MusicX 2841.0227#define MusicY 1940.9119#define MusicZ 10.8203public OnPlayerSpawn(playerid){ if(IsPlayerInRangeOfPoint(playerid, 500.0, MusicX, MusicY, MusicZ)) { PlayAudioStreamForPlayer(playerid,\"zene elérhetõség\"); SendClientMessage(playerid, COLOR_WHITE, \"Beléptél a zónába: {33AA33}Elindult a zene.\"); } else { StopAudioStreamForPlayer(playerid); SendClientMessage(playerid, COLOR_WHITE, \"Kiléptél a körzetbõl: {AA3333}Leállt a zene.\");} return 1;}
public OnPlayerSpawn(playerid){ if(IsPlayerInRangeOfPoint(playerid, 500.0, MusicX, MusicY, MusicZ)) {