Jump to content

تصحيح لاهنتم


Mbtdaa

Recommended Posts

Posted

تصحيح لاهنتم

كلينت

   

  
      
bindKey ( "F2" , "down" , function() 
  
if ( guiGetVisible ( GUIEditor_Window[1] ) == true ) then 
 guiSetVisible ( GUIEditor_Window[1] ,false ) 
 showCursor (false ) 
 guiSetInputEnabled(false) 
  
 elseif ( guiGetVisible ( GUIEditor_Window[1] ) == false ) then 
 guiSetVisible ( GUIEditor_Window[1] ,true ) 
 showCursor (false ) 
 guiSetInputEnabled(true) 
 playSound("mrsl6an.wav") 
  
 end 
 end 
 ) 
  
  
        guiSetProperty(GUIEditor_Button[1],"NormalTextColour", "FF00FF00") 
        guiSetProperty(GUIEditor_Button[1],"HoverTextColour", "FF00FF00") 
        guiSetProperty(GUIEditor_Button[2],"NormalTextColour", "FF0000FF") 
        guiSetProperty(GUIEditor_Button[2],"HoverTextColour", "FF0000FF") 
        guiSetProperty(GUIEditor_Button[3],"NormalTextColour", "FFFF0000") 
        guiSetProperty(GUIEditor_Button[3],"HoverTextColour", "FFFF0000") 
        guiSetProperty(GUIEditor_Button[4],"NormalTextColour", "FFFF9900") 
        guiSetProperty(GUIEditor_Button[4],"HoverTextColour", "FFFF9900") 
      
    ------------------------------------command buy 
    function onGuiClick (button, state, absoluteX, absoluteY) 
    if (source == GUIEditor_Button[3]) then 
    triggerServerEvent ("buyFlip", getLocalPlayer()) 
    elseif (source == GUIEditor_Button[1]) then 
    triggerServerEvent ("buyNitro", getLocalPlayer()) 
    elseif (source == GUIEditor_Button[2]) then 
    triggerServerEvent ("buyRepair", getLocalPlayer()) 
    elseif (source == GUIEditor_Button[4]) then 
    triggerServerEvent ("buyInvisible", getLocalPlayer()) 
    end 
    end 
    addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) 
      
     outputChatBox ("#DB8181[shop]: #ffffff.:[ #007fffBy:#460b55Mr.SL6AN #ff0000v2.0 #00ff00.! #ffffff]:. ", 27, 89, 224, true) 
    outputChatBox ("#DB8181[Open]: #FFFFFF#FF0000Press #FF0000'F2' #FFFFFF#2972e0to open #000000The #FF0000Shop.!", 255, 0, 0, true) 
      
        addEventHandler("onClientGUIClick",getRootElement(), 
            function() 
                if ( source == GUIEditor_Button[5] ) then 
                         triggerServerEvent("onLoginAndRegister",getRootElement(),getLocalPlayer(),guiGetText(GUIEditor_Edit[1]), guiGetText(GUIEditor_Edit[2])) 
                end 
            end 
    ------------------------------------------------------------------------Ping label 
    function refreshStats() 
    if guiGetVisible(GUIEditor_Image[1], true) then 
       GUIEditor_Label[10](GUIEditor_Label[10]," "..getPlayerPing(getLocalPlayer())) 
    else 
       guiSetText(GUIEditor_Label[10]," "..getPlayerPing(getLocalPlayer())) 
        end 
    end 
    addEventHandler("onClientRender", getRootElement(), refreshStats) 
    ------------------------------------------------------------------------ money label] 
    function refreshStatss() 
    if guiGetVisible(GUIEditor_Image[1], true) then 
       GUIEditor_Label[12](GUIEditor_Label[12]," $"..getPlayerMoney (getLocalPlayer())) 
    else 
       guiSetText(GUIEditor_Label[12]," $"..getPlayerMoney (getLocalPlayer())) 
        end 
    end 
    addEventHandler("onClientRender", getRootElement(), refreshStatss) 
    ------------------------------------------------------------------------Name 
    function refreshStatsss() 
    if guiGetVisible(GUIEditor_Image[1],true) then 
       GUIEditor_Label[5](GUIEditor_Label[5]," "..getPlayerName(getLocalPlayer())) 
    else 
       guiSetText(GUIEditor_Label[5]," "..getPlayerName(getLocalPlayer())) 
        end 
    end 
    addEventHandler("onClientRender", getRootElement(), refreshStatsss) 
    ------------------------------------------------------------------------Serial label 
    function refreshStatssss() 
    if guiGetVisible(GUIEditor_Image[1],true) then 
       GUIEditor_Label[9](GUIEditor_Label[9]," "..getPlayerSerial (getLocalPlayer())) 
    else 
       guiSetText(GUIEditor_Label[9]," "..getPlayerSerial (getLocalPlayer())) 
        end 
    end 
    addEventHandler("onClientRender", getRootElement(), refreshStatssss) 
    ------------------------------------------------------------------------Skin label 
    function refreshStatsssss() 
    if guiGetVisible(GUIEditor_Image[2],true) then 
       GUIEditor_Label[7](GUIEditor_Label[7]," "..getPlayerSkin (getLocalPlayer())) 
    else 
       guiSetText(GUIEditor_Label[7]," "..getPlayerSkin (getLocalPlayer())) 
        end 
    end 
    addEventHandler("onClientRender", getRootElement(), refreshStatsssss) 
  
) 
  
  
    addEventHandler("getID",getRootElement(), 
        function(id) 
            if ( id ) then 
                guiSetText ( GUIEditor_Label[15] , tostring(id))   
            end 
        end 

 

سيرفر

 

  
function LoginAndRegister ( player, user, pass ) 
    local account = getAccount ( user, pass ) 
    if ( account ~= false ) then 
        if (logIn ( player, account, pass ) == true) then 
        else 
             outputChatBox ( " Login Error !", player, 255, 0, 0 ) 
        end 
    else 
        account = addAccount ( user, pass ) 
        if (logIn ( player, account, pass ) == true) then 
        outputChatBox ( "Register Details : [ Username ] : #00FF00" .. user .. " #FFFF1A[ Password ] : #00FF00" .. pass .. "", player, 255, 255, 0 , true ) 
        else 
            outputChatBox ( "Register Error!", player, 255, 255, 0 ) 
  
        end 
    end 
end 
addEvent( "onLoginAndRegister", true ) 
addEventHandler( "onLoginAndRegister", getRootElement(), LoginAndRegister ) 
  
  
  
local rootElement = getRootElement() 
function qq() 
local playername = getPlayerName ( source ) 
if isPedInVehicle(source) then 
if ( getPlayerMoney (source) >= 3000 ) then 
takePlayerMoney(source, 3000) 
addVehicleUpgrade(getPedOccupiedVehicle(source),1010) 
outputChatBox("#ffffff[#ffffff ".. playername .." #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFNitro #ffffff] ", source, 255, 20, 50, true) 
else 
outputChatBox("You Dont Have [ #ffffff3,000 #ffffff]", source, 255, 255, 255, true) 
end  
else 
outputChatBox("You are not in a vehicle", source, 25, 200, 200, true) 
end 
end 
addEvent("buyNitro", true) 
addEventHandler( "buyNitro",getRootElement(),qq ) 
  
function fix() 
local playername = getPlayerName ( source ) 
if isPedInVehicle(source) then 
if ( getPlayerMoney (source) >= 3000 ) then 
takePlayerMoney(source, 3000) 
fixVehicle(getPedOccupiedVehicle(source)) 
outputChatBox("#ffffff[#ffffff ".. playername .." #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFRepair #ffffff] ", source, 255, 255, 0, true) 
else 
outputChatBox("You Dont Have [ #ffffff3,000 #ffffff]", source, 255, 255, 255, true) 
end  
else 
outputChatBox("You are not in a vehicle", source, 255, 50, 200, true) 
end 
end 
addEvent("buyRepair", true) 
addEventHandler( "buyRepair",getRootElement(),fix ) 
  
function flip() 
local playername = getPlayerName ( source ) 
if isPedInVehicle(source) then 
if ( getPlayerMoney (source) >= 3000 ) then 
takePlayerMoney(source, 3000) 
rx, ry, rz = getVehicleRotation (getPedOccupiedVehicle(source))  
setVehicleRotation (getPedOccupiedVehicle(source), rx +180, ry, rz +180) 
outputChatBox("#ffffff[#ffffff ".. playername .." #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFflip #ffffff] ", source, 255, 255, 0, true) 
else 
outputChatBox("You Dont Have [ #ffffff3,000 #ffffff]", source, 255, 255, 255, true) 
end  
else 
outputChatBox("You are not in a vehicle", source, 255, 0, 200, true) 
end 
end 
addEvent("buyFlip", true) 
addEventHandler( "buyFlip",getRootElement(),flip ) 
  
addEvent("buyHunter", true) 
addEventHandler("buyHunter", rootElement, 
function() 
if ( getPlayerMoney (source) >= 100 ) then 
takePlayerMoney(source, 100) 
x,y,z = getElementPosition( source ) 
hunter = createVehicle ( 425, x, y, z ) 
warpPedIntoVehicle(source,hunter) 
outputChatBox("#ffffff[#ffffff ".. playername .." #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFHunter #ffffff]", source, 255, 255, 0, true) 
outputChatBox( "** ALERT HUNTER DETECTED **", 255, 000, 000, true ) 
else 
outputChatBox("You Dont Have [ #ffffff3,000 #ffffff1,000,000 #ffffff]", source, 255, 255, 255, true) 
end 
end 
) 
  
addEvent("buyInvisible", true) 
addEventHandler("buyInvisible", rootElement, 
function() 
      if ( getPlayerMoney (source) >= 15000 ) then 
        takePlayerMoney(source, 15000) 
        outputChatBox("#ffffff[#ffffff  #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFInvisible #ffffff]", source, 255, 255, 0, true) 
        setElementAlpha(getPedOccupiedVehicle(source),0) 
        setElementAlpha(source,0) 
        setPlayerNametagShowing(source, false) 
        setTimer( setElementAlpha, 60000, 1, source, 500, true) 
        setTimer( setElementAlpha, 60000, 1, getPedOccupiedVehicle(source), 500, true) 
        setTimer( setPlayerNametagShowing, 60000, 1, source, true, true) 
      else 
        outputChatBox("You Dont Have [#ffffff15,000 #ffffff]", source, 255, 255, 255, true) 
    end 
  end 
) 
  
addEvent("buyHydra", true) 
addEventHandler("buyHydra", rootElement, 
function() 
local pname = getPlayerName( source ) 
if ( getPlayerMoney (source) >= 150 ) then 
takePlayerMoney(source, 150) 
x,y,z = getElementPosition( source ) 
hydra = createVehicle ( 520, x, y, z ) 
warpPedIntoVehicle(source,hydra) 
outputChatBox("Hydra Obtained", source, 255, 255, 0, true) 
outputChatBox( "** ALERT HYDRA DETECTED **", 255, 0, 0, true ) 
else 
outputChatBox("Not enough money.", source, 0, 0, 0, true) 
end 
end 
) 
  
  
setTimer( 
    function () 
        for _,player in ipairs ( getElementsByType("player") ) do 
            local id = getElementData ( player,"ID" ) 
            triggerClientEvent(player,"getID",player, id or "N/A") 
        end 
    end 
    ,1000,0) 
  

ميتا

  
<meta> 
    <script src="1.lua" type="client"></script> 
    <script src="2.lua" type="server"></script> 
    <file src="images/fl.png" /> 
                 <file src="images/in.png" /> 
                 <file src="images/ni.png" /> 
                 <file src="images/re.png" /> 
                  <file src="mrsl6an.wav" /> 
</meta> 
  
Posted

بالنسبة لذا الكود ياليت تشوف ردي هنا

viewtopic.php?f=119&t=46443#p462794

bindKey ( "F2" , "down" , function() 
  
if ( guiGetVisible ( GUIEditor_Window[1] ) == true ) then 
 guiSetVisible ( GUIEditor_Window[1] ,false ) 
 showCursor (false ) 
 guiSetInputEnabled(false) 
  
 elseif ( guiGetVisible ( GUIEditor_Window[1] ) == false ) then 
 guiSetVisible ( GUIEditor_Window[1] ,true ) 
 showCursor (false ) 
 guiSetInputEnabled(true) 
 playSound("mrsl6an.wav") 
  
 end 
 end 
 ) 

========================

هنا ناقص قوس بالأخير

        addEventHandler("onClientGUIClick",getRootElement(), 
            function() 
                if ( source == GUIEditor_Button[5] ) then 
                         triggerServerEvent("onLoginAndRegister",getRootElement(),getLocalPlayer(),guiGetText(GUIEditor_Edit[1]), guiGetText(GUIEditor_Edit[2])) 
                end 
            end 

التصحيح

addEventHandler("onClientGUIClick",root, 
function() 
     if (source == GUIEditor_Button[5]) then 
          triggerServerEvent("onLoginAndRegister",root,localPlayer,guiGetText(GUIEditor_Edit[1]),guiGetText(GUIEditor_Edit[2])) 
     end 
end) 

===============================

و هنا كمان ناقص قوس

+

addEvent ناقص

أضافة إلى أنه ماله معنى أنك مسويه سيرفر و كل ثانية ترقير!

    addEventHandler("getID",getRootElement(), 
        function(id) 
            if ( id ) then 
                guiSetText ( GUIEditor_Label[15] , tostring(id))   
            end 
        end 

التصحيح

أحذفه

  

+

أحذف الي بالسيرفر

setTimer( 
    function () 
        for _,player in ipairs ( getElementsByType("player") ) do 
            local id = getElementData ( player,"ID" ) 
            triggerClientEvent(player,"getID",player, id or "N/A") 
        end 
    end 
    ,1000,0) 

refreshStats وراح نضيفه بالكود الي تحت مع فنكشن

===============================================

ذي الأكواد مليانة أخطاء

    function refreshStats() 
    if guiGetVisible(GUIEditor_Image[1], true) then 
       GUIEditor_Label[10](GUIEditor_Label[10]," "..getPlayerPing(getLocalPlayer())) 
    else 
       guiSetText(GUIEditor_Label[10]," "..getPlayerPing(getLocalPlayer())) 
        end 
    end 
    addEventHandler("onClientRender", getRootElement(), refreshStats) 
    ------------------------------------------------------------------------ money label] 
    function refreshStatss() 
    if guiGetVisible(GUIEditor_Image[1], true) then 
       GUIEditor_Label[12](GUIEditor_Label[12]," $"..getPlayerMoney (getLocalPlayer())) 
    else 
       guiSetText(GUIEditor_Label[12]," $"..getPlayerMoney (getLocalPlayer())) 
        end 
    end 
    addEventHandler("onClientRender", getRootElement(), refreshStatss) 
    ------------------------------------------------------------------------Name 
    function refreshStatsss() 
    if guiGetVisible(GUIEditor_Image[1],true) then 
       GUIEditor_Label[5](GUIEditor_Label[5]," "..getPlayerName(getLocalPlayer())) 
    else 
       guiSetText(GUIEditor_Label[5]," "..getPlayerName(getLocalPlayer())) 
        end 
    end 
    addEventHandler("onClientRender", getRootElement(), refreshStatsss) 
    ------------------------------------------------------------------------Serial label 
    function refreshStatssss() 
    if guiGetVisible(GUIEditor_Image[1],true) then 
       GUIEditor_Label[9](GUIEditor_Label[9]," "..getPlayerSerial (getLocalPlayer())) 
    else 
       guiSetText(GUIEditor_Label[9]," "..getPlayerSerial (getLocalPlayer())) 
        end 
    end 
    addEventHandler("onClientRender", getRootElement(), refreshStatssss) 
    ------------------------------------------------------------------------Skin label 
    function refreshStatsssss() 
    if guiGetVisible(GUIEditor_Image[2],true) then 
       GUIEditor_Label[7](GUIEditor_Label[7]," "..getPlayerSkin (getLocalPlayer())) 
    else 
       guiSetText(GUIEditor_Label[7]," "..getPlayerSkin (getLocalPlayer())) 
        end 
    end 
    addEventHandler("onClientRender", getRootElement(), refreshStatsssss) 

التصحيح

function refreshStats() 
   if guiGetVisible(GUIEditor_Image[1]) then 
      guiSetText(GUIEditor_Label[10],getPlayerPing(localPlayer)) 
      guiSetText(GUIEditor_Label[12],"$"..getPlayerMoney()) 
      guiSetText(GUIEditor_Label[5],getPlayerName(localPlayer)) 
      guiSetText(GUIEditor_Label[9],getPlayerSerial()) 
      guiSetText(GUIEditor_Label[7],getElementModel(localPlayer)) 
      guiSetText(GUIEditor_Label[15],getElementData(localPlayer,"ID") -- تم أضافة كود الآيد هنا 
   end 
end 
addEventHandler("onClientRender", root, refreshStats) 

=======================================================

عندك قوس زيادة في سطر 99

) 

التصحيح

  

:D

CiTLh.png
Posted

مم يعطيك العافيه تابل

على الرد بس

الموضوع الي حاطه ماله دخل ><

و انا مافهمت وش قصدك بكود اي دي الاعب بس هاذا الي قدرت اسويه

كلينت

GUIEditor_Window = {} 
GUIEditor_TabPanel = {} 
GUIEditor_Button = {} 
GUIEditor_Label = {} 
GUIEditor_Edit = {} 
GUIEditor_Image = {} 
  
GUIEditor_Window[1] = guiCreateWindow(425,241,465,368,"| لـوحـة الـشــوب تـصـمـيـم مـسـتـر سـلـطـان الاصـدار الـثـاني |",false) 
GUIEditor_TabPanel[1] = guiCreateTabPanel(9,25,447,334,false,GUIEditor_Window[1]) 
Tab[1] = guiCreateTab("مـــعــلــومـــات",GUIEditor_TabPanel[1]) 
GUIEditor_Label[1] = guiCreateLabel(1,32,442,16,"------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------",false,Tab[1]) 
guiSetFont(GUIEditor_Label[1],"default-bold-small") 
GUIEditor_Label[2] = guiCreateLabel(0,283,445,16,"------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------",false,Tab[1]) 
guiSetFont(GUIEditor_Label[2],"default-bold-small") 
GUIEditor_Label[3] = guiCreateLabel(127,13,196,16,"| ولـــكــم حــيــاكــم الـلـه نــورتـــونــا |",false,Tab[1]) 
guiSetFont(GUIEditor_Label[3],"default-bold-small") 
GUIEditor_Label[4] = guiCreateLabel(6,77,67,18,"YourName : ",false,Tab[1]) 
guiLabelSetColor(GUIEditor_Label[4],255,0,0) 
guiSetFont(GUIEditor_Label[4],"default-bold-small") 
GUIEditor_Label[5] = guiCreateLabel(72,77,278,35,"الاسم",false,Tab[1]) 
guiLabelSetColor(GUIEditor_Label[5],255,20,147) 
guiSetFont(GUIEditor_Label[5],"default-bold-small") 
GUIEditor_Label[6] = guiCreateLabel(5,108,119,17,"YourSkin : ",false,Tab[1]) 
guiLabelSetColor(GUIEditor_Label[6],255,0,0) 
guiSetFont(GUIEditor_Label[6],"default-bold-small") 
GUIEditor_Label[7] = guiCreateLabel(74,170,354,27,"الشخصيه",false,Tab[1]) 
guiLabelSetColor(GUIEditor_Label[7],0,255,0) 
guiSetFont(GUIEditor_Label[7],"default-bold-small") 
GUIEditor_Label[8] = guiCreateLabel(7,140,59,17,"YourPing : ",false,Tab[1]) 
guiLabelSetColor(GUIEditor_Label[8],255,255,0) 
guiSetFont(GUIEditor_Label[8],"default-bold-small") 
GUIEditor_Label[9] = guiCreateLabel(74,108,46,21,"سيريال",false,Tab[1]) 
guiLabelSetColor(GUIEditor_Label[9],0,0,255) 
guiSetFont(GUIEditor_Label[9],"default-bold-small") 
GUIEditor_Label[10] = guiCreateLabel(66,139,153,23,"بنج",false,Tab[1]) 
guiLabelSetColor(GUIEditor_Label[10],255,0,0) 
guiSetFont(GUIEditor_Label[10],"default-bold-small") 
GUIEditor_Label[11] = guiCreateLabel(8,169,67,17,"YourSerial : ",false,Tab[1]) 
guiLabelSetColor(GUIEditor_Label[11],255,255,0) 
guiSetFont(GUIEditor_Label[11],"default-bold-small") 
GUIEditor_Label[12] = guiCreateLabel(87,205,75,24,"فلوس",false,Tab[1]) 
guiLabelSetColor(GUIEditor_Label[12],255,0,0) 
guiSetFont(GUIEditor_Label[12],"default-bold-small") 
GUIEditor_Label[13] = guiCreateLabel(6,205,86,18,"YourMoney : ",false,Tab[1]) 
guiLabelSetColor(GUIEditor_Label[13],0,0,255) 
guiSetFont(GUIEditor_Label[13],"default-bold-small") 
GUIEditor_Label[14] = guiCreateLabel(9,238,48,17,"YourID : ",false,Tab[1]) 
guiLabelSetColor(GUIEditor_Label[14],0,0,255) 
guiSetFont(GUIEditor_Label[14],"default-bold-small") 
GUIEditor_Label[15] = guiCreateLabel(58,233,47,24,"ايدي",false,Tab[1]) 
guiLabelSetColor(GUIEditor_Label[15],255,255,0) 
guiSetFont(GUIEditor_Label[15],"default-bold-small") 
Tab[2] = guiCreateTab("شـــراء ",GUIEditor_TabPanel[1]) 
GUIEditor_Button[1] = guiCreateButton(261,72,112,71,"|| Nitro ||",false,Tab[2]) 
guiSetFont(GUIEditor_Button[1],"default-bold-small") 
GUIEditor_Button[2] = guiCreateButton(261,224,112,71,"|| Repair ||",false,Tab[2]) 
guiSetFont(GUIEditor_Button[2],"default-bold-small") 
GUIEditor_Button[3] = guiCreateButton(79,74,112,71,"|| Flip ||",false,Tab[2]) 
guiSetFont(GUIEditor_Button[3],"default-bold-small") 
GUIEditor_Button[4] = guiCreateButton(74,224,112,71,"|| Invisible ||",false,Tab[2]) 
guiSetFont(GUIEditor_Button[4],"default-bold-small") 
GUIEditor_Image[1] = guiCreateStaticImage(78,7,116,62,"images/fl.png",false,Tab[2]) 
GUIEditor_Image[2] = guiCreateStaticImage(257,5,122,67,"images/ni.png",false,Tab[2]) 
GUIEditor_Image[3] = guiCreateStaticImage(73,154,117,71,"images/in.png",false,Tab[2]) 
GUIEditor_Image[4] = guiCreateStaticImage(259,150,114,75,"images/re.png",false,Tab[2]) 
Tab[3] = guiCreateTab("تسجيل/دخول",GUIEditor_TabPanel[1]) 
GUIEditor_Label[16] = guiCreateLabel(194,34,54,18,"اســـمــك ",false,Tab[3]) 
guiSetFont(GUIEditor_Label[16],"default-bold-small") 
GUIEditor_Edit[1] = guiCreateEdit(55,67,329,43,"",false,Tab[3]) 
GUIEditor_Edit[2] = guiCreateEdit(54,179,329,43,"",false,Tab[3]) 
GUIEditor_Label[17] = guiCreateLabel(178,144,86,18,"كــلــمــة الــســر",false,Tab[3]) 
guiSetFont(GUIEditor_Label[17],"default-bold-small") 
GUIEditor_Button[5] = guiCreateButton(159,239,132,55,"تسجيل/دخول",false,Tab[3]) 
guiSetFont(GUIEditor_Button[5],"default-bold-small") 
  
  
bindKey ( "F2" , "down" , function() 
  
if ( guiGetVisible ( GUIEditor_Window[1] ) == true ) then 
 guiSetVisible ( GUIEditor_Window[1] ,false ) 
 showCursor (false ) 
 guiSetInputEnabled(false) 
  
 elseif ( guiGetVisible ( GUIEditor_Window[1] ) == false ) then 
 guiSetVisible ( GUIEditor_Window[1] ,true ) 
 showCursor (false ) 
 guiSetInputEnabled(true) 
 playSound("mrsl6an.wav") 
  
 end 
 end 
 ) 
  
  
  
        guiSetProperty(GUIEditor_Button[1],"NormalTextColour", "FF00FF00") 
        guiSetProperty(GUIEditor_Button[1],"HoverTextColour", "FF00FF00") 
        guiSetProperty(GUIEditor_Button[2],"NormalTextColour", "FF0000FF") 
        guiSetProperty(GUIEditor_Button[2],"HoverTextColour", "FF0000FF") 
        guiSetProperty(GUIEditor_Button[3],"NormalTextColour", "FFFF0000") 
        guiSetProperty(GUIEditor_Button[3],"HoverTextColour", "FFFF0000") 
        guiSetProperty(GUIEditor_Button[4],"NormalTextColour", "FFFF9900") 
        guiSetProperty(GUIEditor_Button[4],"HoverTextColour", "FFFF9900") 
      
  
addEventHandler("onClientGUIClick",root, 
function() 
     if (source == GUIEditor_Button[5]) then 
          triggerServerEvent("onLoginAndRegister",root,localPlayer,guiGetText(GUIEditor_Edit[1]),guiGetText(GUIEditor_Edit[2])) 
     end 
end) 
  
  
  
    function refreshStats() 
       if guiGetVisible(GUIEditor_Image[1]) then 
          guiSetText(GUIEditor_Label[10],getPlayerPing(localPlayer)) 
          guiSetText(GUIEditor_Label[12],"$"..getPlayerMoney()) 
          guiSetText(GUIEditor_Label[5],getPlayerName(localPlayer)) 
          guiSetText(GUIEditor_Label[9],getPlayerSerial()) 
          guiSetText(GUIEditor_Label[7],getElementModel(localPlayer)) 
          guiSetText(GUIEditor_Label[15],getElementData(localPlayer,"ID")  
       end 
    end 
    addEventHandler("onClientRender", root, refreshStats) 
  
  
------------------------------------command buy 
    function onGuiClick (button, state, absoluteX, absoluteY) 
    if (source == GUIEditor_Button[3]) then 
    triggerServerEvent ("buyFlip", getLocalPlayer()) 
    elseif (source == GUIEditor_Button[1]) then 
    triggerServerEvent ("buyNitro", getLocalPlayer()) 
    elseif (source == GUIEditor_Button[2]) then 
    triggerServerEvent ("buyRepair", getLocalPlayer()) 
    elseif (source == GUIEditor_Button[4]) then 
    triggerServerEvent ("buyInvisible", getLocalPlayer()) 
    end 
    end 
    addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) 
      
     outputChatBox ("#DB8181[shop]: #ffffff.:[ #007fffBy:#460b55Mr.SL6AN #ff0000v2.0 #00ff00.! #ffffff]:. ", 27, 89, 224, true) 
    outputChatBox ("#DB8181[Open]: #FFFFFF#FF0000Press #FF0000'F2' #FFFFFF#2972e0to open #000000The #FF0000Shop.!", 255, 0, 0, true) 

سيرفر

  
  
function LoginAndRegister ( player, user, pass ) 
    local account = getAccount ( user, pass ) 
    if ( account ~= false ) then 
        if (logIn ( player, account, pass ) == true) then 
        else 
             outputChatBox ( " Login Error !", player, 255, 0, 0 ) 
        end 
    else 
        account = addAccount ( user, pass ) 
        if (logIn ( player, account, pass ) == true) then 
        outputChatBox ( "Register Details : [ Username ] : #00FF00" .. user .. " #FFFF1A[ Password ] : #00FF00" .. pass .. "", player, 255, 255, 0 , true ) 
        else 
            outputChatBox ( "Register Error!", player, 255, 255, 0 ) 
  
        end 
    end 
end 
addEvent( "onLoginAndRegister", true ) 
addEventHandler( "onLoginAndRegister", getRootElement(), LoginAndRegister ) 
  
  
  
local rootElement = getRootElement() 
function qq() 
local playername = getPlayerName ( source ) 
if isPedInVehicle(source) then 
if ( getPlayerMoney (source) >= 3000 ) then 
takePlayerMoney(source, 3000) 
addVehicleUpgrade(getPedOccupiedVehicle(source),1010) 
outputChatBox("#ffffff[#ffffff ".. playername .." #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFNitro #ffffff] ", source, 255, 20, 50, true) 
else 
outputChatBox("You Dont Have [ #ffffff3,000 #ffffff]", source, 255, 255, 255, true) 
end  
else 
outputChatBox("You are not in a vehicle", source, 25, 200, 200, true) 
end 
end 
addEvent("buyNitro", true) 
addEventHandler( "buyNitro",getRootElement(),qq ) 
  
function fix() 
local playername = getPlayerName ( source ) 
if isPedInVehicle(source) then 
if ( getPlayerMoney (source) >= 3000 ) then 
takePlayerMoney(source, 3000) 
fixVehicle(getPedOccupiedVehicle(source)) 
outputChatBox("#ffffff[#ffffff ".. playername .." #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFRepair #ffffff] ", source, 255, 255, 0, true) 
else 
outputChatBox("You Dont Have [ #ffffff3,000 #ffffff]", source, 255, 255, 255, true) 
end  
else 
outputChatBox("You are not in a vehicle", source, 255, 50, 200, true) 
end 
end 
addEvent("buyRepair", true) 
addEventHandler( "buyRepair",getRootElement(),fix ) 
  
function flip() 
local playername = getPlayerName ( source ) 
if isPedInVehicle(source) then 
if ( getPlayerMoney (source) >= 3000 ) then 
takePlayerMoney(source, 3000) 
rx, ry, rz = getVehicleRotation (getPedOccupiedVehicle(source))  
setVehicleRotation (getPedOccupiedVehicle(source), rx +180, ry, rz +180) 
outputChatBox("#ffffff[#ffffff ".. playername .." #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFflip #ffffff] ", source, 255, 255, 0, true) 
else 
outputChatBox("You Dont Have [ #ffffff3,000 #ffffff]", source, 255, 255, 255, true) 
end  
else 
outputChatBox("You are not in a vehicle", source, 255, 0, 200, true) 
end 
end 
addEvent("buyFlip", true) 
addEventHandler( "buyFlip",getRootElement(),flip ) 
  
addEvent("buyHunter", true) 
addEventHandler("buyHunter", rootElement, 
function() 
if ( getPlayerMoney (source) >= 100 ) then 
takePlayerMoney(source, 100) 
x,y,z = getElementPosition( source ) 
hunter = createVehicle ( 425, x, y, z ) 
warpPedIntoVehicle(source,hunter) 
outputChatBox("#ffffff[#ffffff ".. playername .." #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFHunter #ffffff]", source, 255, 255, 0, true) 
outputChatBox( "** ALERT HUNTER DETECTED **", 255, 000, 000, true ) 
else 
outputChatBox("You Dont Have [ #ffffff3,000 #ffffff1,000,000 #ffffff]", source, 255, 255, 255, true) 
end 
end 
) 
  
addEvent("buyInvisible", true) 
addEventHandler("buyInvisible", rootElement, 
function() 
      if ( getPlayerMoney (source) >= 15000 ) then 
        takePlayerMoney(source, 15000) 
        outputChatBox("#ffffff[#ffffff  #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFInvisible #ffffff]", source, 255, 255, 0, true) 
        setElementAlpha(getPedOccupiedVehicle(source),0) 
        setElementAlpha(source,0) 
        setPlayerNametagShowing(source, false) 
        setTimer( setElementAlpha, 60000, 1, source, 500, true) 
        setTimer( setElementAlpha, 60000, 1, getPedOccupiedVehicle(source), 500, true) 
        setTimer( setPlayerNametagShowing, 60000, 1, source, true, true) 
      else 
        outputChatBox("You Dont Have [#ffffff15,000 #ffffff]", source, 255, 255, 255, true) 
    end 
  end 
) 
  
addEvent("buyHydra", true) 
addEventHandler("buyHydra", rootElement, 
function() 
local pname = getPlayerName( source ) 
if ( getPlayerMoney (source) >= 150 ) then 
takePlayerMoney(source, 150) 
x,y,z = getElementPosition( source ) 
hydra = createVehicle ( 520, x, y, z ) 
warpPedIntoVehicle(source,hydra) 
outputChatBox("Hydra Obtained", source, 255, 255, 0, true) 
outputChatBox( "** ALERT HYDRA DETECTED **", 255, 0, 0, true ) 
else 
outputChatBox("Not enough money.", source, 0, 0, 0, true) 
end 
end 
) 
  
  
  
Posted

بالنسبة لذا الكود ياليت تشوف ردي هنا

viewtopic.php?f=119&t=46443#p462794

هههه حلوة كلمة ' لحسة ' هههه

       addEventHandler("getID",getRootElement(), 
            function(id) 
                if ( id ) then 
                    guiSetText ( GUIEditor_Label[15] , tostring(id))   
                end 
            end 

من وين جبت

getID

اخي تابل ؟

ولو كانت

trigger

لازم معها

addEvent("getID", true) 

ومشكور على خدمة اخونا سلطان

بالمناسبة نسيت قوس هنا

       addEventHandler("getID",getRootElement(), 
            function(id) 
                if ( id ) then 
                    guiSetText ( GUIEditor_Label[15] , tostring(id))   
                end 
            end 

التصحيح

  
       addEventHandler("getID",getRootElement(), 
            function(id) 
                if ( id ) then 
                    guiSetText ( GUIEditor_Label[15] , tostring(id))   
                end 
            end) 

;) ;)

بس عايدي كلنا ننسى ما فيه انسان في العالم عنده مخ خارق

انا دايماً أنسى

' end '

: P

F4MZM4.gif

Posted
مم يعطيك العافيه تابل

على الرد بس

الموضوع الي حاطه ماله دخل ><

و انا مافهمت وش قصدك بكود اي دي الاعب بس هاذا الي قدرت اسويه

كلينت

GUIEditor_Window = {} 
GUIEditor_TabPanel = {} 
GUIEditor_Button = {} 
GUIEditor_Label = {} 
GUIEditor_Edit = {} 
GUIEditor_Image = {} 
  
GUIEditor_Window[1] = guiCreateWindow(425,241,465,368,"| لـوحـة الـشــوب تـصـمـيـم مـسـتـر سـلـطـان الاصـدار الـثـاني |",false) 
GUIEditor_TabPanel[1] = guiCreateTabPanel(9,25,447,334,false,GUIEditor_Window[1]) 
Tab[1] = guiCreateTab("مـــعــلــومـــات",GUIEditor_TabPanel[1]) 
GUIEditor_Label[1] = guiCreateLabel(1,32,442,16,"------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------",false,Tab[1]) 
guiSetFont(GUIEditor_Label[1],"default-bold-small") 
GUIEditor_Label[2] = guiCreateLabel(0,283,445,16,"------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------",false,Tab[1]) 
guiSetFont(GUIEditor_Label[2],"default-bold-small") 
GUIEditor_Label[3] = guiCreateLabel(127,13,196,16,"| ولـــكــم حــيــاكــم الـلـه نــورتـــونــا |",false,Tab[1]) 
guiSetFont(GUIEditor_Label[3],"default-bold-small") 
GUIEditor_Label[4] = guiCreateLabel(6,77,67,18,"YourName : ",false,Tab[1]) 
guiLabelSetColor(GUIEditor_Label[4],255,0,0) 
guiSetFont(GUIEditor_Label[4],"default-bold-small") 
GUIEditor_Label[5] = guiCreateLabel(72,77,278,35,"الاسم",false,Tab[1]) 
guiLabelSetColor(GUIEditor_Label[5],255,20,147) 
guiSetFont(GUIEditor_Label[5],"default-bold-small") 
GUIEditor_Label[6] = guiCreateLabel(5,108,119,17,"YourSkin : ",false,Tab[1]) 
guiLabelSetColor(GUIEditor_Label[6],255,0,0) 
guiSetFont(GUIEditor_Label[6],"default-bold-small") 
GUIEditor_Label[7] = guiCreateLabel(74,170,354,27,"الشخصيه",false,Tab[1]) 
guiLabelSetColor(GUIEditor_Label[7],0,255,0) 
guiSetFont(GUIEditor_Label[7],"default-bold-small") 
GUIEditor_Label[8] = guiCreateLabel(7,140,59,17,"YourPing : ",false,Tab[1]) 
guiLabelSetColor(GUIEditor_Label[8],255,255,0) 
guiSetFont(GUIEditor_Label[8],"default-bold-small") 
GUIEditor_Label[9] = guiCreateLabel(74,108,46,21,"سيريال",false,Tab[1]) 
guiLabelSetColor(GUIEditor_Label[9],0,0,255) 
guiSetFont(GUIEditor_Label[9],"default-bold-small") 
GUIEditor_Label[10] = guiCreateLabel(66,139,153,23,"بنج",false,Tab[1]) 
guiLabelSetColor(GUIEditor_Label[10],255,0,0) 
guiSetFont(GUIEditor_Label[10],"default-bold-small") 
GUIEditor_Label[11] = guiCreateLabel(8,169,67,17,"YourSerial : ",false,Tab[1]) 
guiLabelSetColor(GUIEditor_Label[11],255,255,0) 
guiSetFont(GUIEditor_Label[11],"default-bold-small") 
GUIEditor_Label[12] = guiCreateLabel(87,205,75,24,"فلوس",false,Tab[1]) 
guiLabelSetColor(GUIEditor_Label[12],255,0,0) 
guiSetFont(GUIEditor_Label[12],"default-bold-small") 
GUIEditor_Label[13] = guiCreateLabel(6,205,86,18,"YourMoney : ",false,Tab[1]) 
guiLabelSetColor(GUIEditor_Label[13],0,0,255) 
guiSetFont(GUIEditor_Label[13],"default-bold-small") 
GUIEditor_Label[14] = guiCreateLabel(9,238,48,17,"YourID : ",false,Tab[1]) 
guiLabelSetColor(GUIEditor_Label[14],0,0,255) 
guiSetFont(GUIEditor_Label[14],"default-bold-small") 
GUIEditor_Label[15] = guiCreateLabel(58,233,47,24,"ايدي",false,Tab[1]) 
guiLabelSetColor(GUIEditor_Label[15],255,255,0) 
guiSetFont(GUIEditor_Label[15],"default-bold-small") 
Tab[2] = guiCreateTab("شـــراء ",GUIEditor_TabPanel[1]) 
GUIEditor_Button[1] = guiCreateButton(261,72,112,71,"|| Nitro ||",false,Tab[2]) 
guiSetFont(GUIEditor_Button[1],"default-bold-small") 
GUIEditor_Button[2] = guiCreateButton(261,224,112,71,"|| Repair ||",false,Tab[2]) 
guiSetFont(GUIEditor_Button[2],"default-bold-small") 
GUIEditor_Button[3] = guiCreateButton(79,74,112,71,"|| Flip ||",false,Tab[2]) 
guiSetFont(GUIEditor_Button[3],"default-bold-small") 
GUIEditor_Button[4] = guiCreateButton(74,224,112,71,"|| Invisible ||",false,Tab[2]) 
guiSetFont(GUIEditor_Button[4],"default-bold-small") 
GUIEditor_Image[1] = guiCreateStaticImage(78,7,116,62,"images/fl.png",false,Tab[2]) 
GUIEditor_Image[2] = guiCreateStaticImage(257,5,122,67,"images/ni.png",false,Tab[2]) 
GUIEditor_Image[3] = guiCreateStaticImage(73,154,117,71,"images/in.png",false,Tab[2]) 
GUIEditor_Image[4] = guiCreateStaticImage(259,150,114,75,"images/re.png",false,Tab[2]) 
Tab[3] = guiCreateTab("تسجيل/دخول",GUIEditor_TabPanel[1]) 
GUIEditor_Label[16] = guiCreateLabel(194,34,54,18,"اســـمــك ",false,Tab[3]) 
guiSetFont(GUIEditor_Label[16],"default-bold-small") 
GUIEditor_Edit[1] = guiCreateEdit(55,67,329,43,"",false,Tab[3]) 
GUIEditor_Edit[2] = guiCreateEdit(54,179,329,43,"",false,Tab[3]) 
GUIEditor_Label[17] = guiCreateLabel(178,144,86,18,"كــلــمــة الــســر",false,Tab[3]) 
guiSetFont(GUIEditor_Label[17],"default-bold-small") 
GUIEditor_Button[5] = guiCreateButton(159,239,132,55,"تسجيل/دخول",false,Tab[3]) 
guiSetFont(GUIEditor_Button[5],"default-bold-small") 
  
  
bindKey ( "F2" , "down" , function() 
  
if ( guiGetVisible ( GUIEditor_Window[1] ) == true ) then 
 guiSetVisible ( GUIEditor_Window[1] ,false ) 
 showCursor (false ) 
 guiSetInputEnabled(false) 
  
 elseif ( guiGetVisible ( GUIEditor_Window[1] ) == false ) then 
 guiSetVisible ( GUIEditor_Window[1] ,true ) 
 showCursor (false ) 
 guiSetInputEnabled(true) 
 playSound("mrsl6an.wav") 
  
 end 
 end 
 ) 
  
  
  
        guiSetProperty(GUIEditor_Button[1],"NormalTextColour", "FF00FF00") 
        guiSetProperty(GUIEditor_Button[1],"HoverTextColour", "FF00FF00") 
        guiSetProperty(GUIEditor_Button[2],"NormalTextColour", "FF0000FF") 
        guiSetProperty(GUIEditor_Button[2],"HoverTextColour", "FF0000FF") 
        guiSetProperty(GUIEditor_Button[3],"NormalTextColour", "FFFF0000") 
        guiSetProperty(GUIEditor_Button[3],"HoverTextColour", "FFFF0000") 
        guiSetProperty(GUIEditor_Button[4],"NormalTextColour", "FFFF9900") 
        guiSetProperty(GUIEditor_Button[4],"HoverTextColour", "FFFF9900") 
      
  
addEventHandler("onClientGUIClick",root, 
function() 
     if (source == GUIEditor_Button[5]) then 
          triggerServerEvent("onLoginAndRegister",root,localPlayer,guiGetText(GUIEditor_Edit[1]),guiGetText(GUIEditor_Edit[2])) 
     end 
end) 
  
  
  
    function refreshStats() 
       if guiGetVisible(GUIEditor_Image[1]) then 
          guiSetText(GUIEditor_Label[10],getPlayerPing(localPlayer)) 
          guiSetText(GUIEditor_Label[12],"$"..getPlayerMoney()) 
          guiSetText(GUIEditor_Label[5],getPlayerName(localPlayer)) 
          guiSetText(GUIEditor_Label[9],getPlayerSerial()) 
          guiSetText(GUIEditor_Label[7],getElementModel(localPlayer)) 
          guiSetText(GUIEditor_Label[15],getElementData(localPlayer,"ID")  
       end 
    end 
    addEventHandler("onClientRender", root, refreshStats) 
  
  
------------------------------------command buy 
    function onGuiClick (button, state, absoluteX, absoluteY) 
    if (source == GUIEditor_Button[3]) then 
    triggerServerEvent ("buyFlip", getLocalPlayer()) 
    elseif (source == GUIEditor_Button[1]) then 
    triggerServerEvent ("buyNitro", getLocalPlayer()) 
    elseif (source == GUIEditor_Button[2]) then 
    triggerServerEvent ("buyRepair", getLocalPlayer()) 
    elseif (source == GUIEditor_Button[4]) then 
    triggerServerEvent ("buyInvisible", getLocalPlayer()) 
    end 
    end 
    addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) 
      
     outputChatBox ("#DB8181[shop]: #ffffff.:[ #007fffBy:#460b55Mr.SL6AN #ff0000v2.0 #00ff00.! #ffffff]:. ", 27, 89, 224, true) 
    outputChatBox ("#DB8181[Open]: #FFFFFF#FF0000Press #FF0000'F2' #FFFFFF#2972e0to open #000000The #FF0000Shop.!", 255, 0, 0, true) 

سيرفر

  
  
function LoginAndRegister ( player, user, pass ) 
    local account = getAccount ( user, pass ) 
    if ( account ~= false ) then 
        if (logIn ( player, account, pass ) == true) then 
        else 
             outputChatBox ( " Login Error !", player, 255, 0, 0 ) 
        end 
    else 
        account = addAccount ( user, pass ) 
        if (logIn ( player, account, pass ) == true) then 
        outputChatBox ( "Register Details : [ Username ] : #00FF00" .. user .. " #FFFF1A[ Password ] : #00FF00" .. pass .. "", player, 255, 255, 0 , true ) 
        else 
            outputChatBox ( "Register Error!", player, 255, 255, 0 ) 
  
        end 
    end 
end 
addEvent( "onLoginAndRegister", true ) 
addEventHandler( "onLoginAndRegister", getRootElement(), LoginAndRegister ) 
  
  
  
local rootElement = getRootElement() 
function qq() 
local playername = getPlayerName ( source ) 
if isPedInVehicle(source) then 
if ( getPlayerMoney (source) >= 3000 ) then 
takePlayerMoney(source, 3000) 
addVehicleUpgrade(getPedOccupiedVehicle(source),1010) 
outputChatBox("#ffffff[#ffffff ".. playername .." #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFNitro #ffffff] ", source, 255, 20, 50, true) 
else 
outputChatBox("You Dont Have [ #ffffff3,000 #ffffff]", source, 255, 255, 255, true) 
end  
else 
outputChatBox("You are not in a vehicle", source, 25, 200, 200, true) 
end 
end 
addEvent("buyNitro", true) 
addEventHandler( "buyNitro",getRootElement(),qq ) 
  
function fix() 
local playername = getPlayerName ( source ) 
if isPedInVehicle(source) then 
if ( getPlayerMoney (source) >= 3000 ) then 
takePlayerMoney(source, 3000) 
fixVehicle(getPedOccupiedVehicle(source)) 
outputChatBox("#ffffff[#ffffff ".. playername .." #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFRepair #ffffff] ", source, 255, 255, 0, true) 
else 
outputChatBox("You Dont Have [ #ffffff3,000 #ffffff]", source, 255, 255, 255, true) 
end  
else 
outputChatBox("You are not in a vehicle", source, 255, 50, 200, true) 
end 
end 
addEvent("buyRepair", true) 
addEventHandler( "buyRepair",getRootElement(),fix ) 
  
function flip() 
local playername = getPlayerName ( source ) 
if isPedInVehicle(source) then 
if ( getPlayerMoney (source) >= 3000 ) then 
takePlayerMoney(source, 3000) 
rx, ry, rz = getVehicleRotation (getPedOccupiedVehicle(source))  
setVehicleRotation (getPedOccupiedVehicle(source), rx +180, ry, rz +180) 
outputChatBox("#ffffff[#ffffff ".. playername .." #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFflip #ffffff] ", source, 255, 255, 0, true) 
else 
outputChatBox("You Dont Have [ #ffffff3,000 #ffffff]", source, 255, 255, 255, true) 
end  
else 
outputChatBox("You are not in a vehicle", source, 255, 0, 200, true) 
end 
end 
addEvent("buyFlip", true) 
addEventHandler( "buyFlip",getRootElement(),flip ) 
  
addEvent("buyHunter", true) 
addEventHandler("buyHunter", rootElement, 
function() 
if ( getPlayerMoney (source) >= 100 ) then 
takePlayerMoney(source, 100) 
x,y,z = getElementPosition( source ) 
hunter = createVehicle ( 425, x, y, z ) 
warpPedIntoVehicle(source,hunter) 
outputChatBox("#ffffff[#ffffff ".. playername .." #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFHunter #ffffff]", source, 255, 255, 0, true) 
outputChatBox( "** ALERT HUNTER DETECTED **", 255, 000, 000, true ) 
else 
outputChatBox("You Dont Have [ #ffffff3,000 #ffffff1,000,000 #ffffff]", source, 255, 255, 255, true) 
end 
end 
) 
  
addEvent("buyInvisible", true) 
addEventHandler("buyInvisible", rootElement, 
function() 
      if ( getPlayerMoney (source) >= 15000 ) then 
        takePlayerMoney(source, 15000) 
        outputChatBox("#ffffff[#ffffff  #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFInvisible #ffffff]", source, 255, 255, 0, true) 
        setElementAlpha(getPedOccupiedVehicle(source),0) 
        setElementAlpha(source,0) 
        setPlayerNametagShowing(source, false) 
        setTimer( setElementAlpha, 60000, 1, source, 500, true) 
        setTimer( setElementAlpha, 60000, 1, getPedOccupiedVehicle(source), 500, true) 
        setTimer( setPlayerNametagShowing, 60000, 1, source, true, true) 
      else 
        outputChatBox("You Dont Have [#ffffff15,000 #ffffff]", source, 255, 255, 255, true) 
    end 
  end 
) 
  
addEvent("buyHydra", true) 
addEventHandler("buyHydra", rootElement, 
function() 
local pname = getPlayerName( source ) 
if ( getPlayerMoney (source) >= 150 ) then 
takePlayerMoney(source, 150) 
x,y,z = getElementPosition( source ) 
hydra = createVehicle ( 520, x, y, z ) 
warpPedIntoVehicle(source,hydra) 
outputChatBox("Hydra Obtained", source, 255, 255, 0, true) 
outputChatBox( "** ALERT HYDRA DETECTED **", 255, 0, 0, true ) 
else 
outputChatBox("Not enough money.", source, 0, 0, 0, true) 
end 
end 
) 
  
  
  

الرابط الي أنا حاطه قلت لك شوف ردي مو الموضوع

و الآيدي إذا أنت مو فاهم وش سالفه أمه و شلون جا بكودك

==========================

أنا نسيت قوس هنا

guiSetText(GUIEditor_Label[15],getElementData(localPlayer,"ID") 

التصحيح

guiSetText(GUIEditor_Label[15],getElementData(localPlayer,"ID")) 

==========================

مو معرف playername و هنا

addEvent("buyHunter", true) 
addEventHandler("buyHunter", rootElement, 
function() 
if ( getPlayerMoney (source) >= 100 ) then 
takePlayerMoney(source, 100) 
x,y,z = getElementPosition( source ) 
hunter = createVehicle ( 425, x, y, z ) 
warpPedIntoVehicle(source,hunter) 
outputChatBox("#ffffff[#ffffff ".. playername .." #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFHunter #ffffff]", source, 255, 255, 0, true) 
outputChatBox( "** ALERT HUNTER DETECTED **", 255, 000, 000, true ) 
else 
outputChatBox("You Dont Have [ #ffffff3,000 #ffffff1,000,000 #ffffff]", source, 255, 255, 255, true) 
end 
end 
) 

التصحيح

addEvent("buyHunter", true) 
addEventHandler("buyHunter", rootElement, 
function() 
     if (getPlayerMoney (source) >= 100) then 
          takePlayerMoney(source, 100) 
          local playername = getPlayerName(source) 
          x,y,z = getElementPosition(source) 
          hunter = createVehicle(425, x, y, z) 
          warpPedIntoVehicle(source,hunter) 
          outputChatBox("#ffffff[#ffffff "..playername.." #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFHunter #ffffff]", source, 255, 255, 0, true) 
          outputChatBox("** ALERT HUNTER DETECTED **", 255, 000, 000, true) 
     else 
          outputChatBox("You Dont Have [ #ffffff3,000 #ffffff1,000,000 #ffffff]", source, 255, 255, 255, true) 
     end 
end) 

Teteomar و يا عزيزي

أرجع أقرأ ردي جيداً مرتين أو ثلاث مرات أو حتى مليون لحتى تفهم

و إذا ما فهمت قل لي أفهمك بطريقة أخرى

CiTLh.png
Posted
is there the hell in the earth event called ' getID ' TAPL ?

شكله الصيام مأثر عليك

:D

CiTLh.png
Posted

ممم كذا؟

كلينت

  
 bindKey("F2", "down", function() 
guiSetVisible(GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) 
showCursor(guiGetVisible(GUIEditor_Window[1])) 
guiSetInputEnabled(guiGetVisible(GUIEditor_Window[1])) 
end) 
  
        guiSetProperty(GUIEditor_Button[1],"NormalTextColour", "FF00FF00") 
        guiSetProperty(GUIEditor_Button[1],"HoverTextColour", "FF00FF00") 
        guiSetProperty(GUIEditor_Button[2],"NormalTextColour", "FF0000FF") 
        guiSetProperty(GUIEditor_Button[2],"HoverTextColour", "FF0000FF") 
        guiSetProperty(GUIEditor_Button[3],"NormalTextColour", "FFFF0000") 
        guiSetProperty(GUIEditor_Button[3],"HoverTextColour", "FFFF0000") 
        guiSetProperty(GUIEditor_Button[4],"NormalTextColour", "FFFF9900") 
        guiSetProperty(GUIEditor_Button[4],"HoverTextColour", "FFFF9900") 
      
  
addEventHandler("onClientGUIClick",root, 
function() 
     if (source == GUIEditor_Button[5]) then 
          triggerServerEvent("onLoginAndRegister",root,localPlayer,guiGetText(GUIEditor_Edit[1]),guiGetText(GUIEditor_Edit[2])) 
     end 
end) 
  
  
  
    function refreshStats() 
       if guiGetVisible(GUIEditor_Image[1]) then 
          guiSetText(GUIEditor_Label[10],getPlayerPing(localPlayer)) 
          guiSetText(GUIEditor_Label[12],"$"..getPlayerMoney()) 
          guiSetText(GUIEditor_Label[5],getPlayerName(localPlayer)) 
          guiSetText(GUIEditor_Label[9],getPlayerSerial()) 
          guiSetText(GUIEditor_Label[7],getElementModel(localPlayer)) 
              guiSetText(GUIEditor_Label[15],getElementData(localPlayer,"ID")) 
       end 
    end 
    addEventHandler("onClientRender", root, refreshStats) 
  
  
------------------------------------command buy 
    function onGuiClick (button, state, absoluteX, absoluteY) 
    if (source == GUIEditor_Button[3]) then 
    triggerServerEvent ("buyFlip", getLocalPlayer()) 
    elseif (source == GUIEditor_Button[1]) then 
    triggerServerEvent ("buyNitro", getLocalPlayer()) 
    elseif (source == GUIEditor_Button[2]) then 
    triggerServerEvent ("buyRepair", getLocalPlayer()) 
    elseif (source == GUIEditor_Button[4]) then 
    triggerServerEvent ("buyInvisible", getLocalPlayer()) 
    end 
    end 
    addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) 
      
     outputChatBox ("#DB8181[shop]: #ffffff.:[ #007fffBy:#460b55Mr.SL6AN #ff0000v2.0 #00ff00.! #ffffff]:. ", 27, 89, 224, true) 
    outputChatBox ("#DB8181[Open]: #FFFFFF#FF0000Press #FF0000'F2' #FFFFFF#2972e0to open #000000The #FF0000Shop.!", 255, 0, 0, true) 

سيررفر

  
  
function LoginAndRegister ( player, user, pass ) 
    local account = getAccount ( user, pass ) 
    if ( account ~= false ) then 
        if (logIn ( player, account, pass ) == true) then 
        else 
             outputChatBox ( " Login Error !", player, 255, 0, 0 ) 
        end 
    else 
        account = addAccount ( user, pass ) 
        if (logIn ( player, account, pass ) == true) then 
        outputChatBox ( "Register Details : [ Username ] : #00FF00" .. user .. " #FFFF1A[ Password ] : #00FF00" .. pass .. "", player, 255, 255, 0 , true ) 
        else 
            outputChatBox ( "Register Error!", player, 255, 255, 0 ) 
  
        end 
    end 
end 
addEvent( "onLoginAndRegister", true ) 
addEventHandler( "onLoginAndRegister", getRootElement(), LoginAndRegister ) 
  
  
  
local rootElement = getRootElement() 
function qq() 
local playername = getPlayerName ( source ) 
if isPedInVehicle(source) then 
if ( getPlayerMoney (source) >= 3000 ) then 
takePlayerMoney(source, 3000) 
addVehicleUpgrade(getPedOccupiedVehicle(source),1010) 
outputChatBox("#ffffff[#ffffff ".. playername .." #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFNitro #ffffff] ", source, 255, 20, 50, true) 
else 
outputChatBox("You Dont Have [ #ffffff3,000 #ffffff]", source, 255, 255, 255, true) 
end 
else 
outputChatBox("You are not in a vehicle", source, 25, 200, 200, true) 
end 
end 
addEvent("buyNitro", true) 
addEventHandler( "buyNitro",getRootElement(),qq ) 
  
function fix() 
local playername = getPlayerName ( source ) 
if isPedInVehicle(source) then 
if ( getPlayerMoney (source) >= 3000 ) then 
takePlayerMoney(source, 3000) 
fixVehicle(getPedOccupiedVehicle(source)) 
outputChatBox("#ffffff[#ffffff ".. playername .." #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFRepair #ffffff] ", source, 255, 255, 0, true) 
else 
outputChatBox("You Dont Have [ #ffffff3,000 #ffffff]", source, 255, 255, 255, true) 
end 
else 
outputChatBox("You are not in a vehicle", source, 255, 50, 200, true) 
end 
end 
addEvent("buyRepair", true) 
addEventHandler( "buyRepair",getRootElement(),fix ) 
  
function flip() 
local playername = getPlayerName ( source ) 
if isPedInVehicle(source) then 
if ( getPlayerMoney (source) >= 3000 ) then 
takePlayerMoney(source, 3000) 
rx, ry, rz = getVehicleRotation (getPedOccupiedVehicle(source))  
setVehicleRotation (getPedOccupiedVehicle(source), rx +180, ry, rz +180) 
outputChatBox("#ffffff[#ffffff ".. playername .." #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFflip #ffffff] ", source, 255, 255, 0, true) 
else 
outputChatBox("You Dont Have [ #ffffff3,000 #ffffff]", source, 255, 255, 255, true) 
end 
else 
outputChatBox("You are not in a vehicle", source, 255, 0, 200, true) 
end 
end 
addEvent("buyFlip", true) 
addEventHandler( "buyFlip",getRootElement(),flip ) 
 addEvent("buyHunter", true) 
  
addEventHandler("buyHunter", rootElement, 
function() 
     if (getPlayerMoney (source) >= 100) then 
          takePlayerMoney(source, 100) 
          local playername = getPlayerName(source) 
          x,y,z = getElementPosition(source) 
          hunter = createVehicle(425, x, y, z) 
          warpPedIntoVehicle(source,hunter) 
          outputChatBox("#ffffff[#ffffff "..playername.." #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFHunter #ffffff]", source, 255, 255, 0, true) 
          outputChatBox("** ALERT HUNTER DETECTED **", 255, 000, 000, true) 
     else 
          outputChatBox("You Dont Have [ #ffffff3,000 #ffffff1,000,000 #ffffff]", source, 255, 255, 255, true) 
     end 
end) 
  
addEvent("buyInvisible", true) 
addEventHandler("buyInvisible", rootElement, 
function() 
      if ( getPlayerMoney (source) >= 15000 ) then 
        takePlayerMoney(source, 15000) 
        outputChatBox("#ffffff[#ffffff  #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFInvisible #ffffff]", source, 255, 255, 0, true) 
        setElementAlpha(getPedOccupiedVehicle(source),0) 
        setElementAlpha(source,0) 
        setPlayerNametagShowing(source, false) 
        setTimer( setElementAlpha, 60000, 1, source, 500, true) 
        setTimer( setElementAlpha, 60000, 1, getPedOccupiedVehicle(source), 500, true) 
        setTimer( setPlayerNametagShowing, 60000, 1, source, true, true) 
      else 
        outputChatBox("You Dont Have [#ffffff15,000 #ffffff]", source, 255, 255, 255, true) 
    end 
  end 
) 
  
addEvent("buyHydra", true) 
addEventHandler("buyHydra", rootElement, 
function() 
local pname = getPlayerName( source ) 
if ( getPlayerMoney (source) >= 150 ) then 
takePlayerMoney(source, 150) 
x,y,z = getElementPosition( source ) 
hydra = createVehicle ( 520, x, y, z ) 
warpPedIntoVehicle(source,hydra) 
outputChatBox("Hydra Obtained", source, 255, 255, 0, true) 
outputChatBox( "** ALERT HYDRA DETECTED **", 255, 0, 0, true ) 
else 
outputChatBox("You Not Have enough money.", source, 0, 0, 0, true) 
end 
end 
) 
  
  
  

Posted

ججرب ذا

كلنت

      
    bindKey("F2", "down", function() 
    guiSetVisible(GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) 
    showCursor(guiGetVisible(GUIEditor_Window[1])) 
    guiSetInputEnabled(guiGetVisible(GUIEditor_Window[1])) 
    end) 
      
            guiSetProperty(GUIEditor_Button[1],"NormalTextColour", "FF00FF00") 
            guiSetProperty(GUIEditor_Button[1],"HoverTextColour", "FF00FF00") 
            guiSetProperty(GUIEditor_Button[2],"NormalTextColour", "FF0000FF") 
            guiSetProperty(GUIEditor_Button[2],"HoverTextColour", "FF0000FF") 
            guiSetProperty(GUIEditor_Button[3],"NormalTextColour", "FFFF0000") 
            guiSetProperty(GUIEditor_Button[3],"HoverTextColour", "FFFF0000") 
            guiSetProperty(GUIEditor_Button[4],"NormalTextColour", "FFFF9900") 
            guiSetProperty(GUIEditor_Button[4],"HoverTextColour", "FFFF9900") 
      
      
    function refreshStats() 
        if guiGetVisible(GUIEditor_Image[1]) then 
            guiSetText(GUIEditor_Label[10],getPlayerPing(localPlayer)) 
            guiSetText(GUIEditor_Label[12],"$"..getPlayerMoney()) 
            guiSetText(GUIEditor_Label[5],getPlayerName(localPlayer)) 
            guiSetText(GUIEditor_Label[9],getPlayerSerial()) 
            guiSetText(GUIEditor_Label[7],getElementModel(localPlayer)) 
            guiSetText(GUIEditor_Label[15],getElementData(localPlayer,"ID")) 
        end 
    end 
addEventHandler("onClientRender", root, refreshStats) 
      
      
    ------------------------------------command buy 
    function onGuiClick (button, state, absoluteX, absoluteY) 
        if (source == GUIEditor_Button[3]) then 
            triggerServerEvent ("buyFlip", getLocalPlayer()) 
        elseif (source == GUIEditor_Button[1]) then 
            triggerServerEvent ("buyNitro", getLocalPlayer()) 
        elseif (source == GUIEditor_Button[2]) then 
            triggerServerEvent ("buyRepair", getLocalPlayer()) 
        elseif (source == GUIEditor_Button[4]) then 
            triggerServerEvent ("buyInvisible", getLocalPlayer()) 
        elseif (source == GUIEditor_Button[5]) then 
            username = guiGetText(GUIEditor_Edit[1]) 
            password = guiGetText(GUIEditor_Edit[2]) 
            triggerServerEvent("onLoginAndRegister",getLocalPlayer(),username,password)          
        end 
    end 
addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) 
          
         outputChatBox ("#DB8181[shop]: #ffffff.:[ #007fffBy:#460b55Mr.SL6AN #ff0000v2.0 #00ff00.! #ffffff]:. ", 27, 89, 224, true) 
        outputChatBox ("#DB8181[Open]: #FFFFFF#FF0000Press #FF0000'F2' #FFFFFF#2972e0to open #000000The #FF0000Shop.!", 255, 0, 0, true) 

سيرفر

function LoginAndRegister ( player, username, password ) 
    local account = getAccount ( username, password ) 
    if ( account ~= false ) then 
        if (logIn ( player, account, password ) == true) then 
        else 
             outputChatBox ( " Login Error !", player, 255, 0, 0 ) 
        end 
    else 
        account = addAccount ( username, password ) 
        if (logIn ( player, account, password ) == true) then 
        outputChatBox ( "Register Details : [ Username ] : #00FF00" .. username .. " #FFFF1A[ Password ] : #00FF00" .. password .. "", player, 255, 255, 0 , true ) 
        else 
            outputChatBox ( "Register Error!", player, 255, 255, 0 ) 
  
        end 
    end 
end 
addEvent( "onLoginAndRegister", true ) 
addEventHandler( "onLoginAndRegister", getRootElement(), LoginAndRegister ) 
  
  
function qq() 
    if isPedInVehicle(source) then 
        if ( getPlayerMoney (source) >= 3000 ) then 
            takePlayerMoney(source, 3000) 
            addVehicleUpgrade(getPedOccupiedVehicle(source),1010) 
            outputChatBox("#ffffff[#ffffff ".. getPlayerName ( source ) .." #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFNitro #ffffff] ", source, 255, 20, 50, true) 
        else 
            outputChatBox("You Dont Have [ #ffffff3,000 #ffffff]", source, 255, 255, 255, true) 
        end 
    else 
        outputChatBox("You are not in a vehicle", source, 25, 200, 200, true) 
    end 
end 
addEvent("buyNitro", true) 
addEventHandler( "buyNitro",getRootElement(),qq ) 
  
function fix() 
    if isPedInVehicle(source) then 
        if ( getPlayerMoney (source) >= 3000 ) then 
            takePlayerMoney(source, 3000) 
            fixVehicle(getPedOccupiedVehicle(source)) 
            outputChatBox("#ffffff[#ffffff ".. getPlayerName ( source ) .." #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFRepair #ffffff] ", source, 255, 255, 0, true) 
        else 
            outputChatBox("You Dont Have [ #ffffff3,000 #ffffff]", source, 255, 255, 255, true) 
        end 
    else 
        outputChatBox("You are not in a vehicle", source, 255, 50, 200, true) 
    end 
end 
addEvent("buyRepair", true) 
addEventHandler( "buyRepair",getRootElement(),fix ) 
  
function flip() 
    if isPedInVehicle(source) then 
        if ( getPlayerMoney (source) >= 3000 ) then 
            takePlayerMoney(source, 3000) 
            rx, ry, rz = getVehicleRotation (getPedOccupiedVehicle(source)) 
            setVehicleRotation (getPedOccupiedVehicle(source), rx +180, ry, rz +180) 
            outputChatBox("#ffffff[#ffffff ".. getPlayerName ( source ) .." #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFflip #ffffff] ", source, 255, 255, 0, true) 
        else 
            outputChatBox("You Dont Have [ #ffffff3,000 #ffffff]", source, 255, 255, 255, true) 
        end 
    else 
        outputChatBox("You are not in a vehicle", source, 255, 0, 200, true) 
    end 
end 
addEvent("buyFlip", true) 
addEventHandler( "buyFlip",getRootElement(),flip ) 
  
  
function huntter() 
    if (getPlayerMoney (source) >= 3000000) then 
        takePlayerMoney(source, 3000000) 
        x,y,z = getElementPosition(source) 
        hunter = createVehicle(425, x, y, z) 
        warpPedIntoVehicle(source,hunter) 
        outputChatBox("#ffffff[#ffffff "..getPlayerName(source).." #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFHunter #ffffff]", source, 255, 255, 0, true) 
        outputChatBox("** ALERT HUNTER DETECTED **", 255, 000, 000, true) 
    else 
        outputChatBox("You Dont Have [ #ffffff3,000 #ffffff1,000 #ffffff]", source, 255, 255, 255, true) 
     end 
end 
addEvent("buyHunter", true) 
addEventHandler("buyHunter", root,huntter) 
  
  
function invissble() 
    if ( getPlayerMoney (source) >= 15000 ) then 
        takePlayerMoney(source, 15000) 
        outputChatBox("#ffffff[#ffffff  #ffffff]:#1E90FF has bought a #ffffff[ #1E90FFInvisible #ffffff]", source, 255, 255, 0, true) 
        setElementAlpha(getPedOccupiedVehicle(source),0) 
        setElementAlpha(source,0) 
        setPlayerNametagShowing(source, false) 
        setTimer( setElementAlpha, 60000, 1, source, 500, true) 
        setTimer( setElementAlpha, 60000, 1, getPedOccupiedVehicle(source), 500, true) 
        setTimer( setPlayerNametagShowing, 60000, 1, source, true, true) 
    else 
        outputChatBox("You Dont Have [#ffffff15,000 #ffffff]", source, 255, 255, 255, true) 
    end 
end 
addEvent("buyInvisible", true) 
addEventHandler("buyInvisible", root,invissble) 
  
  
function hyddra() 
    local pname = getPlayerName( source ) 
    if ( getPlayerMoney (source) >= 150 ) then 
        takePlayerMoney(source, 150) 
        x,y,z = getElementPosition( source ) 
        hydra = createVehicle ( 520, x, y, z ) 
        warpPedIntoVehicle(source,hydra) 
        outputChatBox("Hydra Obtained", source, 255, 255, 0, true) 
        outputChatBox( "** ALERT HYDRA DETECTED **", 255, 0, 0, true ) 
    else 
        outputChatBox("You Not Have enough money.", source, 0, 0, 0, true) 
    end 
end 
addEvent("buyHydra", true) 
addEventHandler("buyHydra", root,hyddra) 

Posted
ماشتغل بس خلاص ياليت تقفلو الموضوع ><

ططيب مآششتغل شوف الأخطاء و صصلحها :/

debugscript 3 عن طريق

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