
likemike12
Members-
Posts
164 -
Joined
-
Last visited
Everything posted by likemike12
-
hey there can anyone help me i wanna learn how to make a mode (S) like a mode on serial or on account name or in a rank from the acl mode like superman or anything else i know it's hard can anyone help me in this mode
-
السلام عليكم ورحمة الله وبركاته يا اخواني ممكن حد يساعدني بكود جعل المود خاص على سيريال او على اسم المستخدم مثل مود سوبر مان او يكون شغال على رتبه خاصه ادري انه صعب بس يا اخواني الواحد بيتعلم من الصعب ادري انه مفيش كثير ناس بيحبو يساعدو بس وربي مراح الزق فيكم بس ساعدوني +ادري انه في كثير ناس محترفين وما يساعدو يا اخوان وش فايدة العلم ازا ما شاركته ما بلزق فحد انا وشكراً
-
اخي اللوحه للحين تفضل فاتحه وما تغلق
-
اخي اللوحه تفضل فاتحه
-
بس غلط اصلاً معرف كيف احذف ض1
-
اخي طلعلي كذا triggered serverside event Accept:the:request, but event is not added serverside
-
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 ) 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_)
-
ممكن اي حد يصلحه لي ويعطيني ياه وشكرا
-
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_)
-
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 )
-
ممكن تصلحلي المود وتعطيني ياه
-
وش الخطاء بذا يا اخوان حد يساعدني 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_)
-
شكراً اخي ذا كود صح وانا صنعت كود صح ياخي وينك من زمان عني ممكن تضيفني صديق
-
client bindKey("x","down", function() triggerServerEvent("Mico",localPlayer) end ) server addEvent ("Mico",true) addEventHandler("Mico",root, function() local x,y,z = getElementPosition(source) nn = createVehicle (411,x,y,z) warpPedIntoVehicle(source,nn) end ) ياخي سويته لوحدي خلاص شكراً على كل حال
-
شرايك تجرب الكود ذذ ؟ bindKey("x","down", function() local x,y,z = getElementPosition(source) nn = createVehicle (411,x,y,z) warpPedIntoVehicle(source,nn) end ) وحطه في الكلينت ولا تسوي دافور انه لازم سيرفر اخي لازمني كود لتنزيل السياره في سيرفر لازم اسوي triggerServerEvent
-
ياخي في مشكله بالانتقال للسياره ومشكله برسبنة السياره
-
ياخي مشكله بتنزيل السياره اضن لازم كود تنزيل السياره يكون في سيرفر
-
طيب كيف اصير انزل سيارات الحين صح لازم يكون كود السياره في سيرفر ؟
-
WARNING: fff\Server.lua:6: Bad argument @ 'bindKey' [Expected player at argument 1, got string 'x']
-
WARNING: fff\Server.lua:6: Bad argument @ 'bindKey' [Expected player at argument 1, got string 'x']
-
WARNING: fff\Server.lua:6: Bad argument @ 'bindKey' [Expected player at argument 1, got string 'x']
-
ERROR: Loading script failed: fff\Server.lua:7: ')' expected (to close '(' at line 1) near 'end'
-
السلام عليكم ممكن اي حد يصلحلي الكود ذا bindKey("x","down", function() nn = createVehicle (411,getElementPosition(source)) warpPedIntoVehicle(source,nn) end end end )