Jump to content

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


Recommended Posts

السلام عليكم

معي لوحه جريد ليست ساعدني فيها دابل

شوفوها

local Skins = { 
-- {"skin" , "ID"} 
  { "Skin1", "1" }, 
  { "Skin2", "1" }, 
  { "Skin3", "55" }, 
}   
addEventHandler("onClientResourceStart", resourceRoot, 
    function () 
        Grid = guiCreateGridList(16, 71, 277, 400, false) 
       guiGridListAddColumn(Grid, "Skin", 0.9)    
       guiGridListAddColumn(Grid, "ID", 0.9)    
        for k,v in ipairs(Skins) do 
        local row = guiGridListAddRow(Grid) 
        guiGridListSetItemText(Grid,row,1, v[1],false,false) 
        guiGridListSetItemText(Grid,row,2, v[2],false,false) 
end 
    end) 
        --------------------------------------------------------------- 
addEventHandler("onClientDoubleGUIClick", root , 
function() 
    if source == Grid then 
           SKIN = guiGridListGetItemText ( Grid, guiGridListGetSelectedItem ( Grid ), 2 ) 
           ID = guiGridListGetItemText ( Grid, guiGridListGetSelectedItem ( Grid ), 3 ) 
            triggerServerEvent("skin", localPlayer , Skin ,ID) 
    end 
end ) 
------------------------------------------------------------------------ 
  
---------------------------------------- 
addEvent ( "skin" ,true ) 
addEventHandler("skin, root, 
function (Skin, ID) 
 setElementModel(source, tonumber(1)) 
end 
) 
 

فهمت كل شيئ بس معرفت كيف احطها اول ما يسجل الاعب تطلعله ممكن تقلولي كيف احطها كذا

او احطها بزر

Link to comment
  • Replies 58
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

حق لوحه التسجيل دقيقه

addEvent ("onLogin", true) 
addEventHandler ("onLogin", root, 
    function (user, pass) 
        local account = getAccount (user, pass) 
        if (account) then 
            if logIn (source, account, pass) then 
                outputChatBox ("You Logged in Sucessfuly With User : #00FF00[ " .. user .. " ]!", source, 255, 255, 0, true) 
                setElementModel (source, 287) 
            else 
                outputChatBox ("خطا !!", source, 255, 255, 0) 
            end 
        else 
            outputChatBox ("خطا اسم الحساب والباسورد", source, 255, 255, 0) 
        end 
    end 
) 
  
addEvent ("onRegister", true) 
addEventHandler ("onRegister", root, 
    function (user, pass) 
        if not getAccount (user) then 
            local account = addAccount (user, pass) 
            if (account) then 
                if logIn (source, user, pass) then 
                    outputChatBox ("You Registerd and Logged in Sucessfuly - Please Remember Your User/Password!", source, 255, 255, 0) 
                    outputChatBox ("Register Details : [ Username ] : #00FF00" .. user .. " #FFFF1A[ Password ] : #00FF00" .. pass .. "", source, 255, 255, 0 , true) 
                    setElementModel (source, 287) 
                    triggerClientEvent ( source, "HideTheWindow", source ) 
                else 
                    outputChatBox ("Register/Login error!", source, 255, 255, 0) 
                end 
            else 
                outputChatBox ("Account name is already exist.", source, 255, 0, 0) 
            end 
        end 
    end 
) 

Link to comment
اذا اللاعب دخل راح يكون عنده تحميل وفنكش اظهار اللوحة كلنت

يعني ما تقدر بس حط أذا أشتغل السكربت يظهر اللوحة وما يحتاج ترايقر

addEventHandler ("onClientResourceStart",resourceRoot, 
function (  ) 
guiSetVisible (window , true ) 
    end 
 ) 
  

Link to comment

-- Client Side 
  
  
local Skins = { 
-- {"skin" , "ID"} 
  { "Skin1", "1" }, 
  { "Skin2", "1" }, 
  { "Skin3", "55" }, 
}   
addEventHandler("onClientResourceStart", resourceRoot, 
    function () 
        Grid = guiCreateGridList(16, 71, 277, 400, false) 
        guiSetVisible (Grid ,false ) 
       guiGridListAddColumn(Grid, "Skin", 0.9)   
       guiGridListAddColumn(Grid, "ID", 0.9)   
        for k,v in ipairs(Skins) do 
        local row = guiGridListAddRow(Grid) 
        guiGridListSetItemText(Grid,row,1, v[1],false,false) 
        guiGridListSetItemText(Grid,row,2, v[2],false,false) 
end 
    end 
) 
  
  
addEventHandler("onClientDoubleGUIClick", root , 
function() 
    if source == Grid then 
           SKIN = guiGridListGetItemText ( Grid, guiGridListGetSelectedItem ( Grid ), 2 ) 
           ID = guiGridListGetItemText ( Grid, guiGridListGetSelectedItem ( Grid ), 3 ) 
            triggerServerEvent("skin", localPlayer , Skin ,ID) 
    end 
end 
) 
  
addEvent ("Trigger",true ) 
addEventHandler ("Trigger",root, 
function () 
guiSetVisible (Grid ,true ) 
    end 
 ) 
  

-- Server side 
  
addEventHandler ("onPlayerLogin",root, 
function () 
triggerClientEvent (source , "Trigger",source ) 
     end 
 ) 
addEvent ( "skin" ,true ) 
addEventHandler("skin", root, 
function (Skin, ID) 
setElementModel(source, tonumber(1)) 
end 
) 
Link to comment
-- Client Side 
  
  
local Skins = { 
-- {"skin" , "ID"} 
  { "Skin1", "1" }, 
  { "Skin2", "1" }, 
  { "Skin3", "55" }, 
}   
addEventHandler("onClientResourceStart", resourceRoot, 
    function () 
        Grid = guiCreateGridList(16, 71, 277, 400, false) 
        guiSetVisible (Grid ,false ) 
       guiGridListAddColumn(Grid, "Skin", 0.9)   
       guiGridListAddColumn(Grid, "ID", 0.9)   
        for k,v in ipairs(Skins) do 
        local row = guiGridListAddRow(Grid) 
        guiGridListSetItemText(Grid,row,1, v[1],false,false) 
        guiGridListSetItemText(Grid,row,2, v[2],false,false) 
end 
    end 
) 
  
  
addEventHandler("onClientDoubleGUIClick", root , 
function() 
    if source == Grid then 
           SKIN = guiGridListGetItemText ( Grid, guiGridListGetSelectedItem ( Grid ), 2 ) 
           ID = guiGridListGetItemText ( Grid, guiGridListGetSelectedItem ( Grid ), 3 ) 
            triggerServerEvent("skin", localPlayer , Skin ,ID) 
    end 
end 
) 
  
addEvent ("Trigger",true ) 
addEventHandler ("Trigger",root, 
function () 
guiSetVisible (Grid ,true ) 
    end 
 ) 
  

-- Server side 
  
addEventHandler ("onPlayerLogin",root, 
function () 
triggerClientEvent (source , "Trigger",source ) 
     end 
 ) 
addEvent ( "skin" ,true ) 
addEventHandler("skin", root, 
function (Skin, ID) 
setElementModel(source, tonumber(1)) 
end 
) 

ابيه بزر بوتون لما يضغط على البوتون ياخذ + ما اشتغل مدري ليه الوحه اشتغلت بس لما ابي اخذ الشخصيه ما اشتغل والدي بوق ما يقلي شيئ

Link to comment

حط الجدول كذا

local Skins = { 
-- {"skin" , "ID"} 
  { "Skin1", 1}, 
  { "Skin2", 2 }, 
  { "Skin3", 3 }, 
}   

ملف السيرفر حطه كذا

-- Server side 
  
addEventHandler ("onPlayerLogin",root, 
function () 
triggerClientEvent (source , "Trigger",source ) 
     end 
 ) 
addEvent ( "skin" ,true ) 
addEventHandler("skin", root, 
function (Skin, ID) 
setElementModel(source, tonumber(ID)) 
end 
) 
Link to comment

-- Client Side 
  
  
local Skins = { 
-- {"skin" , "ID"} 
  { "Skin1", 1}, 
  { "Skin2", 2 }, 
  { "Skin3", 3 }, 
}   
  
addEventHandler("onClientResourceStart", resourceRoot, 
    function () 
        Grid = guiCreateGridList(16, 71, 277, 400, false) 
        guiSetVisible (Grid ,false ) 
       guiGridListAddColumn(Grid, "Skin", 0.9)   
       guiGridListAddColumn(Grid, "ID", 0.9)   
        for k,v in ipairs(Skins) do 
        local row = guiGridListAddRow(Grid) 
        guiGridListSetItemText(Grid,row,1, v[1],false,false) 
        guiGridListSetItemText(Grid,row,2, v[2],false,false) 
end 
    end 
) 
  
  
addEventHandler("onClientGUIClick", root , 
function() 
    if source == Grid then 
           SKIN = guiGridListGetItemText ( Grid, guiGridListGetSelectedItem ( Grid ), 2 ) 
           ID = guiGridListGetItemText ( Grid, guiGridListGetSelectedItem ( Grid ), 3 ) 
            triggerServerEvent("skin", localPlayer , Skin ,ID) 
    end 
end 
) 
  
addEvent ("Trigger",true ) 
addEventHandler ("Trigger",root, 
function () 
guiSetVisible (Grid ,true ) 
    end 
 ) 

 

 

-- Server side 
  
addEventHandler ("onPlayerLogin",root, 
function () 
triggerClientEvent (source , "Trigger",source ) 
     end 
 ) 
addEvent ( "skin" ,true ) 
addEventHandler("skin", root, 
function (Skin, ID) 
setElementModel(client, ID) 
end 
) 

Link to comment

  
addEventHandler("onClientGUIClick", root , 
function() 
    if source == Grid then 
     if ( guiGridListGetSelectedItem(Grid) == -1 ) then return end 
      local SKIN = guiGridListGetItemText ( Grid, guiGridListGetSelectedItem ( Grid ), 1) 
         local  ID = guiGridListGetItemText ( Grid, guiGridListGetSelectedItem ( Grid ), 2) 
            triggerServerEvent("skin", localPlayer , SKIN , ID ) 
  end 
end 
) 
  
Edited by Guest
Link to comment

طيب الحين اكلم صديقي سكايب اشوفه

المهم

ابيك تشف لي هل كود

addEvent ( "hassan", true ) 
addEventHandler ( "hassan",root 
function () 
for k, v in ipairs ( getElementsByType ( "player" ) ) do 
kickPlayer ( v, "صيانة" ) 
if isObjectInACLGroup ( 'user.' .. getAccountName ( getPlayerAccount ( player ) ), aclGetGroup ( 'Console' ) ) then 
  
  

كيف اخليه ما يطرد الكونسل

شو بحط بعد ما يتحقق انه كونسل فيني احط للكيك فولس ؟

Link to comment

addEvent ( "hassan", true ) 
addEventHandler ( "hassan",root, 
function () 
for k, v in ipairs ( getElementsByType ( "player" ) ) do 
if not isObjectInACLGroup ( 'user.' .. getAccountName ( getPlayerAccount ( source ) ), aclGetGroup ( 'Console' ) ) then 
kickPlayer ( v, "صيانة" ) 
              end 
        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...