Jump to content

مشكله بالريس


King12

Recommended Posts

السلام عليكم

ياشباب انا مسوي سكربت عن الهناتر حقت الريس

انا مخليه لما تجيب هنتر يحسب لك نقطه على الهنتر

كيف اخليه يحسب 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
  
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
  
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

جرب

 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

جرب

 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
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
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 
  
  

بهذي الحركه بيكون للاعب واحد بس

اذا قصدك انه يشيل الحدث بعدين يرجعه بيروح بعيد وبيرجع للهنتر مره ثانيه :mrgreen:

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...