Call public when player exit from vehicle
#1

I want to call this plugin when player exit from vehicle.
Problem is, i cant hear the stream from boombox when I exit from vehicle in boombox area.

Код:
public OnPlayerEnterDynamicArea(playerid, areaid)
{
	foreach(new i : Player)
	{
	   	if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
		{
		return 1;
		}
	    if(GetPVarType(i, "BBArea"))
	    {
	        if(areaid == GetPVarInt(i, "BBArea"))
	        {
	            new station[256];
				GetPVarString(i, "BBStation", station, sizeof(station));
	            if(!isnull(station))
				{
					PlayStream(playerid, station, GetPVarFloat(i, "BBX"), GetPVarFloat(i, "BBY"), GetPVarFloat(i, "BBZ"), 30.0, 1);
	            }
				return 1;
	        }
	    }
	}
	return 1;
}
Reply


Messages In This Thread
Call public when player exit from vehicle - by Pachino - 03.09.2018, 17:39

Forum Jump:


Users browsing this thread: 1 Guest(s)