Code
		
					
			ocmd:zoll(playerid, params[])
{
	if(IsPlayerAtZoll(playerid) == 0)return SendClientMessage(playerid, COLOR_GREY, "Du bist an keiner Zoll-Station.");
    if(IsOfficer(playerid) || IsOrdnungsamt(playerid) || IsMedic(playerid)|| IsSchool(playerid)|| IsNews(playerid))
	{
		for(new i=0;i<MAX_ZOLL;i++){
			if(IsPlayerInRangeOfPoint(playerid, 8.0, Zoll[i][zollX], Zoll[i][zollY], Zoll[i][zollZ]))
			{
				MoveDynamicObject(ZollObject[i], Zoll[i][zollX], Zoll[i][zollY], Zoll[i][zollZ]-3, 1);
				SetTimerEx("ZollHoch", 7000, 0, "i", i);
				SendClientMessage(playerid, COLOR_GREEN, "Du hast einen gültigen Zollpass.");
				return 1;
			}
		}
		SendClientMessage(playerid, COLOR_GREY, "Du bist an keinem Zoll.");
		return 1;
	}
	for(new i=0;i<MAX_ZOLL;i++){
		if(IsPlayerInRangeOfPoint(playerid, 8.0, Zoll[i][zollX], Zoll[i][zollY], Zoll[i][zollZ]))
		{
			MoveDynamicObject(ZollObject[i], Zoll[i][zollX], Zoll[i][zollY], Zoll[i][zollZ]-3, 1);
			SetTimerEx("ZollHoch", 7000, 0, "i", i);
			if(GetPlayerMoney(playerid) < 250)return SendClientMessage(playerid, COLOR_GREY,"Du hast nicht genügend Geld!");
			GiveMoney(playerid, -250);
			SendClientMessage(playerid, COLOR_GREEN, "Du hast die Maut in Höhe von 250$ bezahlt. Gute Weiterfahrt!");
			return 1;
		}
	}
	SendClientMessage(playerid, COLOR_GREY, "Du bist an keinem Zoll.");
	return 1;
}Hallo,
Kurze frage ich möchte ein Befehl erstellen das die Polizisten den Zoll Schließen kann, ID abhänig
 
		 
		
		
	 
			
									
		