AhmeD~9MoD Posted June 22, 2013 Share Posted June 22, 2013 السلام عليكم عندي عدة اكواد احتاج إلى تصحيحها ,, كود اخفاء و اظهار الشات من نفس الزر addEventHandler ( "onClientGUIClick", GUIEditor.button[3], function ( ) local t = true local f = false if t then showChat ( false ) else showChat ( true ) end end ) كود اخفاء اظهار سيارة اللاعب من نفس الزر addEventHandler ( "onClientGUIClick", GUIEditor.button[5], function ( player ) local playervehicle = getPlayerOccupiedVehicle ( player ) if getElementAlpha(playervehicle) == 255 then if ( playervehicle ) then setElementAlpha(playervehicle, 0) if getElementAlpha(playervehicle) == 0 then setElementAlpha(playervehicle, 255) end end end end ) كود ازالة الجاذبية addEventHandler ( "onClientGUIClick", root, function () if source == GUIEditor.button[1] then setGravity (0) end end ) Link to comment
./BlackBird# Posted June 22, 2013 Share Posted June 22, 2013 addEventHandler ( "onClientGUIClick", GUIEditor.button[3], function ( ) if getElementData(localPlayer,'ShowChat') then showChat ( false ) setElementData(localPlayer,'ShowChat',flase) else showChat ( true ) setElementData(localPlayer,'ShowChat',true) end end ) كود اخفاء اظهار سيارة اللاعب من نفس الزر addEventHandler ( "onClientGUIClick", GUIEditor.button[5], function ( ) local playervehicle = getPlayerOccupiedVehicle (localPlayer) if ( playervehicle ) then if getElementAlpha(playervehicle) == 255 then setElementAlpha(playervehicle, 0) if getElementAlpha(playervehicle) == 0 then setElementAlpha(playervehicle, 255) end end end end ) كود ازالة الجاذبية addEventHandler ( "onClientGUIClick", root, function () if source == GUIEditor.button[1] then setGravity (0) end end ) Link to comment
iPrestege Posted June 22, 2013 Share Posted June 22, 2013 أو .. : local isChatVisible = nil addEventHandler('onClientGUIClick',GUIEditor.button[3], function ( ) if not isChatVisible then showChat ( false ) else showChat ( true ) end isChatVisible = not isChatVisible end,false ) addEventHandler('onClientGUIClick',GUIEditor.button[5], function ( ) local aVehicle = getPlayerOccupiedVehicle ( localPlayer ) if aVehicle then if getElementAlpha ( aVehicle ) == 255 then setElementAlpha ( aVehicle,0 ) else setElementAlpha ( aVehicle,255 ) end end end,false ) Link to comment
AhmeD~9MoD Posted June 24, 2013 Author Share Posted June 24, 2013 سوري على تأخر الرد كنت مشغول كثير جاري تجربة الاكواد Link to comment
AhmeD~9MoD Posted June 25, 2013 Author Share Posted June 25, 2013 ممكن تصحيح , كود قتل اللاعب Server Side -- addEvent("kill", true) addEventHandler("kill", root, function ( ) killPed ( source, source ) end ) Link to comment
MSHOOSH Posted June 25, 2013 Share Posted June 25, 2013 Server Side -- addEvent("kill", true) addEventHandler("kill", root, function ( player ) killPed ( player ) end ) Link to comment
S4MuEL Posted June 25, 2013 Share Posted June 25, 2013 هو مسوي ترآيقر ، إذآ .. addEvent("kill", true) addEventHandler("kill", root, function ( ) killPed ( client ) end ) 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