iMr5YaLeY Posted August 26, 2013 Share Posted August 26, 2013 (edited) السلامم عليكم ورحمةة الله لو ممكن تخلونلي هال الكود ما يركب السياره الاا الي لفلة 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 August 27, 2013 by Guest Link to comment
AboShanab Posted August 26, 2013 Share Posted August 26, 2013 -- # 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 عند طرح الكود وشكرا .. Link to comment
iMr5YaLeY Posted August 27, 2013 Author Share Posted August 27, 2013 اضيفه عليه و لا استبدله ؟ 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