kapu = CreateDynamicObject(976, 1017.56097, -367.48990, 73.15325, 0.00000, 0.50000, -0.42000);
CMD:kapu(playerid){if(Belepve[playerid] == 0) return SendClientMessage(playerid,HIBA,\"Be kell jelentkezned!\");if(JatekosInfo[playerid][Frakcio] != 1) return SendClientMessage(playerid,HIBA,\"Nem vagy rendõr!\");if(!IsPlayerInRangeOfPoint(playerid,10,1017.30890, -370.68259, 72.84050)) return SendClientMessage(playerid,HIBA,\"Nem vagy a tábor kapujánál!\");if(KapuNy == false){ MoveObject(kapu, 1017.30890, -370.68259, 60.84050, 2.00); KapuNy= true;return 1;}else{ MoveObject(kapu, 1017.30890, -370.68259, 72.84050, 2.00); KapuNy = false; return 1;}}
CreateDynamicObjectMoveObject
new KapuNy;CMD:kapu(playerid) {if(!Belepve[playerid]) return SendClientMessage(playerid,HIBA,\"Be kell jelentkezned!\");if(JatekosInfo[playerid][Frakcio] != 1) return SendClientMessage(playerid,HIBA,\"Nem vagy rendõr!\");if(!IsPlayerInRangeOfPoint(playerid,10,1017.30890, -370.68259, 72.84050)) return SendClientMessage(playerid,HIBA,\"Nem vagy a tábor kapujánál!\");if(!KapuNy) {MoveDynamicObject(kapu, 1017.30890, -370.68259, 60.84050, 2.00);KapuNy = 1;}else{ MoveDynamicObject(kapu, 1017.30890, -370.68259, 72.84050, 2.00); KapuNy = 0;}return 1;}
native MoveDynamicObject(objectid, Float:x, Float:y, Float:z, Float:speed, Float:rx = -1000.0, Float:ry = -1000.0, Float:rz = -1000.0);
CMD:kapu(playerid){if(Belepve[playerid] == 0) return SendClientMessage(playerid,HIBA,\"Be kell jelentkezned!\");if(JatekosInfo[playerid][Frakcio] != 1) return SendClientMessage(playerid,HIBA,\"Nem vagy rendõr!\");if(!IsPlayerInRangeOfPoint(playerid,10,1017.30890, -370.68259, 72.84050)) return SendClientMessage(playerid,HIBA,\"Nem vagy a tábor kapujánál!\");if(!KapuNy){ MoveDynamicObject(kapu, 1017.30890, -370.68259, 60.84050,2.0,0.00000, 0.50000, -0.42000); KapuNy= 1;return 1;}else{ MoveDynamicObject(kapu, 1017.30890, -370.68259, 72.84050,2.0, 0.00000, 0.50000, -0.42000); KapuNy = 0; return 1;}}