Jump to content

تمت الافاده من قبل iAbo[S]hanab~> و The Killer


iA7bk#

Recommended Posts

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

شباب ابيكم تشوفون وش الخطأ بالكود او بالنافذه عندي

انا سويت نافذه وابيها تظهر النافذه عند لمس الماركر وحاولة اسويها بس مدري ليه ما تضبط

الكود :

GUIEditor_Window = {} 
GUIEditor_Label = {} 
GUIEditor_Image = {} 
  
GUIEditor_Window[1] = guiCreateWindow(163,52,533,505,"هاك الطيران",false) 
guiSetAlpha(GUIEditor_Window[1],1) 
SS = guiCreateButton(20,203,493,119,"Start",false,GUIEditor_Window[1]) 
guiSetFont(SS,"sa-gothic") 
SS1 = guiCreateButton(18,368,493,119,"Stop",false,GUIEditor_Window[1]) 
guiSetFont(SS1,"sa-gothic") 
GUIEditor_Label[1] = guiCreateLabel(226,328,81,33,"***",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Label[1],"sa-gothic") 
SS3 = guiCreateButton(496,25,26,25,"X",false,GUIEditor_Window[1]) 
GUIEditor_Image[1] = guiCreateStaticImage(31,22,457,168,"1.png",false,GUIEditor_Window[1]) 
  
local MyMarker = createMarker ( -1627.75891, 1197.12500, 7.03906,"cylinder",1.5,0,0,255,100) 
  
addEventHandler ( "onClientMarkerHit" , MyMarker , 
function ( hitPlayer ) 
  if hitPlayer == localPlayer then 
 guiSetVisible ( GUIEditor_Window[1] , true )  
 showCursor ( true ) 
  end 
end , false ) 
  
addEventHandler ( "onClientMarkerLeave" , MyMarker , 
 function ( ) 
  guiSetVisible ( GUIEditor_Window[1] , false ) 
   showCursor ( false ) 
 end , false ) 
  
addEventHandler ( "onClientPlayerWasted" , root , 
  function () 
  guiSetVisible ( GUIEditor_Window[1] , false ) 
   showCursor ( false ) 
 end 
) 
  
  
function closeg() 
if source == SS3 then 
guiSetVisible(GUIEditor_Window[1] , false) 
showCursor ( false ) 
  
end 
end 
addEventHandler ("onClientGUIClick", root, closeg) 
    function () 
    if source == SS1 then 
    setWorldSpecialPropertyEnabled ( "aircars", true ) 
    outputChatBox("تم تشغيل الطيران بالسيارهـ") 
    end 
     end 
    ) 
    addEventHandler ("onClientGUIClick", getRootElement(), 
    function () 
    if source == SS2 then 
    setWorldSpecialPropertyEnabled ( "aircars", false ) 
    outputChatBox("تم ايقاف تشغيل الطيران بالسيارهـ") 
    end 
     end 
    ) 
  

Edited by Guest
Link to comment

جرب #

Window = guiCreateWindow(163,52,533,505,"هاك الطيران",false) 
guiSetVisible(Window , false) 
guiSetAlpha(Window,1) 
SS = guiCreateButton(20,203,493,119,"Start",false,Window) 
guiSetFont(SS,"sa-gothic") 
SS1 = guiCreateButton(18,368,493,119,"Stop",false,Window) 
guiSetFont(SS1,"sa-gothic") 
Label = guiCreateLabel(226,328,81,33,"***",false,Window) 
guiSetFont(Label,"sa-gothic") 
SS3 = guiCreateButton(496,25,26,25,"X",false,Window) 
Image = guiCreateStaticImage(31,22,457,168,"1.png",false,Window) 
  
local MyMarker = createMarker ( -1627.75891, 1197.12500, 7.03906,"cylinder",1.5,0,0,255,100) 
  
addEventHandler ( "onClientMarkerHit" , MyMarker , 
function ( hitPlayer ) 
if hitPlayer == localPlayer then 
 guiSetVisible ( Window , true ) 
 showCursor ( true ) 
end 
end , false ) 
  
addEventHandler ( "onClientMarkerLeave" , MyMarker , 
function ( ) 
  guiSetVisible ( Window , false ) 
  showCursor ( false ) 
end , false ) 
  
addEventHandler ( "onClientPlayerWasted" , localPlayer , 
  function () 
  guiSetVisible ( Window , false ) 
   showCursor ( false ) 
 end 
) 
  
addEventHandler("onClientGUIClick",root,function() 
if ( source == SS1 ) then 
setWorldSpecialPropertyEnabled ( "aircars", true ) 
outputChatBox("تم تشغيل الطيران بالسيارهـ") 
elseif ( source == SS2 ) then 
setWorldSpecialPropertyEnabled ( "aircars", false ) 
outputChatBox("تم ايقاف تشغيل الطيران بالسيارهـ") 
elseif source == SS3 then 
guiSetVisible(Window , false) 
showCursor ( false ) 
end 
end) 

Edited by Guest
Link to comment

GUIEditor_Window = {} 
GUIEditor_Label = {} 
GUIEditor_Image = {} 
  
GUIEditor_Window[1] = guiCreateWindow(163,52,533,505,"هاك الطيران",false) 
guiSetAlpha(GUIEditor_Window[1],1) 
SS = guiCreateButton(20,203,493,119,"Start",false,GUIEditor_Window[1]) 
guiSetFont(SS,"sa-gothic") 
SS1 = guiCreateButton(18,368,493,119,"Stop",false,GUIEditor_Window[1]) 
guiSetFont(SS1,"sa-gothic") 
GUIEditor_Label[1] = guiCreateLabel(226,328,81,33,"***",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Label[1],"sa-gothic") 
SS3 = guiCreateButton(496,25,26,25,"X",false,GUIEditor_Window[1]) 
GUIEditor_Image[1] = guiCreateStaticImage(31,22,457,168,"1.png",false,GUIEditor_Window[1]) 
  
local MyMarker = createMarker ( -1627.75891, 1197.12500, 7.03906,"cylinder",1.5,0,0,255,100) 
  
addEventHandler ( "onClientMarkerHit" , MyMarker , 
function ( hitPlayer ) 
if hitPlayer == localPlayer then 
guiSetVisible ( GUIEditor_Window[1] , true ) 
showCursor ( true ) 
end 
end , false ) 
  
addEventHandler ( "onClientMarkerLeave" , MyMarker , 
function ( ) 
guiSetVisible ( GUIEditor_Window[1] , false ) 
showCursor ( false ) 
end , false ) 
  
addEventHandler ( "onClientPlayerWasted" ,localPlayer, 
 function () 
guiSetVisible ( GUIEditor_Window[1] , false ) 
showCursor ( false ) 
end 
) 
  
  
addEventHandler("onClientGUIClick", root, 
if source == SS3 then 
guiSetVisible(GUIEditor_Window[1] , false) 
showCursor ( false ) 
end 
end 
) 
  
addEventHandler("onClientGUIClick", root, 
function () 
if source == SS1 then 
setWorldSpecialPropertyEnabled ( "aircars", true ) 
outputChatBox("تم تشغيل الطيران بالسيارهـ") 
end 
end 
) 
  
addEventHandler ("onClientGUIClick", getRootElement(), 
function () 
if source == SS2 then 
setWorldSpecialPropertyEnabled ( "aircars", false ) 
outputChatBox("تم ايقاف تشغيل الطيران بالسيارهـ") 
end 
end 
) 

edit: #

ابو شنب

عندك الايفنت

'onClientPlayerWasted' 

هو حاط

root

المفروض

localPlayer

Link to comment

GUIEditor_Window = {} 
GUIEditor_Label = {} 
GUIEditor_Image = {} 
  
GUIEditor_Window[1] = guiCreateWindow(163,52,533,505,"هاك الطيران",false) 
guiSetAlpha(GUIEditor_Window[1],1) 
SS = guiCreateButton(20,203,493,119,"Start",false,GUIEditor_Window[1]) 
guiSetFont(SS,"sa-gothic") 
SS1 = guiCreateButton(18,368,493,119,"Stop",false,GUIEditor_Window[1]) 
guiSetFont(SS1,"sa-gothic") 
GUIEditor_Label[1] = guiCreateLabel(226,328,81,33,"***",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Label[1],"sa-gothic") 
SS3 = guiCreateButton(496,25,26,25,"X",false,GUIEditor_Window[1]) 
GUIEditor_Image[1] = guiCreateStaticImage(31,22,457,168,"1.png",false,GUIEditor_Window[1]) 
guiSetVisible(GUIEditor_Window[1], false) 
  
local MyMarker = createMarker ( -1627.75891, 1197.12500, 7.03906,"cylinder",1.5,0,0,255,100) 
  
addEventHandler ( "onClientMarkerHit" , MyMarker, 
function ( hitPlayer ) 
if hitPlayer == localPlayer then 
guiSetVisible ( GUIEditor_Window[1] , true ) 
showCursor ( true ) 
end 
end , false ) 
  
addEventHandler ( "onClientMarkerLeave" , MyMarker, 
function ( ) 
guiSetVisible ( GUIEditor_Window[1] , false ) 
showCursor ( false ) 
end , false ) 
  
addEventHandler ( "onClientPlayerWasted" , localPlayer, 
function () 
guiSetVisible ( GUIEditor_Window[1] , false ) 
showCursor ( false ) 
end 
) 
  
  
addEventHandler("onClientGUIClick", root, 
function () 
if (source == SS3)  then 
guiSetVisible(GUIEditor_Window[1] , false) 
showCursor ( false ) 
end 
end 
) 
  
addEventHandler("onClientGUIClick", root, 
function () 
if source == SS1 then 
setWorldSpecialPropertyEnabled ( "aircars", true ) 
outputChatBox("تم تشغيل الطيران بالسيارهـ") 
end 
end 
) 
  
addEventHandler ("onClientGUIClick", getRootElement(), 
function () 
if source == SS2 then 
setWorldSpecialPropertyEnabled ( "aircars", false ) 
outputChatBox("تم ايقاف تشغيل الطيران بالسيارهـ") 
end 
end 
) 
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...