Unknow Posted February 22, 2018 Share Posted February 22, 2018 السلام عليكم ابي مساعدة و اتمنى ما انرد خايب .. ادري في ناس طيبة كثير هنا و انا طمعان بكرمهم انا ابي احط حماية على منطقة من كل شيء بس ابي الاعب يمشي فيها و يستعمل السيارة و اذا الاعب حاول يطلع سلاح من السيارة ما يقدر .. مود تطلع السلاح من السيارة + ابي اذا لاعب دخل الحماية معاه سيارة من ذا الاي دي ينتقل لخارج المنطقة برا الحماية السيارات الي ما ابيها تدخل ID = 425 ID = 520 ID = 432 ذا الكود حق الحماية addEventHandler ("onColShapeHit", getRootElement(), function(hitElement, matchingDimension) if (getElementType (hitElement) == "player") and (getElementID (source) == "greenzoneColshape") then outputChatBox ("You entered the greenzone", hitElement, 255, 0, 0, false) toggleControl (hitElement, "fire", false) toggleControl (hitElement, "next_weapon", false) toggleControl (hitElement, "previous_weapon", false) toggleControl (hitElement, "sprint", false) toggleControl (hitElement, "aim_weapon", false) toggleControl (hitElement, "vehicle_fire", false) showPlayerHudComponent (hitElement, "ammo", false) showPlayerHudComponent (hitElement, "weapon", false) triggerClientEvent (hitElement, "enableGodMode", hitElement) end if (source == moneyZoneCol) and (getElementType (hitElement) == "vehicle") then setElementVelocity (hitElement, 0, 0, 0) setElementPosition (hitElement, 2018.33, 1534.77, 12.37) setVehicleRotation (hitElement, 0,0,270) if (getVehicleOccupant (hitElement, 0)) then outputChatBox ("You can't enter the moneyzone with your car!", getVehicleOccupant (hitElement, 0), 255, 0, 0, false) end end end) addEventHandler ("onColShapeLeave", getRootElement(), function(leaveElement, matchingDimension) if (getElementType (leaveElement) == "player") and (getElementID (source) == "greenzoneColshape") then outputChatBox ("You left the greenzone", leaveElement, 255, 0, 0, false) toggleControl (leaveElement, "fire", true) toggleControl (leaveElement, "next_weapon", true) toggleControl (leaveElement, "previous_weapon", true) toggleControl (leaveElement, "sprint", true) toggleControl (leaveElement, "aim_weapon", true) toggleControl (leaveElement, "vehicle_fire", true) showPlayerHudComponent (leaveElement, "ammo", true) showPlayerHudComponent (leaveElement, "weapon", true) triggerClientEvent (leaveElement, "disableGodMode", leaveElement) end end) Link to comment
#[K]iLLeR<3 Posted February 22, 2018 Share Posted February 22, 2018 addEventHandler ("onColShapeHit", getRootElement(), function(hitElement, matchingDimension) if (getElementType (hitElement) == "player") and (getElementID (source) == "greenzoneColshape") then outputChatBox ("You entered the greenzone", hitElement, 255, 0, 0, false) toggleControl (hitElement, "fire", false) toggleControl (hitElement, "next_weapon", false) toggleControl (hitElement, "previous_weapon", false) toggleControl (hitElement, "sprint", false) toggleControl (hitElement, "aim_weapon", false) toggleControl (hitElement, "vehicle_fire", false) toggleControl (hitElement, "vehicle_look_left", false) toggleControl (hitElement, "vehicle_look_right", false) toggleControl (hitElement, "vehicle_previous_weapon", false) toggleControl (hitElement, "vehicle_next_weapon", false) toggleControl (hitElement, "vehicle_secondary_fire", false) showPlayerHudComponent (hitElement, "ammo", false) showPlayerHudComponent (hitElement, "weapon", false) triggerClientEvent (hitElement, "enableGodMode", hitElement) end if (source == moneyZoneCol) and (getElementType (hitElement) == "vehicle") then setElementVelocity (hitElement, 0, 0, 0) setElementPosition (hitElement, 2018.33, 1534.77, 12.37) setVehicleRotation (hitElement, 0,0,270) if (getVehicleOccupant (hitElement, 0)) then outputChatBox ("You can't enter the moneyzone with your car!", getVehicleOccupant (hitElement, 0), 255, 0, 0, false) end end end) addEventHandler ("onColShapeLeave", getRootElement(), function(leaveElement, matchingDimension) if (getElementType (leaveElement) == "player") and (getElementID (source) == "greenzoneColshape") then outputChatBox ("You left the greenzone", leaveElement, 255, 0, 0, false) toggleControl (leaveElement, "fire", true) toggleControl (leaveElement, "next_weapon", true) toggleControl (leaveElement, "previous_weapon", true) toggleControl (leaveElement, "sprint", true) toggleControl (leaveElement, "aim_weapon", true) toggleControl (leaveElement, "vehicle_fire", true) toggleControl (leaveElement, "vehicle_look_left", true) toggleControl (leaveElement, "vehicle_look_right", true) toggleControl (leaveElement, "vehicle_secondary_fire", true) toggleControl (leaveElement, "vehicle_next_weapon", true) toggleControl (leaveElement, "vehicle_previous_weapon", true) showPlayerHudComponent (leaveElement, "ammo", true) showPlayerHudComponent (leaveElement, "weapon", true) triggerClientEvent (leaveElement, "disableGodMode", leaveElement) end end) وعليكم السلام بنسبة لمنع خروج السلاح من السيارة يمكن ذا يفيدك اذا غلط الشباب بساعدوك Link to comment
Unknow Posted February 22, 2018 Author Share Posted February 22, 2018 3 hours ago, #[K]iLLeR<3 said: addEventHandler ("onColShapeHit", getRootElement(), function(hitElement, matchingDimension) if (getElementType (hitElement) == "player") and (getElementID (source) == "greenzoneColshape") then outputChatBox ("You entered the greenzone", hitElement, 255, 0, 0, false) toggleControl (hitElement, "fire", false) toggleControl (hitElement, "next_weapon", false) toggleControl (hitElement, "previous_weapon", false) toggleControl (hitElement, "sprint", false) toggleControl (hitElement, "aim_weapon", false) toggleControl (hitElement, "vehicle_fire", false) toggleControl (hitElement, "vehicle_look_left", false) toggleControl (hitElement, "vehicle_look_right", false) toggleControl (hitElement, "vehicle_previous_weapon", false) toggleControl (hitElement, "vehicle_next_weapon", false) toggleControl (hitElement, "vehicle_secondary_fire", false) showPlayerHudComponent (hitElement, "ammo", false) showPlayerHudComponent (hitElement, "weapon", false) triggerClientEvent (hitElement, "enableGodMode", hitElement) end if (source == moneyZoneCol) and (getElementType (hitElement) == "vehicle") then setElementVelocity (hitElement, 0, 0, 0) setElementPosition (hitElement, 2018.33, 1534.77, 12.37) setVehicleRotation (hitElement, 0,0,270) if (getVehicleOccupant (hitElement, 0)) then outputChatBox ("You can't enter the moneyzone with your car!", getVehicleOccupant (hitElement, 0), 255, 0, 0, false) end end end) addEventHandler ("onColShapeLeave", getRootElement(), function(leaveElement, matchingDimension) if (getElementType (leaveElement) == "player") and (getElementID (source) == "greenzoneColshape") then outputChatBox ("You left the greenzone", leaveElement, 255, 0, 0, false) toggleControl (leaveElement, "fire", true) toggleControl (leaveElement, "next_weapon", true) toggleControl (leaveElement, "previous_weapon", true) toggleControl (leaveElement, "sprint", true) toggleControl (leaveElement, "aim_weapon", true) toggleControl (leaveElement, "vehicle_fire", true) toggleControl (leaveElement, "vehicle_look_left", true) toggleControl (leaveElement, "vehicle_look_right", true) toggleControl (leaveElement, "vehicle_secondary_fire", true) toggleControl (leaveElement, "vehicle_next_weapon", true) toggleControl (leaveElement, "vehicle_previous_weapon", true) showPlayerHudComponent (leaveElement, "ammo", true) showPlayerHudComponent (leaveElement, "weapon", true) triggerClientEvent (leaveElement, "disableGodMode", leaveElement) end end) وعليكم السلام بنسبة لمنع خروج السلاح من السيارة يمكن ذا يفيدك اذا غلط الشباب بساعدوك شكراً بس الباقي وين الشباب ؟ Link to comment
#[K]iLLeR<3 Posted February 22, 2018 Share Posted February 22, 2018 3 hours ago, Unknow said: شكراً بس الباقي وين الشباب ؟ العفو Link to comment
#\_oskar_/# Posted February 23, 2018 Share Posted February 23, 2018 وضح فكرتك عشان اقدر اساعدك لاني مافهمتك Link to comment
Unknow Posted February 23, 2018 Author Share Posted February 23, 2018 35 minutes ago, #\_oskar_/# said: وضح فكرتك عشان اقدر اساعدك لاني مافهمتك شوف اخوي ذي حماية لمنطقة بسيرفر ابي فيها الاعب بس يقدر يتكلم و يلعب بدون اسلحة و اذا دخل فيها يصير ما معاه سلاح و اذا دخل الحماية بالدبابة او بطيارة الهانتر او الهيدرا تنقله برا الحماية تلقائي و اذا حاول يطول سلاح من السيارة ما يقدر و اذا اخذ سلاح من الوحة ما يخذ ولا حتى يقدر يصوب بالحماية ادري صعبة بس انتم كفو Link to comment
#\_oskar_/# Posted February 23, 2018 Share Posted February 23, 2018 منطقه واحده ولا اكثر من منطقه ؟ Link to comment
Unknow Posted February 23, 2018 Author Share Posted February 23, 2018 30 minutes ago, #\_oskar_/# said: منطقه واحده ولا اكثر من منطقه ؟ اكثر اسف على التأخير Link to comment
#\_oskar_/# Posted February 24, 2018 Share Posted February 24, 2018 اعذرني ع التأخير ف الرد كنت مشغول ـــ المهم هات مود اللي يخليك تصوب من السياره Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now