|=>Z,3(^e^)_M_<=|[2] Posted December 6, 2016 Author Share Posted December 6, 2016 22 hours ago, Master_MTA said: ERROR: Client Z3,(^e^)_<=| triggered serverside event onGetPlayers,but event is not added serverside Link to comment
Kara Posted December 6, 2016 Share Posted December 6, 2016 (edited) onGetPlayers يقولك انه حدث مب موجود giverankبس انت الحدث حقك مسويه في السيرفر تاكد من اسم التريقر في الكلينت نفسم السم الحدث في السيرفر Edited December 6, 2016 by Kara Link to comment
Master_MTA Posted December 6, 2016 Share Posted December 6, 2016 1 hour ago, Kara said: ضيف المود لي قروب الادمن وسويله رستارت وشغل الديبق سكربت وقول شن يقولك لما تشتري الرتبه شكله زي ما قلتلك ما ضافه جروب ادمن Link to comment
Abu-Solo Posted December 6, 2016 Share Posted December 6, 2016 لازم تضيفه لـ قروب الادمن resource. اسم المود Link to comment
|=>Z,3(^e^)_M_<=|[2] Posted December 6, 2016 Author Share Posted December 6, 2016 22 hours ago, Kara said: ضيف المود لي قروب الادمن وسويله رستارت وشغل الديبق سكربت وقول شن يقولك لما تشتري الرتبه ضفت ولله جربوها انتو و قولو ويش اليطلعلكم عشان تصدقو addEvent("giverank",true) addEventHandler("giverank",root,function() local accName = getAccountName(getPlayerAccount(source)) local PlayerMoney = getPlayerMoney(source) if PlayerMoney >= 1000 then takePlayerMoney(source,1000) setAccountData(accName, "Coins", (getAccountData(accName,"Coins")-1000))---------هذي بالكوينز مثلا---طبعا 4 بدلها باللي عايزو if accName then aclGroupAddObject (aclGetGroup("Admin"), "user."..accName) setTimer(function() aclGroupRemoveObject (aclGetGroup("Admin"), "user."..accName) end,6000*10,1)----------------هنا بدل 10 برقم الدقايق اللي تبي end end end ) دا سيرفر GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[2] = guiCreateWindow(268, 16, 726, 574, "By Admin", false) guiWindowSetSizable(GUIEditor.window[2], false) guiSetVisible(GUIEditor.window[2],false) guiSetAlpha(GUIEditor.window[2], 0.95) guiSetProperty(GUIEditor.window[2], "CaptionColour", "FFFEFFFF") GUIEditor.button[1] = guiCreateButton(522, 191, 175, 30, "By Admin", false, GUIEditor.window[2]) guiSetFont(GUIEditor.button[1], "default-bold-small") close = guiCreateButton(258, 528, 206, 36, "Close", false, GUIEditor.window[2]) guiSetFont(close, "sa-header") guiSetProperty(close, "NormalTextColour", "FFFF0000") guiSetFont(l, "default-bold-small") ll = guiCreateLabel(411, 461, 356, 15,"Admin = 1000 Coins", false, GUIEditor.window[2]) guiSetFont(ll, "default-bold-small") guiLabelSetColor(ll, 253, 59, 0) Coins = guiCreateLabel(15, 513, 301, 15, "", false, GUIEditor.window[2]) guiLabelSetColor(Coins, 253, 255, 0) guiSetFont(Coins, "default-bold-small") end ) addEventHandler ("onClientGUIClick", root, function() if (source == close) then guiSetVisible(GUIEditor.window[2], false) showCursor(false) guiSetInputEnabled(false) end end ) addEventHandler(" onClientGUIClick",root,function() if source == GUIEditor.button[1] then triggerServerEvent(localPlayer,"giverank",localPlayer) end end ) bindKey( "F2", "down",function () guiSetVisible(GUIEditor.window[2], not guiGetVisible(GUIEditor.window[2])) showCursor(guiGetVisible(GUIEditor.window[2])) guiSetInputEnabled(guiGetVisible(GUIEditor.window[2])) guiSetText ( Coins, "Your Coins : "..getElementData(localPlayer,"Coins").. "" ) if ( guiGetVisible(GUIEditor.window[2]) ) then triggerServerEvent("onGetPlayers",localPlayer) end end) دا كلنت Link to comment
Master_MTA Posted December 6, 2016 Share Posted December 6, 2016 2 hours ago, |=>Z,3(^e^)_M_<=|[2] said: ضفت ولله جربوها انتو و قولو ويش اليطلعلكم عشان تصدقو addEvent("giverank",true) addEventHandler("giverank",root,function() local accName = getAccountName(getPlayerAccount(source)) local PlayerMoney = getPlayerMoney(source) if PlayerMoney >= 1000 then takePlayerMoney(source,1000) setAccountData(accName, "Coins", (getAccountData(accName,"Coins")-1000))---------هذي بالكوينز مثلا---طبعا 4 بدلها باللي عايزو if accName then aclGroupAddObject (aclGetGroup("Admin"), "user."..accName) setTimer(function() aclGroupRemoveObject (aclGetGroup("Admin"), "user."..accName) end,6000*10,1)----------------هنا بدل 10 برقم الدقايق اللي تبي end end end ) دا سيرفر GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[2] = guiCreateWindow(268, 16, 726, 574, "By Admin", false) guiWindowSetSizable(GUIEditor.window[2], false) guiSetVisible(GUIEditor.window[2],false) guiSetAlpha(GUIEditor.window[2], 0.95) guiSetProperty(GUIEditor.window[2], "CaptionColour", "FFFEFFFF") GUIEditor.button[1] = guiCreateButton(522, 191, 175, 30, "By Admin", false, GUIEditor.window[2]) guiSetFont(GUIEditor.button[1], "default-bold-small") close = guiCreateButton(258, 528, 206, 36, "Close", false, GUIEditor.window[2]) guiSetFont(close, "sa-header") guiSetProperty(close, "NormalTextColour", "FFFF0000") guiSetFont(l, "default-bold-small") ll = guiCreateLabel(411, 461, 356, 15,"Admin = 1000 Coins", false, GUIEditor.window[2]) guiSetFont(ll, "default-bold-small") guiLabelSetColor(ll, 253, 59, 0) Coins = guiCreateLabel(15, 513, 301, 15, "", false, GUIEditor.window[2]) guiLabelSetColor(Coins, 253, 255, 0) guiSetFont(Coins, "default-bold-small") end ) addEventHandler ("onClientGUIClick", root, function() if (source == close) then guiSetVisible(GUIEditor.window[2], false) showCursor(false) guiSetInputEnabled(false) end end ) addEventHandler(" onClientGUIClick",root,function() if source == GUIEditor.button[1] then triggerServerEvent(localPlayer,"giverank",localPlayer) end end ) bindKey( "F2", "down",function () guiSetVisible(GUIEditor.window[2], not guiGetVisible(GUIEditor.window[2])) showCursor(guiGetVisible(GUIEditor.window[2])) guiSetInputEnabled(guiGetVisible(GUIEditor.window[2])) guiSetText ( Coins, "Your Coins : "..getElementData(localPlayer,"Coins").. "" ) if ( guiGetVisible(GUIEditor.window[2]) ) then triggerServerEvent("onGetPlayers",localPlayer) end end) دا كلنت تم الحل ارسلتلك الكود بالخاص Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now