21.10.2014, 18:28
pawn Код:
#include a_samp
#include streamer // For Dynamics
new YourVariable;
public OnGameModeInit()
{
YourVariable = CreateDynamicRectangle(Float:minx, Float:miny, Float:maxx, Float:maxy, worldid = -1, interiorid = -1, playerid = -1);
return 1;
}
public OnPlayerEnterDynamicArea(playerid, areaid)
{
if(areaid == YourVariable )
{
PlayAudioStreamForPlayer(playerid, "http://mp3dos.com/assets/songs/15000-15999/15726-am-i-wrong-nico-vinz--1411219503.mp3");
SetPlayerTime(playerid,24,0);
}
return 1;
}
public OnPlayerLeaveDynamicArea(playerid, areaid)
{
if(areaid == YourVariable )
{
SetPlayerTime(playerid,8,0);
StopAudioStreamForPlayer(playerid);
}
return 1;
}