Adham Posted June 29, 2016 Author Share Posted June 29, 2016 guiSetText(memo,'Name: '..Name..' \n Player Serial: '..Serial..'\n Email: '..guiGetText ( editmail )) كدا يعني يجيب الكتب الاعب في الايدت مش الكتبتو انا للاعب الكتب Link to comment
Adham Posted June 29, 2016 Author Share Posted June 29, 2016 انا كيف اعمل guiGetText تريقر في السرفر Link to comment
Adham Posted June 29, 2016 Author Share Posted June 29, 2016 يعني مثلن كذا؟ سرفر addEvent("getSerial",true) addEventHandler("getSerial", root, function(player) local playerName = getPlayerName(player) local playerSerial = getPlayerSerial(player) triggerClientEvent(source,"setSerial", source, playerName, playerSerial,Email) end) addEventHandler("onClientGUIClick", resourceRoot, function() if (source == gridlist) then local sel = guiGridListGetSelectedItem(gridlist) local text = guiGridListGetItemData(gridlist,sel,1) local player = getPlayerFromName(text) if (player) then triggerServerEvent("getSerial", localPlayer, player) guiSetAlpha(memo, 0.65) else guiSetText ( memo , "" ) guiSetAlpha(memo, 0.17) end end end) addEvent("setSerial",true) addEventHandler("setSerial", root, function(Name, Serial,Email) guiSetText(memo,'Name: '..Name..' \n Player Serial: '..Serial..'\n Email: '..Email) end) Link to comment
Adham Posted June 29, 2016 Author Share Posted June 29, 2016 تمام انا ظبتها انا عملت سبورت سيستم وشغاله بالمحلي لاكن في العالمي م اقدر ابعت رساله ولا احد كود addEventHandler("onClientGUIClick",GUIEditor.button[2], function () if guiGetText( GUIEditor.edit[1] ) ~= '' then triggerServerEvent("support",localPlayer,guiGetText(GUIEditor.edit[1])) guiSetText ( GUIEditor.edit[1] , "" ) guiSetEnabled( GUIEditor.button[2] , false) setTimer(guiSetEnabled, 3000, 1, GUIEditor.button[2], true) end end) addEvent("sendmessage2",true) addEventHandler("sendmessage2",root, function(text,name) local hour = getRealTime().hour local minute = getRealTime().minute local second = getRealTime().second+1 local gg = guiGridListAddRow(GUIEditor.gridlist[2]) if ( guiCheckBoxGetSelected( GUIEditor.checkbox[2] ) == true ) then guiGridListSetItemText(GUIEditor.gridlist[2],gg, 1, "["..tonumber(hour)..":"..tonumber(minute)..":" ..tonumber(second).."] [support] "..name:gsub("#%x%x%x%x%x%x", "") ..": " .. text , false, false) guiGridListSetItemColor(GUIEditor.gridlist[2],gg, 1, 0, 255, 0, 255) elseif ( guiCheckBoxGetSelected( GUIEditor.checkbox[1] ) == true ) then guiGridListSetItemText(GUIEditor.gridlist[2],gg, 1, "["..tonumber(hour)..":"..tonumber(minute)..":" ..tonumber(second).."] [Player] "..name:gsub("#%x%x%x%x%x%x", "") ..": " .. text , false, false) guiGridListSetItemColor(GUIEditor.gridlist[2],gg, 1, 255, 136, 0) end end) addEvent("support",true) addEventHandler("support",root, function ( text ) if ( isObjectInACLGroup ( "user." .. getAccountName ( getPlayerAccount ( source ) ),aclGetGroup ( "Support") ) ) then triggerClientEvent ( root,"sendmessage2",root,getPlayerName ( source), text ) 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