Jump to content

طلب كود


Recommended Posts

طيب انا

معي شيك بوكس

عاوز لما اضغط عليه

يجي دخان و لما اضغط عليه تاني يعني

اشيل التحديد يختفي الدخان

+

-----------

معي شيك بوكس

عاوز لما اضغط عليه

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

اشيل التحديد العربية تتفجر و تتكسر عادي

Link to comment

+

كددده في خطا ؟

-- Client 
addEventHandler('onClientGUIClick',root, 
function () 
if source == GUIEditor.checkbox[3] and guiComboBoxGetSelected(GUIEditor.checkbox[3]) == true then 
triggerServerEvent('Create',localPlayer) 
elseif source == GUIEditor.checkbox[3] and guiComboBoxGetSelected(GUIEditor.checkbox[3]) == false then 
triggerServerEvent('Destroy',localPlayer) 
end 
end 
) 
  

--Server 
  
addEvent('Create',true) 
addEvent('Delete',true) 
  
  
addEventHandler('Create',root, 
function (  ) 
outputChatBox('[RentSystem]: لقد تم اظهار السهم  بنجاح  ', source ,0,255,0,true ) 
local x,y,z = getElementPosition(source) 
Obj = createObject(1318,x, y + 10 , z ) 
end 
) 
  
addEventHandler('Delete',root, 
function () 
if not isElement( Obj ) then return end 
outputChatBox("[RentSystem]: تم اخفاء السهم بنجاح", source, 255, 0, 0, true)  
destroyElement( Obj ) 
end 
) 
  

Link to comment

addEvent('Create',true) 
addEvent('Delete',true) 
  
Object = {  } 
addEventHandler('Create',root, 
function ( thePlayer ) 
    outputChatBox('[RentSystem]: لقد تم اظهار السهم  بنجاح  ', thePlayer ,0 , 255, 0 , true ) 
        local Interior , Dimension , xPosition, yPosition, zPosition = getElementInterior( thePlayer ) , getElementDimension( thePlayer) , getElementPosition( thePlayer ) 
            Object[thePlayer] = createObject(1318,xPosition, yPosition + 10 , zPosition ) 
                setElementInterior( Object[thePlayer] , Interior ) 
                    setElementDimension( Object[thePlayer] , Dimension ) 
                         
end ) 
  
addEventHandler('Delete',root, 
function ( thePlayer ) 
    if ( isElement( Object[thePlayer] ) ) then 
        outputChatBox("[RentSystem]: تم اخفاء السهم بنجاح", thePlayer, 255, 0, 0, true) 
            destroyElement( Object[thePlayer] ) 
end ) 

ماجربته ~ ~ ~

Link to comment
طيب انا

معي شيك بوكس

عاوز لما اضغط عليه

يجي دخان و لما اضغط عليه تاني يعني

اشيل التحديد يختفي الدخان

+

-----------

معي شيك بوكس

عاوز لما اضغط عليه

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

اشيل التحديد العربية تتفجر و تتكسر عادي

:arrowup::arrowup::arrowup:

Link to comment

اوك بنسوي كلو هنا في هذا الموضوع

كل الي عاوزو

معي شيك بوكس

عاوز لما اضغط عليه

يجي دخان و لما اضغط عليه تاني يعني

اشيل التحديد يختفي الدخان

+

-----------

معي شيك بوكس

عاوز لما اضغط عليه

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

اشيل التحديد العربية تتفجر و تتكسر عادي

+

-------------------

معي شيك بوكس

عاوز لما اضغط عليه

يجي نيترو و لما اضغط عليه تاني يعني

اشيل التحديد يختفي النيترو

+

--------------

معي بوطن عاوز لما اضغط عليه يصلح السيارة

ايه الخطاء هنا

setTimer(function() 
guiSetProperty( GUIEditor.checkbox[1], "NormalTextColour", math.random(0,255), math.random(0,255), math.random(0,255)) 
end, 50, 0) 
  

هنا الكلام يتكرر في الشات

كلنت

--#Client 
addEventHandler("onClientGUIClick", root, 
function() 
    if source ==  GUIEditor.checkbox[2] and guiCheckBoxGetSelected( GUIEditor.checkbox[2]) == true then 
    Timer = setTimer(function() 
    triggerServerEvent("VehicleColor", localPlayer) 
    end, 500, 0) 
    elseif source ==  GUIEditor.checkbox[2] and guiCheckBoxGetSelected( GUIEditor.checkbox[2]) == false then 
    killTimer(Timer) 
    end 
end) 

سيرفر

--#Server 
addEvent("VehicleColor", true) 
addEventHandler("VehicleColor", root, 
function() 
if not isPedInVehicle(source) then 
outputChatBox("[RentSystem]: يجب ان تكون في السيارة اولا", source, 255, 0, 0, true) else 
local vehicle = getPedOccupiedVehicle(source) 
outputChatBox('[RentSystem]: لقد تم تشغيل الأوان العشوائية بنجاح  ', source ,0,255,0,true ) 
setVehicleColor(vehicle, math.random(0,255), math.random(0,255), math.random(0,255)) 
    end 
      end  ) 

هنا السهم ما يظهر

-- Client 
addEventHandler('onClientGUIClick',root, 
function () 
if source == GUIEditor.checkbox[3] and guiComboBoxGetSelected(GUIEditor.checkbox[3]) == true then 
triggerServerEvent('Create',localPlayer) 
elseif source == GUIEditor.checkbox[3] and guiComboBoxGetSelected(GUIEditor.checkbox[3]) == false then 
triggerServerEvent('Destroy',localPlayer) 
end 
end 
) 

سيرفر

addEvent('Create',true) 
addEvent('Delete',true) 
  
Object = {  } 
addEventHandler('Create',root, 
function ( thePlayer ) 
    outputChatBox('[RentSystem]: لقد تم اظهار السهم  بنجاح  ', thePlayer ,0 , 255, 0 , true ) 
        local Interior , Dimension , xPosition, yPosition, zPosition = getElementInterior( thePlayer ) , getElementDimension( thePlayer) , getElementPosition( thePlayer ) 
            Object[thePlayer] = createObject(1318,xPosition, yPosition + 10 , zPosition ) 
                setElementInterior( Object[thePlayer] , Interior ) 
                    setElementDimension( Object[thePlayer] , Dimension ) 
                        
end ) 
  
addEventHandler('Delete',root, 
function ( thePlayer ) 
    if ( isElement( Object[thePlayer] ) ) then 
        outputChatBox("[RentSystem]: تم اخفاء السهم بنجاح", thePlayer, 255, 0, 0, true) 
            destroyElement( Object[thePlayer] ) 
end 
            end ) 
  

بس

هتعبكم معي

شكرا ...

Link to comment
اوك بنسوي كلو هنا في هذا الموضوع

كل الي عاوزو

معي شيك بوكس

عاوز لما اضغط عليه

يجي دخان و لما اضغط عليه تاني يعني

اشيل التحديد يختفي الدخان

+

-----------

معي شيك بوكس

عاوز لما اضغط عليه

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

اشيل التحديد العربية تتفجر و تتكسر عادي

+

-------------------

معي شيك بوكس

عاوز لما اضغط عليه

يجي نيترو و لما اضغط عليه تاني يعني

اشيل التحديد يختفي النيترو

+

--------------

معي بوطن عاوز لما اضغط عليه يصلح السيارة

ايه الخطاء هنا

setTimer(function() 
guiSetProperty( GUIEditor.checkbox[1], "NormalTextColour", math.random(0,255), math.random(0,255), math.random(0,255)) 
end, 50, 0) 
  

هنا الكلام يتكرر في الشات

كلنت

--#Client 
addEventHandler("onClientGUIClick", root, 
function() 
    if source ==  GUIEditor.checkbox[2] and guiCheckBoxGetSelected( GUIEditor.checkbox[2]) == true then 
    Timer = setTimer(function() 
    triggerServerEvent("VehicleColor", localPlayer) 
    end, 500, 0) 
    elseif source ==  GUIEditor.checkbox[2] and guiCheckBoxGetSelected( GUIEditor.checkbox[2]) == false then 
    killTimer(Timer) 
    end 
end) 

سيرفر

--#Server 
addEvent("VehicleColor", true) 
addEventHandler("VehicleColor", root, 
function() 
if not isPedInVehicle(source) then 
outputChatBox("[RentSystem]: يجب ان تكون في السيارة اولا", source, 255, 0, 0, true) else 
local vehicle = getPedOccupiedVehicle(source) 
outputChatBox('[RentSystem]: لقد تم تشغيل الأوان العشوائية بنجاح  ', source ,0,255,0,true ) 
setVehicleColor(vehicle, math.random(0,255), math.random(0,255), math.random(0,255)) 
    end 
      end  ) 

هنا السهم ما يظهر

-- Client 
addEventHandler('onClientGUIClick',root, 
function () 
if source == GUIEditor.checkbox[3] and guiComboBoxGetSelected(GUIEditor.checkbox[3]) == true then 
triggerServerEvent('Create',localPlayer) 
elseif source == GUIEditor.checkbox[3] and guiComboBoxGetSelected(GUIEditor.checkbox[3]) == false then 
triggerServerEvent('Destroy',localPlayer) 
end 
end 
) 

سيرفر

addEvent('Create',true) 
addEvent('Delete',true) 
  
Object = {  } 
addEventHandler('Create',root, 
function ( thePlayer ) 
    outputChatBox('[RentSystem]: لقد تم اظهار السهم  بنجاح  ', thePlayer ,0 , 255, 0 , true ) 
        local Interior , Dimension , xPosition, yPosition, zPosition = getElementInterior( thePlayer ) , getElementDimension( thePlayer) , getElementPosition( thePlayer ) 
            Object[thePlayer] = createObject(1318,xPosition, yPosition + 10 , zPosition ) 
                setElementInterior( Object[thePlayer] , Interior ) 
                    setElementDimension( Object[thePlayer] , Dimension ) 
                        
end ) 
  
addEventHandler('Delete',root, 
function ( thePlayer ) 
    if ( isElement( Object[thePlayer] ) ) then 
        outputChatBox("[RentSystem]: تم اخفاء السهم بنجاح", thePlayer, 255, 0, 0, true) 
            destroyElement( Object[thePlayer] ) 
end 
            end ) 
  

بس

هتعبكم معي

شكرا ...

مساعده

:arrowup::arrowup::arrowup:

Link to comment

لاعطا سياره محدده بقريد لست

مثال للوب

  
Cars = { 
{'Monster',9000,580}, 
{'Frary',10000,570}, 
} 
  

# Client

addEventHandler("onClientGUIClick",resourceRoot, 
function (  ) 
if ( source == btn ) then 
local Se = guiGridListGetSelectedItem( grid ) 
if Se and Se ~= -1 then 
local Money = guiGridListGetItemText ( grid, Se, 2 ) 
local iD = guiGridListGetItemData ( grid , Se  , 1 ) 
triggerServerEvent ( "GiveVehicle",localPlayer , Money , iD ) 
 end 
 end 
 end) 

#Server

local table = { } 
  
addEvent("GiveVehicle" ,true) 
addEventHandler("GiveVehicle" ,root, 
function (  Money , id  ) 
if isElement( table[ source ] ) then  destroyElement ( table[ source]  ) end 
local Money_ = getPlayerMoney ( source ) 
if Money_ >= tonumber ( Money ) then 
PosX , PosY , PosZ =  getElementPosition ( source ) 
takePlayerMoney( source , tonumber ( Money ) ) 
table[ source ] = createVehicle( id , PosX , PosY , PosZ  ) 
outputChatBox("text",source ,0,255,0,false) 
else 
outputChatBox("* ليس لديك المال الكافي للشراء",source ,255,0,0,false) 
  
    end 
end 
    ) ; 
Link to comment
لاعطا سياره محدده بقريد لست

مثال للوب

  
Cars = { 
{'Monster',9000,580}, 
{'Frary',10000,570}, 
} 
  

# Client

addEventHandler("onClientGUIClick",resourceRoot, 
function (  ) 
if ( source == btn ) then 
local Se = guiGridListGetSelectedItem( grid ) 
if Se and Se ~= -1 then 
local Money = guiGridListGetItemText ( grid, Se, 2 ) 
local iD = guiGridListGetItemData ( grid , Se  , 1 ) 
triggerServerEvent ( "GiveVehicle",localPlayer , Money , iD ) 
 end 
 end 
 end) 

#Server

local table = { } 
  
addEvent("GiveVehicle" ,true) 
addEventHandler("GiveVehicle" ,root, 
function (  Money , id  ) 
if isElement( table[ source ] ) then  destroyElement ( table[ source]  ) end 
local Money_ = getPlayerMoney ( source ) 
if Money_ >= tonumber ( Money ) then 
PosX , PosY , PosZ =  getElementPosition ( source ) 
takePlayerMoney( source , tonumber ( Money ) ) 
table[ source ] = createVehicle( id , PosX , PosY , PosZ  ) 
outputChatBox("text",source ,0,255,0,false) 
else 
outputChatBox("* ليس لديك المال الكافي للشراء",source ,255,0,0,false) 
  
    end 
end 
    ) ; 

انا ما طلبت الكود ذا

Link to comment
اوك بنسوي كلو هنا في هذا الموضوع

كل الي عاوزو

معي شيك بوكس

عاوز لما اضغط عليه

يجي دخان و لما اضغط عليه تاني يعني

اشيل التحديد يختفي الدخان

+

-----------

معي شيك بوكس

عاوز لما اضغط عليه

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

اشيل التحديد العربية تتفجر و تتكسر عادي

+

-------------------

معي شيك بوكس

عاوز لما اضغط عليه

يجي نيترو و لما اضغط عليه تاني يعني

اشيل التحديد يختفي النيترو

+

--------------

معي بوطن عاوز لما اضغط عليه يصلح السيارة

ايه الخطاء هنا

setTimer(function() 
guiSetProperty( GUIEditor.checkbox[1], "NormalTextColour", math.random(0,255), math.random(0,255), math.random(0,255)) 
end, 50, 0) 
  

هنا الكلام يتكرر في الشات

كلنت

--#Client 
addEventHandler("onClientGUIClick", root, 
function() 
    if source ==  GUIEditor.checkbox[2] and guiCheckBoxGetSelected( GUIEditor.checkbox[2]) == true then 
    Timer = setTimer(function() 
    triggerServerEvent("VehicleColor", localPlayer) 
    end, 500, 0) 
    elseif source ==  GUIEditor.checkbox[2] and guiCheckBoxGetSelected( GUIEditor.checkbox[2]) == false then 
    killTimer(Timer) 
    end 
end) 

سيرفر

--#Server 
addEvent("VehicleColor", true) 
addEventHandler("VehicleColor", root, 
function() 
if not isPedInVehicle(source) then 
outputChatBox("[RentSystem]: يجب ان تكون في السيارة اولا", source, 255, 0, 0, true) else 
local vehicle = getPedOccupiedVehicle(source) 
outputChatBox('[RentSystem]: لقد تم تشغيل الأوان العشوائية بنجاح  ', source ,0,255,0,true ) 
setVehicleColor(vehicle, math.random(0,255), math.random(0,255), math.random(0,255)) 
    end 
      end  ) 

هنا السهم ما يظهر

-- Client 
addEventHandler('onClientGUIClick',root, 
function () 
if source == GUIEditor.checkbox[3] and guiComboBoxGetSelected(GUIEditor.checkbox[3]) == true then 
triggerServerEvent('Create',localPlayer) 
elseif source == GUIEditor.checkbox[3] and guiComboBoxGetSelected(GUIEditor.checkbox[3]) == false then 
triggerServerEvent('Destroy',localPlayer) 
end 
end 
) 

سيرفر

addEvent('Create',true) 
addEvent('Delete',true) 
  
Object = {  } 
addEventHandler('Create',root, 
function ( thePlayer ) 
    outputChatBox('[RentSystem]: لقد تم اظهار السهم  بنجاح  ', thePlayer ,0 , 255, 0 , true ) 
        local Interior , Dimension , xPosition, yPosition, zPosition = getElementInterior( thePlayer ) , getElementDimension( thePlayer) , getElementPosition( thePlayer ) 
            Object[thePlayer] = createObject(1318,xPosition, yPosition + 10 , zPosition ) 
                setElementInterior( Object[thePlayer] , Interior ) 
                    setElementDimension( Object[thePlayer] , Dimension ) 
                        
end ) 
  
addEventHandler('Delete',root, 
function ( thePlayer ) 
    if ( isElement( Object[thePlayer] ) ) then 
        outputChatBox("[RentSystem]: تم اخفاء السهم بنجاح", thePlayer, 255, 0, 0, true) 
            destroyElement( Object[thePlayer] ) 
end 
            end ) 
  

بس

هتعبكم معي

شكرا ...

اقرأ فوق :arrowup::arrowup::arrowup:

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