AboShanab Posted May 25, 2013 Share Posted May 25, 2013 (edited) السلام عليكم ورحمة الله وبركاته .. ! معي مششكلة مسسوي مود اسمه الرخصصة ابي اذا واحد ما معه رخصصه ما يمديه يدخل الموتر ..! طبعا انا بعطيكم الخطا بس !! addEvent("Give",true) addEventHandler("Give",root, function (text) local player = getPlayerFromName(text) if ( player ) then setElementData(player,"JoinToCar",true) outputChatBox("تم اعطاء الاعب رخصة بنجاح",source,255,0,0,true) outputChatBox("تم اعطاءك رخصة من قبل الشرطي".. getPlayerName(source),player,255,0,0,true) end end ) ------------------- addEventHandler("onPlayerVehicleEnter",root, function (player) if getElementData(player,"JoinToCar") == true then outputChatBox("ولككم منور ابو الموتر",player,255,0,0,true) else cancelEvent() outputChatBox("ليس لديك رخصة",player,255,0,0,true) end end ) وشكرا ! Edited May 25, 2013 by Guest Link to comment
K1NG Posted May 25, 2013 Share Posted May 25, 2013 addEvent ( "Give", true ) addEventHandler ( "Give",root, function ( text ) local player = getPlayerFromName ( text ) if ( player ) then setElementData ( player, "JoinToCar", true ) outputChatBox ( "تم اعطاء الاعب رخصة بنجاح", source, 255, 0, 0, true ) outputChatBox ( "تم اعطاءك رخصة من قبل الشرطي" .. getPlayerName ( source ), player, 255, 0, 0, true ) end end ) ------------------- addEventHandler ( "onVehicleStartEnter",root, function ( player ) if ( getElementData ( player, "JoinToCar" ) == true ) then outputChatBox ( "ولككم منور ابو الموتر", player, 255, 0, 0, true ) else cancelEvent ( ) outputChatBox ( "ليس لديك رخصة", player, 255, 0, 0, true ) end end ) Link to comment
AboShanab Posted May 25, 2013 Author Share Posted May 25, 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