Jw8. Posted July 27, 2017 Share Posted July 27, 2017 سلام عليكم عندي مشكله في مود addEventHandler("onClientGUIClick",root, function() if source == bu then local rp = guiGridListGetItemText(gridplayer,guiGridListGetSelectedItem(gridplayer),1) local DmAr = getPlayerFromName(rp) triggerServerEvent("Chanllage", localPlayer, rp) showCursor(true) guiSetEnabled ( bu, false ) setTimer(guiSetEnabled,300,1,bu,true) guiSetVisible(Gwin,true) elseif source == accept then guiSetEnabled ( accept, true ) setTimer(guiSetEnabled,300,1,accept,true) triggerServerEvent("accept",source) setPedSkin ( source, 280 ) elseif source == naccept then guiSetEnabled ( naccept, true ) setTimer(guiSetEnabled,300,1,naccept,true) guiSetVisible(Gwin,false) guiSetEnabled ( bu, true ) setTimer(guiSetEnabled,300,1,bu,true) --guiSetEnabled ( gridplayer, true ) elseif source == cl then guiSetVisible(win,false) showCursor(false) end end ) انا مسوي مود تحديات كل ما اضغط على لاعب واكبس بوتين تجي لوحة ثانيه اسم الوحة حقتي win والوحة الي ابيه ترسل من القريد ليست Gwin Link to comment
Mhmd.z Posted July 27, 2017 Share Posted July 27, 2017 سطر 14 وسطر 15 استبدل سويرس ب لوكال بلاير Link to comment
Jw8. Posted July 27, 2017 Author Share Posted July 27, 2017 17 minutes ago, Mhmd.z said: سطر 14 وسطر 15 استبدل سويرس ب لوكال بلاير لالاهنت صلحه لي لاني مو عارف Link to comment
Mhmd.z Posted July 27, 2017 Share Posted July 27, 2017 addEventHandler("onClientGUIClick",root, function() if source == bu then local rp = guiGridListGetItemText(gridplayer,guiGridListGetSelectedItem(gridplayer),1) local DmAr = getPlayerFromName(rp) triggerServerEvent("Chanllage", localPlayer, rp) showCursor(true) guiSetEnabled ( bu, false ) setTimer(guiSetEnabled,300,1,bu,true) guiSetVisible(Gwin,true) elseif source == accept then guiSetEnabled ( accept, true ) setTimer(guiSetEnabled,300,1,accept,true) triggerServerEvent("accept",localPlayer) setPedSkin ( localPlayer, 280 ) elseif source == naccept then guiSetEnabled ( naccept, true ) setTimer(guiSetEnabled,300,1,naccept,true) guiSetVisible(Gwin,false) guiSetEnabled ( bu, true ) setTimer(guiSetEnabled,300,1,bu,true) --guiSetEnabled ( gridplayer, true ) elseif source == cl then guiSetVisible(win,false) showCursor(false) end end ) Link to comment
Jw8. Posted July 27, 2017 Author Share Posted July 27, 2017 4 minutes ago, Mhmd.z said: addEventHandler("onClientGUIClick",root, function() if source == bu then local rp = guiGridListGetItemText(gridplayer,guiGridListGetSelectedItem(gridplayer),1) local DmAr = getPlayerFromName(rp) triggerServerEvent("Chanllage", localPlayer, rp) showCursor(true) guiSetEnabled ( bu, false ) setTimer(guiSetEnabled,300,1,bu,true) guiSetVisible(Gwin,true) elseif source == accept then guiSetEnabled ( accept, true ) setTimer(guiSetEnabled,300,1,accept,true) triggerServerEvent("accept",localPlayer) setPedSkin ( localPlayer, 280 ) elseif source == naccept then guiSetEnabled ( naccept, true ) setTimer(guiSetEnabled,300,1,naccept,true) guiSetVisible(Gwin,false) guiSetEnabled ( bu, true ) setTimer(guiSetEnabled,300,1,bu,true) --guiSetEnabled ( gridplayer, true ) elseif source == cl then guiSetVisible(win,false) showCursor(false) end end ) كل ما ارسل لخوي لي ترسل+ + ابي ما يبين اسمي الكود : function update () guiGridListClear(gridplayer) for i,v in ipairs (getElementsByType("player")) do local rp = guiGridListAddRow (gridplayer) guiGridListSetItemText (gridplayer,rp,1,getPlayerName(v):gsub("#%x%x%x%x%x%x", ""),false,false) outputChatBox("[Chanllage System]Please Seclect Player",player,255,0,0,true) end end addEventHandler ("onClientResourceStart",resourceRoot,update) addEventHandler ("onClientPlayerJoin",root,update) addEventHandler ("onClientPlayerChangeNick",root,update) addEventHandler ("onClientPlayerQuit",root,update) addCommandHandler("ste",root,update) Link to comment
' A F . Posted July 28, 2017 Share Posted July 28, 2017 وش تبي تسوي عشان افيدكك مافهمت . Link to comment
Adham Posted July 28, 2017 Share Posted July 28, 2017 اعتقد السكن في كلنت وهمية .. من الأحسن استعمل triggerServerEvent setElementModel 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