Ahmed toap Posted June 11, 2017 Share Posted June 11, 2017 السلام عليكم عندي مشكلة في كود منع اخراج اللوحات في اليدربي و برضو تطلع client انا احطه في ملف ها هو الكود (شكرا buttons = { ['F1'] = true, ['F3'] = true, ['b'] = true, ['F4'] = true, ['F5'] = true, ['F6'] = true, ['F7'] = true, ['F9'] = true, ['p'] = true, ['h'] = true, } addEventHandler( 'onClientKey',root, function ( Player, button, prees ) if not getPlayerSerial ( Player ) == 'A8DACEB58D5778E96830D652B8950384' then if prees and getElementDimension ( localPlayer ) == 30 then if buttons [ button ] then outputChatBox ( 'غير مصرح لك بفتح اللوحة',255,0,0 ) cancelEvent ( ) end end outputChatBox ( 'تم فتح اللوحة',0,255,0 ) end end ) Link to comment
AE. Posted June 11, 2017 Share Posted June 11, 2017 ماينفع getPlayerSerial هاده سيرفر ماينفع تحطها ف الكلينت Link to comment
Ahmed toap Posted June 11, 2017 Author Share Posted June 11, 2017 مشكور على الرد ممكن تصحيح للكود من فضلك و شكرا ساعدوني محتاج الكود والله Link to comment
Ahmed toap Posted June 12, 2017 Author Share Posted June 12, 2017 (edited) انا لقيته و اخت منه الكود ما نجح عشان كدا سويت موضوع جربت كل الاكود حق الموضوع و ما نجح Edited June 12, 2017 by Ahmed toap Link to comment
Kara Posted June 12, 2017 Share Posted June 12, 2017 11 hours ago, 3laa33 said: ماينفع getPlayerSerial هاده سيرفر ماينفع تحطها ف الكلينت ينفع ينحط في الكلينت لاكن بدون ارقمنت جررب buttons = { ['F1'] = true, ['F3'] = true, ['b'] = true, ['F4'] = true, ['F5'] = true, ['F6'] = true, ['F7'] = true, ['F9'] = true, ['p'] = true, ['h'] = true, } addEventHandler( 'onClientKey',root, function ( Player, button, prees ) if not getPlayerSerial () == 'A8DACEB58D5778E96830D652B8950384' then if prees and getElementDimension ( localPlayer ) == 30 then if buttons [ button ] then outputChatBox ( 'غير مصرح لك بفتح اللوحة',255,0,0 ) cancelEvent ( ) end end outputChatBox ( 'تم فتح اللوحة',0,255,0 ) end end ) Link to comment
Ahmed toap Posted June 12, 2017 Author Share Posted June 12, 2017 برضو لا buttons = { ['F1'] = true, ['F3'] = true, ['b'] = true, ['F4'] = true, ['F5'] = true, ['F6'] = true, ['F7'] = true, ['F9'] = true, ['p'] = true, ['h'] = true, } addEventHandler( 'onClientKey',root, function ( Player, button, prees ) if not getPlayerSerial () == 'A8DACEB58D5778E96830D652B8950384' then if prees and getElementDimension ( localPlayer ) == 30 then if buttons [ button ] then outputChatBox ( 'غير مصرح لك بفتح اللوحة',255,0,0 ) cancelEvent ( ) end end outputChatBox ( 'تم فتح اللوحة',0,255,0 ) end end ) addEventHandler("onClientRender",getRootElement(),function() if tostring(getElementData(getLocalPlayer(),"onCrossMap")) == "yes" then setWorldSpecialPropertyEnabled("aircars", false) setWorldSpecialPropertyEnabled("extrajump", false) setWorldSpecialPropertyEnabled("hovercars", false) end end) ها هو الكلنت Link to comment
iMr.WiFi..! Posted June 12, 2017 Share Posted June 12, 2017 (edited) addEventHandler ( "onClientKey", root, function ( key ) if tostring(getElementData(getLocalPlayer(),"onCrossMap")) == "yes" then for i=1,4 do if key == "F"..i then cancelEvent ( ) end end for i=6,9 do if key == "F"..i then cancelEvent ( ) end end end end ) كود انا مسويه قديم , حطه في الكلاينت أو addEventHandler ( "onClientKey", root, function ( key ) if tostring(getElementData(getLocalPlayer(),"onCrossMap")) == "yes" then if key:find("F") or key == "p" or key == "b" then cancelEvent ( ) end end end ) Edited June 12, 2017 by iMr.WiFi..! 1 Link to comment
Ahmed toap Posted June 13, 2017 Author Share Posted June 13, 2017 (edited) شكرا حبي Edited June 13, 2017 by Ahmed toap Link to comment
iMr.WiFi..! Posted June 13, 2017 Share Posted June 13, 2017 4 hours ago, Ahmed toap said: شكرا حبي عفواً , <3 1 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