Jump to content

كود مهم


Recommended Posts

Posted
13 minutes ago, #BrosS said:

getCursorPosition

 

الفنكشن خطأ, الصحيح

onElementClicked

  • Like 1

 

 

Posted
function elementClicked( theButton, theState, thePlayer )
    if theButton == "left" and theState == "down" then -- if left mouse button was pressed down
        outputChatBox( "You clicked " .. getElementType( source ), thePlayer ) -- print the element type to players chatbox
    end
end
addEventHandler( "onElementClicked", getRootElement(), elementClicked ) -- add a handler function for the event

 

 

 

Posted
1 minute ago, N3xT said:

function elementClicked( theButton, theState, thePlayer )
    if theButton == "left" and theState == "down" then -- if left mouse button was pressed down
        outputChatBox( "You clicked " .. getElementType( source ), thePlayer ) -- print the element type to players chatbox
    end
end
addEventHandler( "onElementClicked", getRootElement(), elementClicked ) -- add a handler function for the event

 

ذا نفس اللي بالويكي ضض

 

طيب بحاول في

 

Posted
6 minutes ago, N3xT said:

الفنكشن خطأ, الصحيح

onElementClicked

شكرا ضض

جات عبالي حطيتها مافهمت طلبه

من أراد الفشل عليه بالنجاح

Posted
1 hour ago, #BrosS said:

شكرا ضض

جات عبالي حطيتها مافهمت طلبه

 

1 hour ago, #BrosS said:

شكرا ضض

جات عبالي حطيتها مافهمت طلبه

local accName = getAccountName(getPlayerAccount(player))
addEventHandler("onElementClicked", root,
	function( theButton, theState, thePlayer )
		if theButton == "left" and theState == "down" then
		if isObjectInACLGroup("user."..accName, aclGetGroup("Police") ) then
		triggerClientEvent(source, "tr", source)
		end
		end
	end
)

يقول في مشكله في 

getAccountName

ليه؟؟؟
 

Posted

player غير معرفة

وفيه تخبيص وترسل الترايقر بالشي اللي ضغطت عليه مو اللاعب

من أراد الفشل عليه بالنجاح

Posted
7 minutes ago, #BrosS said:

player غير معرفة

وفيه تخبيص وترسل الترايقر بالشي اللي ضغطت عليه مو اللاعب

عدلها طيب

؟؟؟؟

Posted
  1. addEventHandler("onElementClicked", root,
  2. function( theButton, theState, thePlayer )
  3.  
  4. local accName = getAccountName(getPlayerAccount(thePlayer))
  5. if theButton == "left" and theState == "down" then
  6. if isObjectInACLGroup("user."..accName, aclGetGroup("Police") ) then
  7. triggerClientEvent(source, "tr", source)
  8. end
  9. end
  10. end
  11. )

سهل على نفسك الامر طلبك غير مشفر هنا

http://www.mtaarabs.com/vb/showthread.php?t=1157

Skype 01100001 01101100 01101001 01011111 01101101 01110100 00110001 00111001 00111001 00111001

every thing is gonna be alright

every thing is gonna be okay

it's gonna be a good good life

that's what my therapist say

Posted
7 minutes ago, Master_MTA said:
  1. addEventHandler("onElementClicked", root,
  2. function( theButton, theState, thePlayer )
  3.  
  4. local accName = getAccountName(getPlayerAccount(thePlayer))
  5. if theButton == "left" and theState == "down" then
  6. if isObjectInACLGroup("user."..accName, aclGetGroup("Police") ) then
  7. triggerClientEvent(source, "tr", source)
  8. end
  9. end
  10. end
  11. )

شكرا لك

+

addEvent("veh",true)
addEventHandler("veh",root,
	function (player)
		local veh = getPedOccupiedVehicle(player)
		destroyElement(veh)
	end
	end
)

هل فيه خطأ

 

Posted
Just now, A7MEDENO said:

شكرا لك

+


addEvent("veh",true)
addEventHandler("veh",root,
	function (player)
		local veh = getPedOccupiedVehicle(player)
		destroyElement(veh)
	end
	end
)

هل فيه خطأ

 

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

Skype 01100001 01101100 01101001 01011111 01101101 01110100 00110001 00111001 00111001 00111001

every thing is gonna be alright

every thing is gonna be okay

it's gonna be a good good life

that's what my therapist say

Posted
Just now, Master_MTA said:

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

addEventHandler("onClientGUIClick", root,
	function()
		if source == GUIEditor.button[2] then
			if isPedInVehicle(player) then
				triggerServerEvent("veh",localPlayer)
			else
				outputChatBox("اللاعب لا يملك سيارة",255,0,0,true)
			end
		end
	end
)	

معرف؟؟


 

Posted
5 minutes ago, Master_MTA said:
  1. addEvent("veh",true)
  2. addEventHandler("veh",root,
  3. function ()
  4. local veh = getPedOccupiedVehicle(source)
  5. destroyElement(veh)
  6. end
  7. end
  8. )

thx

بس به مشكلة ثانية

انا سويت ان للاعب تنسحب سيارتة

else

في الشات اللاعب لا يملك سيارة

بس لما سويت الس صار لما يضغط على اي لوحه تجي هالكلمة

؟؟؟؟؟؟؟؟؟؟

Posted
1 minute ago, A7MEDENO said:

thx

بس به مشكلة ثانية

انا سويت ان للاعب تنسحب سيارتة

else

في الشات اللاعب لا يملك سيارة

بس لما سويت الس صار لما يضغط على اي لوحه تجي هالكلمة

؟؟؟؟؟؟؟؟؟؟

ما فهمت

Skype 01100001 01101100 01101001 01011111 01101101 01110100 00110001 00111001 00111001 00111001

every thing is gonna be alright

every thing is gonna be okay

it's gonna be a good good life

that's what my therapist say

Posted
Just now, Master_MTA said:

ما فهمت

شف

addEventHandler("onClientGUIClick", root,
	function()
		if source == GUIEditor.button[2] then
				triggerServerEvent("veh",localPlayer)
		else
				outputChatBox(" اللاعب لا يملك سيارة ",255,0,0,true)
		end
	end
)	
	

بعد ما سويتها

صرت افتح اي لوحه اضغط بس عليها

يجين اللي في الشات

ان اللاعب لا يملك سيارة

Posted
1 minute ago, A7MEDENO said:

شف


addEventHandler("onClientGUIClick", root,
	function()
		if source == GUIEditor.button[2] then
				triggerServerEvent("veh",localPlayer)
		else
				outputChatBox(" اللاعب لا يملك سيارة ",255,0,0,true)
		end
	end
)	
	

بعد ما سويتها

صرت افتح اي لوحه اضغط بس عليها

يجين اللي في الشات

ان اللاعب لا يملك سيارة

وانت وش تبي تسوي؟

  1. addEventHandler("onClientGUIClick", root,
  2. function()
  3. if source == GUIEditor.button[2] then
  4. if isPedInVehicle(localPlayer) then
  5. triggerServerEvent("veh",localPlayer)
  6. else
  7. outputChatBox(" اللاعب لا يملك سيارة ",255,0,0,true)
  8. end
  9. end
  10. end
  11. )

جرب اتوقع قصدك كذا انت

Skype 01100001 01101100 01101001 01011111 01101101 01110100 00110001 00111001 00111001 00111001

every thing is gonna be alright

every thing is gonna be okay

it's gonna be a good good life

that's what my therapist say

Posted
1 minute ago, Master_MTA said:

وانت وش تبي تسوي؟

  1. addEventHandler("onClientGUIClick", root,
  2. function()
  3. if source == GUIEditor.button[2] then
  4. if isPedInVehicle(localPlayer) then
  5. triggerServerEvent("veh",localPlayer)
  6. else
  7. outputChatBox(" اللاعب لا يملك سيارة ",255,0,0,true)
  8. end
  9. end
  10. end
  11. )

يعني لما يضغط الزر لو اللاعب ما معه سيارة يقوله في الشات

 

لكن هو لو ضغط اي زر في اي لوحه برا المود

تجيه

Posted
Just now, A7MEDENO said:

يعني لما يضغط الزر لو اللاعب ما معه سيارة يقوله في الشات

 

لكن هو لو ضغط اي زر في اي لوحه برا المود

تجيه

يب رح جرب  الكود حقي بيزبط باذن الله

Skype 01100001 01101100 01101001 01011111 01101101 01110100 00110001 00111001 00111001 00111001

every thing is gonna be alright

every thing is gonna be okay

it's gonna be a good good life

that's what my therapist say

Posted
Just now, Master_MTA said:

يب رح جرب  الكود حقي بيزبط باذن الله

شكرا ظبط

 

ممكن اخر شي

 

لما اظغط مثلا حرف b

يظهرلي ماوس

ابي ارجع اظغطها عشان يخفيه ما يخفيه؟؟؟

 

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