Jump to content

طلب كود


Recommended Posts

Posted

سلام عليكم ابي كود

اليضعط حرف 'm'

ويشاور علي واحد

يطلع له لوحه

يعني كود الفتح

اليضعط حرف m

ويشاور علي اللاعب يطلع لع اللوحه

ابي الكود جاهز @_@؟

Posted
"onClientCursorMove" 

فيه بارمترات للاحدثيات

خليه لما يحرك الماوس يجيب الاحدثيات اللي هو واقف عليها بعدين يجيب

اقرب لاعب عن طريق لوب

بستعمال

getDistanceBetweenPoints3D 

--

ويشاور علي واحد

يشاور و ليس يضغط ^

 

 

Posted

انت ما فهمني

انا عاوز كود اليضعط حرف 'm'

يطلع له ماوس السهم و يشاوي علي واحد ب الماوس يطلع له اللوحه

زي كود bindkey

Posted
انت ما فهمني

انا عاوز كود اليضعط حرف 'm'

يطلع له ماوس السهم و يشاوي علي واحد ب الماوس يطلع له اللوحه

زي كود bindkey

يب ادري

استعمل حدث

onClientCursorMove

واستعمل البارمترات و هات احدثيات المكان اللي الماوس مشاور فيه

بعدين اعمل لوب و هات اقرب لاعب للاحدثيات دي و بشرط كمان انه ميكنش ابعد عن الماوس

كيف تجيب المسافة بين منتطقين؟

getDistanceBetweenPoints3D 

 

 

Posted
ممكن الكود جاهز؟

قصدك مـثـل CIT ..

لو أحد فينا سوى المود حقهم كان يقدر يبيعهه بسـعر الي يبغاه !!

م أظن حد بيسويلك إياه بلاش + تعلم من نفسك وحاول وبيساعدوك أما جاهز ماحد بيعطيك

Posted (edited)

الرجال قصده , زي سيرفر محترفين جراند حق المولتي

لما يضغط حرف M

يفتح له الماوس فقط .. واذا شاف لاعب يضغط عليه وتفتح نافذة

' طبعا لقروب الشرطي ويقدر يغيره '

تفضل

Server :

  
addEvent("check",true) 
addEventHandler("check",root, 
    function() 
        local acc=getPlayerAccount(client) 
        if(isObjectInACLGroup("user."..getAccountName(acc),aclGetGroup("Police"))) then -- أسم القروب 
            triggerClientEvent(client,"openre",client) 
        end 
    end 
) 
  
  
addEventHandler( "onElementClicked",root, 
function (  x, y, p ) 
triggerClientEvent ( p, "openGui",p) 
end 
) 

Client :

function strong ( ) 
guiSetVisible (WndName, true) 
showCursor (true) 
end 
addEvent( "openGui", true ) 
addEventHandler( "openGui",root,strong) 
  
bindKey( "M", "down", 
function() 
    triggerServerEvent ( "check", localPlayer ) 
    guiSetVisible ( WndName, not guiGetVisible ( wndName ) ) 
    showCursor ( guiGetVisible ( WndName ) ) 
 end) 

Edited by Guest
Quote

"I ain't saying I'm the best, but I should be in the top ten; give me a list of names, I'ma top them,
I'm just playing with ya. I don't care where the top is,
Leave me at the bottom, let me work for it.
"

 

_________________________________________________________________________________________________________________

ACM

90183-bed46f22aafe8af7dc65cdd73fff2f76-medium_jpg.jpg?buster=1481325396W_#9661

Posted (edited)
تصحيح ^
  
addEventHandler( "onElementClicked",root, 
function (  x, y, z ) 
triggerClientEvent ( source, "openGui ,source") 
end 
) 

ولكم باك سترونق ^.^

triggerClientEvent ( source, "openGui" ,source ) 

ثانكس .. بس راح ارجع انحظر حبيت اساعده واطلع

Edited by Guest
Quote

"I ain't saying I'm the best, but I should be in the top ten; give me a list of names, I'ma top them,
I'm just playing with ya. I don't care where the top is,
Leave me at the bottom, let me work for it.
"

 

_________________________________________________________________________________________________________________

ACM

90183-bed46f22aafe8af7dc65cdd73fff2f76-medium_jpg.jpg?buster=1481325396W_#9661

Posted

+ سؤال وش فايدة x,y,z ؟

Parameters

لأيفينت

onElementClicked 

يجيب احداثيات اللاعب الي ضغط عليه

Quote

"I ain't saying I'm the best, but I should be in the top ten; give me a list of names, I'ma top them,
I'm just playing with ya. I don't care where the top is,
Leave me at the bottom, let me work for it.
"

 

_________________________________________________________________________________________________________________

ACM

90183-bed46f22aafe8af7dc65cdd73fff2f76-medium_jpg.jpg?buster=1481325396W_#9661

Posted

@ ♯~|StrΘnG|~

كودكك راح يفتح للوحة للالمنت الي انضغط عليه

string mouseButton, string buttonState, player playerWhoClicked, float clickPosX, float clickPosY, float clickPosZ

+ البارتمنز ال3 هو الاعب الي ضغط على الالمنت

وعندك خطأ بالكلينت سطر 2

V مفروض تكون v

[ Skype : kreee89 - Discord : Abdul_KariM#1326 / طلبات البرمجة

https://www.paypal.me/AbdulKariMx / اذا حاب تدعمني

Posted
@ ♯~|StrΘnG|~

كودكك راح يفتح للوحة للالمنت الي انضغط عليه

string mouseButton, string buttonState, player playerWhoClicked, float clickPosX, float clickPosY, float clickPosZ

+ البارتمنز ال3 هو الاعب الي ضغط على الالمنت

وعندك خطأ بالكلينت سطر 2

V مفروض تكون v

تسلم على التنبيه , خطأ مطبعي

+

هو كذا قصده على ما اظن

Quote

"I ain't saying I'm the best, but I should be in the top ten; give me a list of names, I'ma top them,
I'm just playing with ya. I don't care where the top is,
Leave me at the bottom, let me work for it.
"

 

_________________________________________________________________________________________________________________

ACM

90183-bed46f22aafe8af7dc65cdd73fff2f76-medium_jpg.jpg?buster=1481325396W_#9661

Posted
bindKey( "M", "down", 
function() 
    triggerServerEventEvent ( localPlayer, "check") 
    guiSetVisible ( WndName, not guiGetVisible ( wndName ) ) 
    showCursor ( guiGetVisible ( WndName ) ) 
end) 

triggerServerEvent ( "check", localPlayer ) 

* There is no God but Allah, Mohammed is the Messenger Of Allah

Posted
bindKey( "M", "down", 
function() 
    triggerServerEventEvent ( localPlayer, "check") 
    guiSetVisible ( WndName, not guiGetVisible ( wndName ) ) 
    showCursor ( guiGetVisible ( WndName ) ) 
end) 

triggerServerEvent ( "check", localPlayer ) 

مشكور على التنبيه

Quote

"I ain't saying I'm the best, but I should be in the top ten; give me a list of names, I'ma top them,
I'm just playing with ya. I don't care where the top is,
Leave me at the bottom, let me work for it.
"

 

_________________________________________________________________________________________________________________

ACM

90183-bed46f22aafe8af7dc65cdd73fff2f76-medium_jpg.jpg?buster=1481325396W_#9661

Posted

الرجال قصده , زي سيرفر محترفين جراند حق المولتي

لما يضغط حرف M

يفتح له الماوس فقط .. واذا شاف لاعب يضغط عليه وتفتح نافذة

' طبعا لقروب الشرطي ويقدر يغيره '

تفضل

Server :

  
addEvent("check",true) 
addEventHandler("check",root, 
    function() 
        local acc=getPlayerAccount(client) 
        if(isObjectInACLGroup("user."..getAccountName(acc),aclGetGroup("Police"))) then -- أسم القروب 
            triggerClientEvent(client,"openre",client) 
        end 
    end 
) 
  
  
addEventHandler( "onElementClicked",root, 
function (  x, y, p ) 
triggerClientEvent ( p, "openGui",p) 
end 
) 

Client :

function strong ( ) 
guiSetVisible (WndName, true) 
showCursor (true) 
end 
addEvent( "openGui", true ) 
addEventHandler( "openGui",root,strong) 
  
bindKey( "M", "down", 
function() 
    triggerServerEvent ( localPlayer, "check") 
    guiSetVisible ( WndName, not guiGetVisible ( wndName ) ) 
    showCursor ( guiGetVisible ( WndName ) ) 
 end) 

الكود غلط للاسف

لا اله الا انت سبحانك اني كنت من الظالمين

TehLMGN.png?1

My Group : https://www.facebook.com/groups/992678147519191/

Posted

الرجال قصده , زي سيرفر محترفين جراند حق المولتي

لما يضغط حرف M

يفتح له الماوس فقط .. واذا شاف لاعب يضغط عليه وتفتح نافذة

' طبعا لقروب الشرطي ويقدر يغيره '

تفضل

Server :

  
addEvent("check",true) 
addEventHandler("check",root, 
    function() 
        local acc=getPlayerAccount(client) 
        if(isObjectInACLGroup("user."..getAccountName(acc),aclGetGroup("Police"))) then -- أسم القروب 
            triggerClientEvent(client,"openre",client) 
        end 
    end 
) 
  
  
addEventHandler( "onElementClicked",root, 
function (  x, y, p ) 
triggerClientEvent ( p, "openGui",p) 
end 
) 

Client :

function strong ( ) 
guiSetVisible (WndName, true) 
showCursor (true) 
end 
addEvent( "openGui", true ) 
addEventHandler( "openGui",root,strong) 
  
bindKey( "M", "down", 
function() 
    triggerServerEvent ( localPlayer, "check") 
    guiSetVisible ( WndName, not guiGetVisible ( wndName ) ) 
    showCursor ( guiGetVisible ( WndName ) ) 
 end) 

الكود غلط للاسف

صححه طيب ؟

وين الغلط بأي سطر ؟

Quote

"I ain't saying I'm the best, but I should be in the top ten; give me a list of names, I'ma top them,
I'm just playing with ya. I don't care where the top is,
Leave me at the bottom, let me work for it.
"

 

_________________________________________________________________________________________________________________

ACM

90183-bed46f22aafe8af7dc65cdd73fff2f76-medium_jpg.jpg?buster=1481325396W_#9661

Posted

--

-- Client Side --

bindKey( "M", "down", 
function() 
    triggerServerEvent ( "check", localPlayer ) 
    guiSetVisible ( WndName, not guiGetVisible ( wndName ) ) 
    showCursor ( guiGetVisible ( WndName ) ) 
end) 

-- Server Side --

addEvent("check",true) 
addEventHandler("check",root, 
    function() 
        local acc=getPlayerAccount(client) 
        if(isObjectInACLGroup("user."..getAccountName(acc),aclGetGroup("Police"))) then 
            triggerClientEvent(client,"openre",client) 
        end 
    end 
) 
  
  
addEventHandler( "onElementClicked",root, 
function (  x, y, z ) 
triggerClientEvent ( source, "openGui ,source") 
end 
) 

 

قد تكونآمنيآتنآ حزينه !وآحلآمُنآ ملت طآبور آلإنتِظآر لكنهآ ،تتشبث بآلأمل فنفوسُنآ خُلقت لتقول غداً آجمل B-18.png 

Posted

بملفت سيرفر حدث الضغط ع الالمنت مو مسوي تحقق ان اللى اشر عليه سياراه او لاعب

وبملف كلنت مسوي اللى يضغط حرف ال m تفتح له اللوحه

والماوز مو مسوي له اخفاء بعد اظهاره

ذا اللى لاحظته بالكود

لا اله الا انت سبحانك اني كنت من الظالمين

TehLMGN.png?1

My Group : https://www.facebook.com/groups/992678147519191/

Posted
--

-- Client Side --

bindKey( "M", "down", 
function() 
    triggerServerEvent ( "check", localPlayer ) 
    guiSetVisible ( WndName, not guiGetVisible ( wndName ) ) 
    showCursor ( guiGetVisible ( WndName ) ) 
end) 

-- Server Side --

addEvent("check",true) 
addEventHandler("check",root, 
    function() 
        local acc=getPlayerAccount(client) 
        if(isObjectInACLGroup("user."..getAccountName(acc),aclGetGroup("Police"))) then 
            triggerClientEvent(client,"openre",client) 
        end 
    end 
) 
  
  
addEventHandler( "onElementClicked",root, 
function (  x, y, z ) 
triggerClientEvent ( source, "openGui ,source") 
end 
) 

تعديلك غلط ذذ

Quote

"I ain't saying I'm the best, but I should be in the top ten; give me a list of names, I'ma top them,
I'm just playing with ya. I don't care where the top is,
Leave me at the bottom, let me work for it.
"

 

_________________________________________________________________________________________________________________

ACM

90183-bed46f22aafe8af7dc65cdd73fff2f76-medium_jpg.jpg?buster=1481325396W_#9661

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