Jump to content

ضبطولي مود اللفل+مومسروق |تمت الافداةة من قبل ابو شنب


Recommended Posts

السلامم عليكم ورحمةة الله

لو ممكن تخلونلي هال الكود

ما يركب السياره الاا الي لفلة 5

مود الافل

setTimer(flucht_stop_func,5000,-1) 
  
  
function enterVeh ( player,seat) 
 if seat == 0 then 
  local lvl = getElementData(player,"Level") 
  if lvl >= 5 then 
  else 
   removePedFromVehicle(player) 
   outputChatBox("You can only level 5 driving",player,125,0,0) 
  end 
 end 
end 
addEventHandler("onVehicleEnter",getRootElement(),enterVeh) 
  
  
function onDeathmatchStart () 
 local time = getRealTime() 
 local hours = time.hour 
 local minutes = time.minute 
 setTime(hours,minutes) 
end 
addEventHandler("onResourceStart",getResourceRootElement(getThisResource()),onDeathmatchStart) 
  
  
function setData_func ( player, data, value ) 
 if player then 
  setElementData(player,data,value) 
  local acc = getPlayerAccount(player) 
  if not isGuestAccount(acc) then 
   setElementData(acc,data,value) 
  end 
 end 
end 
addEvent("setData",true) 
addEventHandler("setData",getRootElement(),setData_func) 

Edited by Guest
Link to comment

  
-- # Server Side ! 
function enterVeh (player,seat,_) 
local lvl = getElementData(player,"Level") 
if seat == 0 and lvl == 5 then 
outputChatBox("Welcome In Car",player,255,0,0,true) 
else 
cancelEvent () 
outputChatBox("You can only level 5 driving",player,125,0,0) 
 end 
end 
addEventHandler("onVehicleEnter",getRootElement(),enterVeh) 
  

لا هنت المرة الجاية استخدم Lua عند طرح الكود وشكرا .. :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...