Jump to content

تكفون مساعده سرييع


Recommended Posts

وش الخطاء بذا يا اخوان

حد يساعدني

xAddToGroupFunction_ = function ( Group,Price ) 
    local account = getAccountName(getPlayerAccount(source)); 
    if isGuestAccount(getPlayerAccount(source)) then return outputChatBox("#You must register first",source,255,0,0,true); end 
    if isObjectInACLGroup("user."..account, aclGetGroup(tostring(Group))) then return outputChatBox("#You have this rank, please choose another one",source,0,255,255,true); end 
    local sValue = getElementData( source,'Zombie kills' ) 
    if not sValue then sValue = '0' end 
    local Zombie kills = tonumber( data[1] )   
    if Zombie kills == nil or not tonumber(Zombie kills) then Zombie kills = 0 end 
    if ( Zombie kills >= tonumber(Price))  then 
        aclGroupAddObject (aclGetGroup( tostring(Group)),"user."..account); 
        outputChatBox("#Rank has been added successfully "..Name,source,255,0,0,true); 
    else 
        outputChatBox("#You do not have enough Kills",source,0,255,255,true); 
    end 
end 
addEvent("Accept:the:request",true) 
addEventHandler("Accept:the:request",root,xAddToGroupFunction_) 

Link to comment

Client

---------------------- 
-- Setting 
---------------------- 
  
local Admin = { 
{"VIP","1500"}, 
{"LVL1","4000"}, 
{"LVL2","6000"}, 
{"LVL3","8000"}, 
{"LVL4","11000"}, 
{"LVL5","16000"}, 
{"TheGamer","20000"}, 
{"TheStronger","25000"}, 
{"TheKiller","32000"}, 
{"Professional","43000"}, 
{"Admin","110000"}, 
} 
  
---------------------- 
-- Setting 
---------------------- 
GUIEditor = { 
    gridlist = {}, 
    staticimage = {}, 
    button = {}, 
    label = {} 
} 
  
        GUIEditor.staticimage[1] = guiCreateStaticImage(236, 113, 308, 379, "Back.png", false) 
        guiSetVisible(GUIEditor.staticimage[1], false) 
        guiWindowSetSizable(GUIEditor.staticimage[1], false)  
        guiWindowSetMovable(GUIEditor.staticimage[1], true) 
        GUIEditor.label[1] = guiCreateLabel(11, 59, 159, 18, "rank system :", false, GUIEditor.staticimage[1]) 
        guiSetFont(GUIEditor.label[1], "clear-normal") 
        guiLabelSetColor(GUIEditor.label[1], math.random(0,255),math.random(0,255),math.random(0,255)) 
        GUIEditor.label[2] = guiCreateLabel(28, 10, 252, 17, "Welcome To Z.P server", false, GUIEditor.staticimage[1]) 
        guiSetFont(GUIEditor.label[2], "clear-normal") 
        guiLabelSetColor(GUIEditor.label[2], 255, 153, 0) 
        GUIEditor.label[3] = guiCreateLabel(11, 345, 186, 16, "Buy Rank By : Michael", false, GUIEditor.staticimage[1]) 
        guiSetFont(GUIEditor.label[3], "clear-normal") 
        guiLabelSetColor(GUIEditor.label[3], math.random(0,255),math.random(0,255),math.random(0,255)) 
        GUIEditor.button[1] = guiCreateButton(202, 335, 96, 39, "Buy Rank", false, GUIEditor.staticimage[1]) 
        guiSetFont(GUIEditor.button[1], "clear-normal") 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFF9900") 
        GUIEditor.gridlist[1] = guiCreateGridList(11, 83, 287, 242, false, GUIEditor.staticimage[1])     
        guiGridListAddColumn(GUIEditor.gridlist[1], "Group", 0.7) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "Zombie kills", 0.3) 
  
for k,v in ipairs ( Admin ) do 
row = guiGridListAddRow(GUIEditor.gridlist[1]); 
guiGridListSetItemText(GUIEditor.gridlist[1],row,1,v[1],false,false); 
guiGridListSetItemText(GUIEditor.gridlist[1],row,2,v[2],false,false); 
guiGridListSetItemColor(GUIEditor.gridlist[1],row,1,math.random(0,255),math.random(0,255),math.random(0,255)) 
guiGridListSetItemColor(GUIEditor.gridlist[1],row,2,math.random(0,255),math.random(0,255),math.random(0,255)) 
end 
  
xMainFunctions_ = function ( ) 
 local row, col = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] )  
local Group = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1],row,1 )); 
local Price = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1],row,2 )); 
   if ( row and col and row ~= -1 and col ~= -1 ) then 
triggerServerEvent("Accept:the:request",localPlayer,Group,Price) 
  else 
  outputChatBox("Please Click On The Rank",math.random(0,255),math.random(0,255),math.random(0,255),true); 
  end 
end 
addEventHandler("onClientGUIClick",GUIEditor.button[1],xMainFunctions_,false); 
addEventHandler ( "onClientResourceStart", root, function (    ) 
     if ( isTimer ( timerColor ) ) then killTimer ( timerColor ) end 
     timerColor = setTimer ( function (   ) 
       guiLabelSetColor ( GUIEditor.label[1], math.random ( 255 ), math.random ( 255 ), math.random ( 255 ) ) 
       guiLabelSetColor ( GUIEditor.label[3], math.random ( 255 ), math.random ( 255 ), math.random ( 255 ) ) 
      end, 100, 0 ) 
end ) 
addEventHandler("onClientResourceStart", resourceRoot, 
function() 
setTimer(function() 
for _, random in ipairs(getElementsByType('gui-button',getResourceRootElement(getThisResource())) ) do 
guiSetProperty(random, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) 
end 
end, 100, 0) 
end) 
        bindKey("F7", "down", function() 
        if guiGetVisible(GUIEditor.staticimage[1]) == true then 
        guiSetVisible(GUIEditor.staticimage[1], false) 
        showCursor(false) 
        guiSetInputEnabled(false) 
  else 
        if guiGetVisible(GUIEditor.staticimage[1]) == false then 
        guiSetVisible(GUIEditor.staticimage[1], true) 
        showCursor(false) 
        guiSetInputEnabled(true) 
    end 
  end 
end 
) 

Link to comment

Server

xAddToGroupFunction_ = function ( Group,Price ) 
    local account = getAccountName(getPlayerAccount(source)); 
    if isGuestAccount(getPlayerAccount(source)) then return outputChatBox("#You must register first",source,255,0,0,true); end 
    if isObjectInACLGroup("user."..account, aclGetGroup(tostring(Group))) then return outputChatBox("#You have this rank, please choose another one",source,0,255,255,true); end 
    local sValue = getElementData( source,'Zombie kills' ) 
    if not sValue then sValue = '0' end 
    local Zombie kills = tonumber( data[1] )   
    if Zombie kills == nil or not tonumber(Zombie kills) then Zombie kills = 0 end 
    if ( Zombie kills >= tonumber(Price))  then 
        aclGroupAddObject (aclGetGroup( tostring(Group)),"user."..account); 
        outputChatBox("#Rank has been added successfully "..Name,source,255,0,0,true); 
    else 
        outputChatBox("#You do not have enough Kills",source,0,255,255,true); 
    end 
end 
addEvent("Accept:the:request",true) 
addEventHandler("Accept:the:request",root,xAddToGroupFunction_) 

Link to comment

Client Side --

  
GUIEditor = { 
    gridlist = {}, 
    staticimage = {}, 
    button = {}, 
    label = {} 
} 
  
        GUIEditor.staticimage[1] = guiCreateStaticImage(236, 113, 308, 379, "Back.png", false) 
        guiSetVisible(GUIEditor.staticimage[1], false) 
        guiWindowSetSizable(GUIEditor.staticimage[1], false) 
        guiWindowSetMovable(GUIEditor.staticimage[1], true) 
        GUIEditor.label[1] = guiCreateLabel(11, 59, 159, 18, "rank system :", false, GUIEditor.staticimage[1]) 
        guiSetFont(GUIEditor.label[1], "clear-normal") 
        guiLabelSetColor(GUIEditor.label[1], math.random(0,255),math.random(0,255),math.random(0,255)) 
        GUIEditor.label[2] = guiCreateLabel(28, 10, 252, 17, "Welcome To Z.P server", false, GUIEditor.staticimage[1]) 
        guiSetFont(GUIEditor.label[2], "clear-normal") 
        guiLabelSetColor(GUIEditor.label[2], 255, 153, 0) 
        GUIEditor.label[3] = guiCreateLabel(11, 345, 186, 16, "Buy Rank By : Michael", false, GUIEditor.staticimage[1]) 
        guiSetFont(GUIEditor.label[3], "clear-normal") 
        guiLabelSetColor(GUIEditor.label[3], math.random(0,255),math.random(0,255),math.random(0,255)) 
        GUIEditor.button[1] = guiCreateButton(202, 335, 96, 39, "Buy Rank", false, GUIEditor.staticimage[1]) 
        guiSetFont(GUIEditor.button[1], "clear-normal") 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFF9900") 
        GUIEditor.gridlist[1] = guiCreateGridList(11, 83, 287, 242, false, GUIEditor.staticimage[1])     
        col = guiGridListAddColumn(GUIEditor.gridlist[1], "Group", 0.7) 
        col1 = guiGridListAddColumn(GUIEditor.gridlist[1], "Zombie kills", 0.3) 
  
for k,v in ipairs ( Admin ) do 
row = guiGridListAddRow(GUIEditor.gridlist[1]); 
guiGridListSetItemText(GUIEditor.gridlist[1],row,1,v[1],false,false); 
guiGridListSetItemText(GUIEditor.gridlist[1],row,2,v[2],false,false); 
guiGridListSetItemColor(GUIEditor.gridlist[1],row,1,math.random(0,255),math.random(0,255),math.random(0,255)) 
guiGridListSetItemColor(GUIEditor.gridlist[1],row,2,math.random(0,255),math.random(0,255),math.random(0,255)) 
end 
  
xMainFunctions_ = function ( ) 
 local row, col = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) 
local Group = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1],row,col,1 )); 
local Price = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1],row,col1,1 )); 
   if ( row and col and row ~= -1 and col ~= -1 ) then 
triggerServerEvent("Accept:the:request",localPlayer,Group,Price) 
  else 
  outputChatBox("Please Click On The Rank",math.random(0,255),math.random(0,255),math.random(0,255),true); 
  end 
end 
addEventHandler("onClientGUIClick",GUIEditor.button[1],xMainFunctions_,false); 
addEventHandler ( "onClientResourceStart", root, function (    ) 
     if ( isTimer ( timerColor ) ) then killTimer ( timerColor ) end 
     timerColor = setTimer ( function (   ) 
       guiLabelSetColor ( GUIEditor.label[1], math.random ( 255 ), math.random ( 255 ), math.random ( 255 ) ) 
       guiLabelSetColor ( GUIEditor.label[3], math.random ( 255 ), math.random ( 255 ), math.random ( 255 ) ) 
      end, 100, 0 ) 
end ) 
addEventHandler("onClientResourceStart", resourceRoot, 
function() 
setTimer(function() 
for _, random in ipairs(getElementsByType('gui-button',getResourceRootElement(getThisResource())) ) do 
guiSetProperty(random, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) 
end 
end, 100, 0) 
end) 
        bindKey("F7", "down", function() 
        if guiGetVisible(GUIEditor.staticimage[1]) == true then 
        guiSetVisible(GUIEditor.staticimage[1], false) 
        showCursor(false) 
        guiSetInputEnabled(false) 
  else 
        if guiGetVisible(GUIEditor.staticimage[1]) == false then 
        guiSetVisible(GUIEditor.staticimage[1], true) 
        showCursor(false) 
        guiSetInputEnabled(true) 
    end 
  end 
end 
) 
  

Server Side --

  
xAddToGroupFunction_ = function ( Group,Price ) 
    local account = getAccountName(getPlayerAccount(source)); 
    if isGuestAccount(getPlayerAccount(source)) then return outputChatBox("#You must register first",source,255,0,0,true); end 
    if isObjectInACLGroup("user."..account, aclGetGroup(tostring(Group))) then return outputChatBox("#You have this rank, please choose another one",source,0,255,255,true); end 
    local sValue = getElementData( source,'Zombie kills' ) 
    if not sValue then sValue = '0' end 
    local Zombie kills = tonumber( data[1] )   
    if Zombie kills == nil or not tonumber(Zombie kills) then Zombie kills = 0 end 
    if ( Zombie kills >= tonumber(Price))  then 
        aclGroupAddObject (aclGetGroup( tostring(Group)),"user."..account); 
        outputChatBox("#Rank has been added successfully "..Name,source,255,0,0,true); 
    else 
        outputChatBox("#You do not have enough Kills",source,0,255,255,true); 
    end 
end 
addEvent("Accept:the:request",true) 
addEventHandler("Accept:the:request",root,xAddToGroupFunction_) 
  

لم تتم تجربة ..

Link to comment

-- كلنـت --

---------------------- 
-- Setting 
---------------------- 
  
local Admin = { 
{"VIP","1500"}, 
{"LVL1","4000"}, 
{"LVL2","6000"}, 
{"LVL3","8000"}, 
{"LVL4","11000"}, 
{"LVL5","16000"}, 
{"TheGamer","20000"}, 
{"TheStronger","25000"}, 
{"TheKiller","32000"}, 
{"Professional","43000"}, 
{"Admin","110000"}, 
} 
  
---------------------- 
-- Setting 
---------------------- 
GUIEditor = { 
    gridlist = {}, 
    staticimage = {}, 
    button = {}, 
    label = {} 
} 
  
        GUIEditor.staticimage[1] = guiCreateStaticImage(236, 113, 308, 379, "Back.png", false) 
        guiSetVisible(GUIEditor.staticimage[1], false) 
        guiWindowSetSizable(GUIEditor.staticimage[1], false) 
        guiWindowSetMovable(GUIEditor.staticimage[1], true) 
        GUIEditor.label[1] = guiCreateLabel(11, 59, 159, 18, "rank system :", false, GUIEditor.staticimage[1]) 
        guiSetFont(GUIEditor.label[1], "clear-normal") 
        guiLabelSetColor(GUIEditor.label[1], math.random(0,255),math.random(0,255),math.random(0,255)) 
        GUIEditor.label[2] = guiCreateLabel(28, 10, 252, 17, "Welcome To Z.P server", false, GUIEditor.staticimage[1]) 
        guiSetFont(GUIEditor.label[2], "clear-normal") 
        guiLabelSetColor(GUIEditor.label[2], 255, 153, 0) 
        GUIEditor.label[3] = guiCreateLabel(11, 345, 186, 16, "Buy Rank By : Michael", false, GUIEditor.staticimage[1]) 
        guiSetFont(GUIEditor.label[3], "clear-normal") 
        guiLabelSetColor(GUIEditor.label[3], math.random(0,255),math.random(0,255),math.random(0,255)) 
        GUIEditor.button[1] = guiCreateButton(202, 335, 96, 39, "Buy Rank", false, GUIEditor.staticimage[1]) 
        guiSetFont(GUIEditor.button[1], "clear-normal") 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFF9900") 
        GUIEditor.gridlist[1] = guiCreateGridList(11, 83, 287, 242, false, GUIEditor.staticimage[1])     
        guiGridListAddColumn(GUIEditor.gridlist[1], "Group", 0.7) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "Zombie kills", 0.3) 
  
for k,v in ipairs ( Admin ) do 
row = guiGridListAddRow(GUIEditor.gridlist[1]); 
guiGridListSetItemText(GUIEditor.gridlist[1],row,1,v[1],false,false); 
guiGridListSetItemText(GUIEditor.gridlist[1],row,2,v[2],false,false); 
guiGridListSetItemColor(GUIEditor.gridlist[1],row,1,math.random(0,255),math.random(0,255),math.random(0,255)) 
guiGridListSetItemColor(GUIEditor.gridlist[1],row,2,math.random(0,255),math.random(0,255),math.random(0,255)) 
end 
  
xMainFunctions_ = function ( ) 
 local row, col = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) 
local Group = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1],row,1 )); 
local Price = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1],row,2 )); 
   if ( row and col and row ~= -1 and col ~= -1 ) then 
triggerServerEvent("Accept:the:request",localPlayer,Group,Price) 
  else 
  outputChatBox("Please Click On The Rank",math.random(0,255),math.random(0,255),math.random(0,255),true); 
  end 
end 
addEventHandler("onClientGUIClick",GUIEditor.button[1],xMainFunctions_,false); 
addEventHandler ( "onClientResourceStart", root, function (    ) 
     if ( isTimer ( timerColor ) ) then killTimer ( timerColor ) end 
     timerColor = setTimer ( function (   ) 
       guiLabelSetColor ( GUIEditor.label[1], math.random ( 255 ), math.random ( 255 ), math.random ( 255 ) ) 
       guiLabelSetColor ( GUIEditor.label[3], math.random ( 255 ), math.random ( 255 ), math.random ( 255 ) ) 
      end, 100, 0 ) 
end ) 
addEventHandler("onClientResourceStart", resourceRoot, 
function() 
setTimer(function() 
for _, random in ipairs(getElementsByType('gui-button',getResourceRootElement(getThisResource())) ) do 
guiSetProperty(random, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) 
end 
end, 100, 0) 
end) 
        bindKey("F7", "down", function() 
        if guiGetVisible(GUIEditor.staticimage[1]) == true then 
        guiSetVisible(GUIEditor.staticimage[1], false) 
        showCursor(false) 
        guiSetInputEnabled(false) 
  else 
        if guiGetVisible(GUIEditor.staticimage[1]) == false then 
        guiSetVisible(GUIEditor.staticimage[1], true) 
        showCursor(false) 
        guiSetInputEnabled(true) 
    end 
  end 
end 
) 

-- سيرفر --

xAddToGroupFunction_ = function ( Group,Price ) 
    if isGuestAccount(getPlayerAccount(source)) then return outputChatBox("#You must register first",source,255,0,0,true); end 
    local account = getAccountName(getPlayerAccount(source)); 
    if isObjectInACLGroup("user."..account, aclGetGroup(tostring(Group))) then return outputChatBox("#You have this rank, please choose another one",source,0,255,255,true); end 
    local sValue = getElementData( source,'Zombie kills' ) 
    if not sValue then sValue = '0' end 
    local kills = tonumber( sValue )   
    if kills == nil or not kills then kills = 0 end 
    if (kills >= tonumber(Price)) then 
        aclGroupAddObject (aclGetGroup(tostring(Group)),"user."..account); 
        outputChatBox("#Rank has been added successfully "..Name,source,255,0,0,true); 
    else 
        outputChatBox("#You do not have enough Kills",source,0,255,255,true); 
    end 
end 
addEvent("Accept:the:request",true) 
addEventHandler("Accept:the:request",root,xAddToGroupFunction_) 
Link to comment
-- كلنـت --

---------------------- 
-- Setting 
---------------------- 
  
local Admin = { 
{"VIP","1500"}, 
{"LVL1","4000"}, 
{"LVL2","6000"}, 
{"LVL3","8000"}, 
{"LVL4","11000"}, 
{"LVL5","16000"}, 
{"TheGamer","20000"}, 
{"TheStronger","25000"}, 
{"TheKiller","32000"}, 
{"Professional","43000"}, 
{"Admin","110000"}, 
} 
  
---------------------- 
-- Setting 
---------------------- 
GUIEditor = { 
    gridlist = {}, 
    staticimage = {}, 
    button = {}, 
    label = {} 
} 
  
        GUIEditor.staticimage[1] = guiCreateStaticImage(236, 113, 308, 379, "Back.png", false) 
        guiSetVisible(GUIEditor.staticimage[1], false) 
        guiWindowSetSizable(GUIEditor.staticimage[1], false) 
        guiWindowSetMovable(GUIEditor.staticimage[1], true) 
        GUIEditor.label[1] = guiCreateLabel(11, 59, 159, 18, "rank system :", false, GUIEditor.staticimage[1]) 
        guiSetFont(GUIEditor.label[1], "clear-normal") 
        guiLabelSetColor(GUIEditor.label[1], math.random(0,255),math.random(0,255),math.random(0,255)) 
        GUIEditor.label[2] = guiCreateLabel(28, 10, 252, 17, "Welcome To Z.P server", false, GUIEditor.staticimage[1]) 
        guiSetFont(GUIEditor.label[2], "clear-normal") 
        guiLabelSetColor(GUIEditor.label[2], 255, 153, 0) 
        GUIEditor.label[3] = guiCreateLabel(11, 345, 186, 16, "Buy Rank By : Michael", false, GUIEditor.staticimage[1]) 
        guiSetFont(GUIEditor.label[3], "clear-normal") 
        guiLabelSetColor(GUIEditor.label[3], math.random(0,255),math.random(0,255),math.random(0,255)) 
        GUIEditor.button[1] = guiCreateButton(202, 335, 96, 39, "Buy Rank", false, GUIEditor.staticimage[1]) 
        guiSetFont(GUIEditor.button[1], "clear-normal") 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFF9900") 
        GUIEditor.gridlist[1] = guiCreateGridList(11, 83, 287, 242, false, GUIEditor.staticimage[1])     
        guiGridListAddColumn(GUIEditor.gridlist[1], "Group", 0.7) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "Zombie kills", 0.3) 
  
for k,v in ipairs ( Admin ) do 
row = guiGridListAddRow(GUIEditor.gridlist[1]); 
guiGridListSetItemText(GUIEditor.gridlist[1],row,1,v[1],false,false); 
guiGridListSetItemText(GUIEditor.gridlist[1],row,2,v[2],false,false); 
guiGridListSetItemColor(GUIEditor.gridlist[1],row,1,math.random(0,255),math.random(0,255),math.random(0,255)) 
guiGridListSetItemColor(GUIEditor.gridlist[1],row,2,math.random(0,255),math.random(0,255),math.random(0,255)) 
end 
  
xMainFunctions_ = function ( ) 
 local row, col = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) 
local Group = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1],row,1 )); 
local Price = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1],row,2 )); 
   if ( row and col and row ~= -1 and col ~= -1 ) then 
triggerServerEvent("Accept:the:request",localPlayer,Group,Price) 
  else 
  outputChatBox("Please Click On The Rank",math.random(0,255),math.random(0,255),math.random(0,255),true); 
  end 
end 
addEventHandler("onClientGUIClick",GUIEditor.button[1],xMainFunctions_,false); 
addEventHandler ( "onClientResourceStart", root, function (    ) 
     if ( isTimer ( timerColor ) ) then killTimer ( timerColor ) end 
     timerColor = setTimer ( function (   ) 
       guiLabelSetColor ( GUIEditor.label[1], math.random ( 255 ), math.random ( 255 ), math.random ( 255 ) ) 
       guiLabelSetColor ( GUIEditor.label[3], math.random ( 255 ), math.random ( 255 ), math.random ( 255 ) ) 
      end, 100, 0 ) 
end ) 
addEventHandler("onClientResourceStart", resourceRoot, 
function() 
setTimer(function() 
for _, random in ipairs(getElementsByType('gui-button',getResourceRootElement(getThisResource())) ) do 
guiSetProperty(random, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) 
end 
end, 100, 0) 
end) 
        bindKey("F7", "down", function() 
        if guiGetVisible(GUIEditor.staticimage[1]) == true then 
        guiSetVisible(GUIEditor.staticimage[1], false) 
        showCursor(false) 
        guiSetInputEnabled(false) 
  else 
        if guiGetVisible(GUIEditor.staticimage[1]) == false then 
        guiSetVisible(GUIEditor.staticimage[1], true) 
        showCursor(false) 
        guiSetInputEnabled(true) 
    end 
  end 
end 
) 

-- سيرفر --

xAddToGroupFunction_ = function ( Group,Price ) 
    if isGuestAccount(getPlayerAccount(source)) then return outputChatBox("#You must register first",source,255,0,0,true); end 
    local account = getAccountName(getPlayerAccount(source)); 
    if isObjectInACLGroup("user."..account, aclGetGroup(tostring(Group))) then return outputChatBox("#You have this rank, please choose another one",source,0,255,255,true); end 
    local sValue = getElementData( source,'Zombie kills' ) 
    if not sValue then sValue = '0' end 
    local kills = tonumber( sValue )   
    if kills == nil or not kills then kills = 0 end 
    if (kills >= tonumber(Price)) then 
        aclGroupAddObject (aclGetGroup(tostring(Group)),"user."..account); 
        outputChatBox("#Rank has been added successfully "..Name,source,255,0,0,true); 
    else 
        outputChatBox("#You do not have enough Kills",source,0,255,255,true); 
    end 
end 
addEvent("Accept:the:request",true) 
addEventHandler("Accept:the:request",root,xAddToGroupFunction_) 

اخي اللوحه تفضل فاتحه

Link to comment

كلينت

---------------------- 
-- Setting 
---------------------- 
  
local Admin = { 
{"VIP","1500"}, 
{"LVL1","4000"}, 
{"LVL2","6000"}, 
{"LVL3","8000"}, 
{"LVL4","11000"}, 
{"LVL5","16000"}, 
{"TheGamer","20000"}, 
{"TheStronger","25000"}, 
{"TheKiller","32000"}, 
{"Professional","43000"}, 
{"Admin","110000"}, 
} 
  
---------------------- 
-- Setting 
---------------------- 
GUIEditor = { 
    gridlist = {}, 
    staticimage = {}, 
    button = {}, 
    label = {} 
} 
  
        GUIEditor.staticimage[1] = guiCreateStaticImage(236, 113, 308, 379, "Back.png", false) 
        guiSetVisible(GUIEditor.staticimage[1], false) 
        guiWindowSetSizable(GUIEditor.staticimage[1], false) 
        guiWindowSetMovable(GUIEditor.staticimage[1], true) 
        GUIEditor.label[1] = guiCreateLabel(11, 59, 159, 18, "rank system :", false, GUIEditor.staticimage[1]) 
        guiSetFont(GUIEditor.label[1], "clear-normal") 
        guiLabelSetColor(GUIEditor.label[1], math.random(0,255),math.random(0,255),math.random(0,255)) 
        GUIEditor.label[2] = guiCreateLabel(28, 10, 252, 17, "Welcome To Z.P server", false, GUIEditor.staticimage[1]) 
        guiSetFont(GUIEditor.label[2], "clear-normal") 
        guiLabelSetColor(GUIEditor.label[2], 255, 153, 0) 
        GUIEditor.label[3] = guiCreateLabel(11, 345, 186, 16, "Buy Rank By : Michael", false, GUIEditor.staticimage[1]) 
        guiSetFont(GUIEditor.label[3], "clear-normal") 
        guiLabelSetColor(GUIEditor.label[3], math.random(0,255),math.random(0,255),math.random(0,255)) 
        GUIEditor.button[1] = guiCreateButton(202, 335, 96, 39, "Buy Rank", false, GUIEditor.staticimage[1]) 
        guiSetFont(GUIEditor.button[1], "clear-normal") 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFF9900") 
        GUIEditor.gridlist[1] = guiCreateGridList(11, 83, 287, 242, false, GUIEditor.staticimage[1])     
        guiGridListAddColumn(GUIEditor.gridlist[1], "Group", 0.7) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "Zombie kills", 0.3) 
  
guiSetVisible( GUIEditor.staticimage[1] , false ) 
  
for k,v in ipairs ( Admin ) do 
row = guiGridListAddRow(GUIEditor.gridlist[1]); 
guiGridListSetItemText(GUIEditor.gridlist[1],row,1,v[1],false,false); 
guiGridListSetItemText(GUIEditor.gridlist[1],row,2,v[2],false,false); 
guiGridListSetItemColor(GUIEditor.gridlist[1],row,1,math.random(0,255),math.random(0,255),math.random(0,255)) 
guiGridListSetItemColor(GUIEditor.gridlist[1],row,2,math.random(0,255),math.random(0,255),math.random(0,255)) 
end 
  
xMainFunctions_ = function ( ) 
 local row, col = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) 
local Group = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1],row,1 )); 
local Price = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1],row,2 )); 
   if ( row and col and row ~= -1 and col ~= -1 ) then 
triggerServerEvent("Accept:the:request",localPlayer,Group,Price) 
  else 
  outputChatBox("Please Click On The Rank",math.random(0,255),math.random(0,255),math.random(0,255),true); 
  end 
end 
addEventHandler("onClientGUIClick",GUIEditor.button[1],xMainFunctions_,false); 
addEventHandler ( "onClientResourceStart", root, function (    ) 
     if ( isTimer ( timerColor ) ) then killTimer ( timerColor ) end 
     timerColor = setTimer ( function (   ) 
       guiLabelSetColor ( GUIEditor.label[1], math.random ( 255 ), math.random ( 255 ), math.random ( 255 ) ) 
       guiLabelSetColor ( GUIEditor.label[3], math.random ( 255 ), math.random ( 255 ), math.random ( 255 ) ) 
      end, 100, 0 ) 
end ) 
addEventHandler("onClientResourceStart", resourceRoot, 
function() 
setTimer(function() 
for _, random in ipairs(getElementsByType('gui-button',getResourceRootElement(getThisResource())) ) do 
guiSetProperty(random, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) 
end 
end, 100, 0) 
end) 
        bindKey("F7", "down", function() 
        if guiGetVisible(GUIEditor.staticimage[1]) == true then 
        guiSetVisible(GUIEditor.staticimage[1], false) 
        showCursor(false) 
        guiSetInputEnabled(false) 
  else 
        if guiGetVisible(GUIEditor.staticimage[1]) == false then 
        guiSetVisible(GUIEditor.staticimage[1], true) 
        showCursor(false) 
        guiSetInputEnabled(true) 
    end 
  end 
end 
) 

-- سيرفر --

xAddToGroupFunction_ = function ( Group,Price ) 
    if isGuestAccount(getPlayerAccount(source)) then return outputChatBox("#You must register first",source,255,0,0,true); end 
    local account = getAccountName(getPlayerAccount(source)); 
    if isObjectInACLGroup("user."..account, aclGetGroup(tostring(Group))) then return outputChatBox("#You have this rank, please choose another one",source,0,255,255,true); end 
    local sValue = getElementData( source,'Zombie kills' ) 
    if not sValue then sValue = '0' end 
    local kills = tonumber( sValue )   
    if kills == nil or not kills then kills = 0 end 
    if (kills >= tonumber(Price)) then 
        aclGroupAddObject (aclGetGroup(tostring(Group)),"user."..account); 
        outputChatBox("#Rank has been added successfully "..Name,source,255,0,0,true); 
    else 
        outputChatBox("#You do not have enough Kills",source,0,255,255,true); 
    end 
end 
addEvent("Accept:the:request",true) 
addEventHandler("Accept:the:request",root,xAddToGroupFunction_) 

Link to comment
كلينت
---------------------- 
-- Setting 
---------------------- 
  
local Admin = { 
{"VIP","1500"}, 
{"LVL1","4000"}, 
{"LVL2","6000"}, 
{"LVL3","8000"}, 
{"LVL4","11000"}, 
{"LVL5","16000"}, 
{"TheGamer","20000"}, 
{"TheStronger","25000"}, 
{"TheKiller","32000"}, 
{"Professional","43000"}, 
{"Admin","110000"}, 
} 
  
---------------------- 
-- Setting 
---------------------- 
GUIEditor = { 
    gridlist = {}, 
    staticimage = {}, 
    button = {}, 
    label = {} 
} 
  
        GUIEditor.staticimage[1] = guiCreateStaticImage(236, 113, 308, 379, "Back.png", false) 
        guiSetVisible(GUIEditor.staticimage[1], false) 
        guiWindowSetSizable(GUIEditor.staticimage[1], false) 
        guiWindowSetMovable(GUIEditor.staticimage[1], true) 
        GUIEditor.label[1] = guiCreateLabel(11, 59, 159, 18, "rank system :", false, GUIEditor.staticimage[1]) 
        guiSetFont(GUIEditor.label[1], "clear-normal") 
        guiLabelSetColor(GUIEditor.label[1], math.random(0,255),math.random(0,255),math.random(0,255)) 
        GUIEditor.label[2] = guiCreateLabel(28, 10, 252, 17, "Welcome To Z.P server", false, GUIEditor.staticimage[1]) 
        guiSetFont(GUIEditor.label[2], "clear-normal") 
        guiLabelSetColor(GUIEditor.label[2], 255, 153, 0) 
        GUIEditor.label[3] = guiCreateLabel(11, 345, 186, 16, "Buy Rank By : Michael", false, GUIEditor.staticimage[1]) 
        guiSetFont(GUIEditor.label[3], "clear-normal") 
        guiLabelSetColor(GUIEditor.label[3], math.random(0,255),math.random(0,255),math.random(0,255)) 
        GUIEditor.button[1] = guiCreateButton(202, 335, 96, 39, "Buy Rank", false, GUIEditor.staticimage[1]) 
        guiSetFont(GUIEditor.button[1], "clear-normal") 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFF9900") 
        GUIEditor.gridlist[1] = guiCreateGridList(11, 83, 287, 242, false, GUIEditor.staticimage[1])     
        guiGridListAddColumn(GUIEditor.gridlist[1], "Group", 0.7) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "Zombie kills", 0.3) 
  
guiSetVisible( GUIEditor.staticimage[1] , false ) 
  
for k,v in ipairs ( Admin ) do 
row = guiGridListAddRow(GUIEditor.gridlist[1]); 
guiGridListSetItemText(GUIEditor.gridlist[1],row,1,v[1],false,false); 
guiGridListSetItemText(GUIEditor.gridlist[1],row,2,v[2],false,false); 
guiGridListSetItemColor(GUIEditor.gridlist[1],row,1,math.random(0,255),math.random(0,255),math.random(0,255)) 
guiGridListSetItemColor(GUIEditor.gridlist[1],row,2,math.random(0,255),math.random(0,255),math.random(0,255)) 
end 
  
xMainFunctions_ = function ( ) 
 local row, col = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) 
local Group = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1],row,1 )); 
local Price = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1],row,2 )); 
   if ( row and col and row ~= -1 and col ~= -1 ) then 
triggerServerEvent("Accept:the:request",localPlayer,Group,Price) 
  else 
  outputChatBox("Please Click On The Rank",math.random(0,255),math.random(0,255),math.random(0,255),true); 
  end 
end 
addEventHandler("onClientGUIClick",GUIEditor.button[1],xMainFunctions_,false); 
addEventHandler ( "onClientResourceStart", root, function (    ) 
     if ( isTimer ( timerColor ) ) then killTimer ( timerColor ) end 
     timerColor = setTimer ( function (   ) 
       guiLabelSetColor ( GUIEditor.label[1], math.random ( 255 ), math.random ( 255 ), math.random ( 255 ) ) 
       guiLabelSetColor ( GUIEditor.label[3], math.random ( 255 ), math.random ( 255 ), math.random ( 255 ) ) 
      end, 100, 0 ) 
end ) 
addEventHandler("onClientResourceStart", resourceRoot, 
function() 
setTimer(function() 
for _, random in ipairs(getElementsByType('gui-button',getResourceRootElement(getThisResource())) ) do 
guiSetProperty(random, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) 
end 
end, 100, 0) 
end) 
        bindKey("F7", "down", function() 
        if guiGetVisible(GUIEditor.staticimage[1]) == true then 
        guiSetVisible(GUIEditor.staticimage[1], false) 
        showCursor(false) 
        guiSetInputEnabled(false) 
  else 
        if guiGetVisible(GUIEditor.staticimage[1]) == false then 
        guiSetVisible(GUIEditor.staticimage[1], true) 
        showCursor(false) 
        guiSetInputEnabled(true) 
    end 
  end 
end 
) 

-- سيرفر --

xAddToGroupFunction_ = function ( Group,Price ) 
    if isGuestAccount(getPlayerAccount(source)) then return outputChatBox("#You must register first",source,255,0,0,true); end 
    local account = getAccountName(getPlayerAccount(source)); 
    if isObjectInACLGroup("user."..account, aclGetGroup(tostring(Group))) then return outputChatBox("#You have this rank, please choose another one",source,0,255,255,true); end 
    local sValue = getElementData( source,'Zombie kills' ) 
    if not sValue then sValue = '0' end 
    local kills = tonumber( sValue )   
    if kills == nil or not kills then kills = 0 end 
    if (kills >= tonumber(Price)) then 
        aclGroupAddObject (aclGetGroup(tostring(Group)),"user."..account); 
        outputChatBox("#Rank has been added successfully "..Name,source,255,0,0,true); 
    else 
        outputChatBox("#You do not have enough Kills",source,0,255,255,true); 
    end 
end 
addEvent("Accept:the:request",true) 
addEventHandler("Accept:the:request",root,xAddToGroupFunction_) 

اخي اللوحه للحين تفضل فاتحه وما تغلق

Link to comment

كلينت

  
---------------------- 
-- Setting 
---------------------- 
  
local Admin = { 
{"VIP","1500"}, 
{"LVL1","4000"}, 
{"LVL2","6000"}, 
{"LVL3","8000"}, 
{"LVL4","11000"}, 
{"LVL5","16000"}, 
{"TheGamer","20000"}, 
{"TheStronger","25000"}, 
{"TheKiller","32000"}, 
{"Professional","43000"}, 
{"Admin","110000"}, 
} 
  
---------------------- 
-- Setting 
---------------------- 
GUIEditor = { 
    gridlist = {}, 
    staticimage = {}, 
    button = {}, 
    label = {} 
} 
  
        GUIEditor.staticimage[1] = guiCreateStaticImage(236, 113, 308, 379, "Back.png", false) 
        guiSetVisible(GUIEditor.staticimage[1], false) 
        guiWindowSetSizable(GUIEditor.staticimage[1], false) 
        guiWindowSetMovable(GUIEditor.staticimage[1], true) 
        GUIEditor.label[1] = guiCreateLabel(11, 59, 159, 18, "rank system :", false, GUIEditor.staticimage[1]) 
        guiSetFont(GUIEditor.label[1], "clear-normal") 
        guiLabelSetColor(GUIEditor.label[1], math.random(0,255),math.random(0,255),math.random(0,255)) 
        GUIEditor.label[2] = guiCreateLabel(28, 10, 252, 17, "Welcome To Z.P server", false, GUIEditor.staticimage[1]) 
        guiSetFont(GUIEditor.label[2], "clear-normal") 
        guiLabelSetColor(GUIEditor.label[2], 255, 153, 0) 
        GUIEditor.label[3] = guiCreateLabel(11, 345, 186, 16, "Buy Rank By : Michael", false, GUIEditor.staticimage[1]) 
        guiSetFont(GUIEditor.label[3], "clear-normal") 
        guiLabelSetColor(GUIEditor.label[3], math.random(0,255),math.random(0,255),math.random(0,255)) 
        GUIEditor.button[1] = guiCreateButton(202, 335, 96, 39, "Buy Rank", false, GUIEditor.staticimage[1]) 
        guiSetFont(GUIEditor.button[1], "clear-normal") 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFF9900") 
        GUIEditor.gridlist[1] = guiCreateGridList(11, 83, 287, 242, false, GUIEditor.staticimage[1])     
        guiGridListAddColumn(GUIEditor.gridlist[1], "Group", 0.7) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "Zombie kills", 0.3) 
  
guiSetVisible( GUIEditor.staticimage[1] , false ) 
  
for k,v in ipairs ( Admin ) do 
row = guiGridListAddRow(GUIEditor.gridlist[1]); 
guiGridListSetItemText(GUIEditor.gridlist[1],row,1,v[1],false,false); 
guiGridListSetItemText(GUIEditor.gridlist[1],row,2,v[2],false,false); 
guiGridListSetItemColor(GUIEditor.gridlist[1],row,1,math.random(0,255),math.random(0,255),math.random(0,255)) 
guiGridListSetItemColor(GUIEditor.gridlist[1],row,2,math.random(0,255),math.random(0,255),math.random(0,255)) 
end 
  
xMainFunctions_ = function ( ) 
 local row, col = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) 
local Group = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1],row,1 )); 
local Price = tostring ( guiGridListGetItemText(GUIEditor.gridlist[1],row,2 )); 
   if ( row and col and row ~= -1 and col ~= -1 ) then 
triggerServerEvent("Accept:the:request",localPlayer,Group,Price) 
  else 
  outputChatBox("Please Click On The Rank",math.random(0,255),math.random(0,255),math.random(0,255),true); 
  end 
end 
addEventHandler("onClientGUIClick",GUIEditor.button[1],xMainFunctions_,false); 
addEventHandler ( "onClientResourceStart", root, function (    ) 
     if ( isTimer ( timerColor ) ) then killTimer ( timerColor ) end 
     timerColor = setTimer ( function (   ) 
       guiLabelSetColor ( GUIEditor.label[1], math.random ( 255 ), math.random ( 255 ), math.random ( 255 ) ) 
       guiLabelSetColor ( GUIEditor.label[3], math.random ( 255 ), math.random ( 255 ), math.random ( 255 ) ) 
      end, 100, 0 ) 
end ) 
addEventHandler("onClientResourceStart", resourceRoot, 
function() 
setTimer(function() 
for _, random in ipairs(getElementsByType('gui-button',getResourceRootElement(getThisResource())) ) do 
guiSetProperty(random, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) 
end 
end, 100, 0) 
end) 
        bindKey("F7", "down", function() 
        if guiGetVisible(GUIEditor.staticimage[1]) == true then 
        guiSetVisible(GUIEditor.staticimage[1], false) 
        showCursor(false) 
        guiSetInputEnabled(false) 
  else 
        guiSetVisible(GUIEditor.staticimage[1], true) 
        showCursor(false) 
        guiSetInputEnabled(true) 
  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...