Jump to content

Radio Buttons طلب : كود زر


i S6O

Recommended Posts

معي مشكلة مدري ليه مآتشتغل

إنشاء الزر

LSGreen = guiCreateRadioButton(9, 24, 160, 18, "LS - Street's Green Gang", false, Abo3abdHD.window[1]) 
LSCop = guiCreateRadioButton(9, 65, 79, 19, "LS Police !", false, Abo3abdHD.window[1]) 
SFCivis = guiCreateRadioButton(9, 104, 128, 16, "SF Civis", false, Abo3abdHD.window[1]) 

إلكود كلنت

function Radio ( ) 
    if (guiRadioButtonGetSelected(LSCop))then 
        guiRadioButtonSetSelected(LSCop,true) 
        setElementPosition ( getLocalPlayer(), 1552.81104, -1675.06702, 16.19531 ) 
    elseif (guiRadioButtonGetSelected(LSGreen))then 
        guiRadioButtonSetSelected(LSGreen,true) 
        setElementPosition ( getLocalPlayer(), 2515.74927, -1667.31323, 13.76984 ) 
    elseif (guiRadioButtonGetSelected(SFCivis))then 
        guiRadioButtonSetSelected( SFCivis,true ) 
        setElementPosition ( getLocalPlayer(), -1951.95361, 691.81250, 46.56250 ) 
    end 
end 

إلدوق بوق سكربت

Link to comment

جرب

function Radio ( ) 
    if  (guiRadioButtonGetSelected(LSCop))then 
        guiRadioButtonSetSelected(LSCop,true) 
        setElementPosition ( getLocalPlayer(), 1552.81104, -1675.06702, 16.19531 ) 
    elseif (guiRadioButtonGetSelected(LSGreen))then 
        guiRadioButtonSetSelected(LSGreen,true) 
        setElementPosition ( getLocalPlayer(), 2515.74927, -1667.31323, 13.76984 ) 
    elseif (guiRadioButtonGetSelected(SFCivis))then 
        guiRadioButtonSetSelected( SFCivis,true ) 
        setElementPosition ( getLocalPlayer(), -1951.95361, 691.81250, 46.56250 ) 
    end 
end 
addEventHandler("onClientGUIClick",root, Radio) 

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