Jump to content

طلب سكربت او اكواد


Recommended Posts

السلام عليكم و رحمة الله و بركاته ابي شرح اذا اللاعب في عالم وهمي 5 مثلا

لوحة الادمن ما تفتح

هذا طلبي | حاولت ما ظبط

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

Link to comment

تراها سهلة جداً

باديك الفنكشنات والطريقة

  
  
'onClientKey' -- حدث عند ضغط الزر 
getElementDimension -- تحقق انه في العالم 5  
-- تحقق انه ضغط زر P 
-- سوي كانسل ايفينت 
cancelEvent 
  
  

Link to comment

تراها سهلة جداً

باديك الفنكشنات والطريقة

  
  
'onClientKey' -- حدث عند ضغط الزر 
getElementDimension -- تحقق انه في العالم 5  
-- تحقق انه ضغط زر P 
-- سوي كانسل ايفينت 
cancelEvent 
  
  

ممكن مثال

يعني اكتبه لي لاني مب عارف دخلت الويكي كلام كتييير

Link to comment

يخي حاول ماتقدر ؟

  
addEventHandler("onClientKey",root,function ( Btn , Prees ) if Btn == "P" and Prees and getElementDimension(source) == 5 then return cancelEvent () end 
end) 
  

هذا اقل من 3 اسطر تسويه

ما ظط سويت ملف كلنت و حطييت الاكواد واللوحة تشتغل

Link to comment

اكود هدا مجربه و يخدم

addEventHandler("onClientKey",root, 
function ( button , press ) if button == "F1" and press and getElementDimension(localPlayer) == 5 then   
  
cancelEvent ()  
  
end 
  
end 
  
) 
  
  
addCommandHandler("77", 
function () 
  
setElementDimension(localPlayer,5) 
  
end 
  
) 

اكتب في اف8 77

وبعدين جرب اضغط اف1

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