King12 Posted August 24, 2013 Share Posted August 24, 2013 السلام عليكم ياشباب انا مسوي سكربت عن الهناتر حقت الريس انا مخليه لما تجيب هنتر يحسب لك نقطه على الهنتر كيف اخليه يحسب pickup واحد بس ؟ يعني مثلاً فيه مابات تحصل فيها 10 pickup هنتر واخذها اللاعب تنحسب كل وحده منها نقطه انا ابيه اول ماياخذ الـ pickup الأولى يحسب له نقطه بعدين يقفل الإيفنت مثال لسكربت function someoneReachedHunter(number, sort, model) if sort == "vehiclechange" and model == 425 then outputChatBox('#FF9900[HUNTER] #FFFFFF' .. getPlayerName(source) .. ' #FFFFFFhas gotten the "#FF0000Hunter#FFFFFF". Sky and Water color changed!', root, 255, 255, 255, true ) setElementCollisionsEnabled(425, false) end end addEvent("onPlayerPickUpRacePickup",true) addEventHandler("onPlayerPickUpRacePickup",root,someoneReachedHunter) setTimer ( setElementCollisionsEnabled, 60000, 0) بإختصار لو واحد جب هنتر يكون بعض المابات فيها 10 هنتر pickup بجنب بعض انا ابيه اول ماياخذ pickup يحسبها له بعدين خلاص ماعاد يحسب الباقيات Link to comment
SaRy,#DanGer Posted August 24, 2013 Share Posted August 24, 2013 function someoneReachedHunter(number, sort, model) if sort == "vehiclechange" and model == 1 then outputChatBox('#FF9900[HUNTER] #FFFFFF' .. getPlayerName(source) .. ' #FFFFFFhas gotten the "#FF0000Hunter#FFFFFF". Sky and Water color changed!', root, 255, 255, 255, true ) setElementCollisionsEnabled(1, false) end end addEvent("onPlayerPickUpRacePickup",true) addEventHandler("onPlayerPickUpRacePickup",root,someoneReachedHunter) setTimer ( setElementCollisionsEnabled, 60000, 0) ماعرفت له بس جرب Link to comment
King12 Posted August 24, 2013 Author Share Posted August 24, 2013 function someoneReachedHunter(number, sort, model) if sort == "vehiclechange" and model == 1 then outputChatBox('#FF9900[HUNTER] #FFFFFF' .. getPlayerName(source) .. ' #FFFFFFhas gotten the "#FF0000Hunter#FFFFFF". Sky and Water color changed!', root, 255, 255, 255, true ) setElementCollisionsEnabled(1, false) end end addEvent("onPlayerPickUpRacePickup",true) addEventHandler("onPlayerPickUpRacePickup",root,someoneReachedHunter) setTimer ( setElementCollisionsEnabled, 60000, 0) ماعرفت له بس جرب يالحبيب انت خليت الأي دي حقت المركبه لـ 1 آنا آبيه اول مايلمس الهنتر يطلع له مره وحده بالشات لآنه دايم لما ياخذ 10 هناتر بجنب بعض يسوي ازعاج بالشات انا ابيه اول ماياخذ 10 هناتر يحسب له وحده بس ! Link to comment
SaRy,#DanGer Posted August 24, 2013 Share Posted August 24, 2013 اها عرفت .. بس على التوب اله جايبه يعني مثلا توب ١ يعطيك ٥ او ١٠ بس التوب الاخير جرب يعطيك كم نقطه Link to comment
iMr.Dawix~# Posted August 24, 2013 Share Posted August 24, 2013 جرب haveAtop = {} function someoneReachedHunter(number, sort, model) if haveAtop[source] == 1 then return end if sort == "vehiclechange" and model == 425 then haveAtop[source] = 1 outputChatBox('#FF9900[HUNTER] #FFFFFF' .. getPlayerName(source) .. ' #FFFFFFhas gotten the "#FF0000Hunter#FFFFFF". Sky and Water color changed!', root, 255, 255, 255, true ) setElementCollisionsEnabled(425, false) end end addEvent("onPlayerPickUpRacePickup",true) addEventHandler("onPlayerPickUpRacePickup",root,someoneReachedHunter) setTimer ( setElementCollisionsEnabled, 60000, 0) Link to comment
King12 Posted August 24, 2013 Author Share Posted August 24, 2013 جرب haveAtop = {} function someoneReachedHunter(number, sort, model) if haveAtop[source] == 1 then return end if sort == "vehiclechange" and model == 425 then haveAtop[source] = 1 outputChatBox('#FF9900[HUNTER] #FFFFFF' .. getPlayerName(source) .. ' #FFFFFFhas gotten the "#FF0000Hunter#FFFFFF". Sky and Water color changed!', root, 255, 255, 255, true ) setElementCollisionsEnabled(425, false) end end addEvent("onPlayerPickUpRacePickup",true) addEventHandler("onPlayerPickUpRacePickup",root,someoneReachedHunter) setTimer ( setElementCollisionsEnabled, 60000, 0) انت مخليه اذا جاب توب1 صح ؟ Link to comment
./BlackBird# Posted August 24, 2013 Share Posted August 24, 2013 getHan = {} function someoneReachedHunter(number, sort, model) if getHan[source] then return end if sort == "vehiclechange" and model == 425 then getHan[source] = true outputChatBox('#FF9900[HUNTER] #FFFFFF' .. getPlayerName(source) .. ' #FFFFFFhas gotten the "#FF0000Hunter#FFFFFF". Sky and Water color changed!', root, 255, 255, 255, true ) setElementCollisionsEnabled(getPedOccupiedVehicle(source), false) end end addEventHandler("onPlayerPickUpRacePickup",root,someoneReachedHunter) addEventHandler("onMapStarting",root, function () for _,v in ipairs(getElementsByType("player")) do getHan [v] = false setElementCollisionsEnabled(getPedOccupiedVehicle(v), false) end end ) Link to comment
huss97 Posted August 24, 2013 Share Posted August 24, 2013 استخدم setTimer removeEventHandler Link to comment
iMr.Dawix~# Posted August 24, 2013 Share Posted August 24, 2013 getHan = {} function someoneReachedHunter(number, sort, model) if getHan[source] then return end if sort == "vehiclechange" and model == 425 then getHan[source] = true outputChatBox('#FF9900[HUNTER] #FFFFFF' .. getPlayerName(source) .. ' #FFFFFFhas gotten the "#FF0000Hunter#FFFFFF". Sky and Water color changed!', root, 255, 255, 255, true ) setElementCollisionsEnabled(getPedOccupiedVehicle(source), false) end end addEventHandler("onPlayerPickUpRacePickup",root,someoneReachedHunter) addEventHandler("onMapStarting",root, function () for _,v in ipairs(getElementsByType("player")) do getHan [v] = false setElementCollisionsEnabled(getPedOccupiedVehicle(v), false) end end ) ناقصك addEvent جرب haveAtop = {} function someoneReachedHunter(number, sort, model) if haveAtop[source] == 1 then return end if sort == "vehiclechange" and model == 425 then haveAtop[source] = 1 outputChatBox('#FF9900[HUNTER] #FFFFFF' .. getPlayerName(source) .. ' #FFFFFFhas gotten the "#FF0000Hunter#FFFFFF". Sky and Water color changed!', root, 255, 255, 255, true ) setElementCollisionsEnabled(425, false) end end addEvent("onPlayerPickUpRacePickup",true) addEventHandler("onPlayerPickUpRacePickup",root,someoneReachedHunter) setTimer ( setElementCollisionsEnabled, 60000, 0) انت مخليه اذا جاب توب1 صح ؟ خليته بس لو اخذ الهنتر رح ينضاف له بالجدول رقم 1 واذا رجع مره ثانيه وكان معه رقم 1 ما يكمل الوظيفه استخدم setTimer removeEventHandler بهذي الحركه بيكون للاعب واحد بس اذا قصدك انه يشيل الحدث بعدين يرجعه بيروح بعيد وبيرجع للهنتر مره ثانيه 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