Jw8. Posted January 6, 2017 Author Share Posted January 6, 2017 3 minutes ago, N3xT said: عدل السيرفر لـ : addEvent ("Trigger",true) addEventHandler ("Trigger",root, function ( p ) local player = getPlayerFromName(p) if player then outputChatBox ( "الرسالة هنا", player, 0, 255, 0 ) end end ) مظبط ؟ Link to comment
Abu-Solo Posted January 6, 2017 Share Posted January 6, 2017 11 minutes ago, DmAr511 said: مظبط ؟ دي بق ؟ Link to comment
Jw8. Posted January 6, 2017 Author Share Posted January 6, 2017 4 minutes ago, Abu-Solo said: دي بق ؟ ميقول شيء Link to comment
N3xT Posted January 6, 2017 Share Posted January 6, 2017 وش رايك تطرح ملف الكلينت والديبوق Link to comment
Jw8. Posted January 6, 2017 Author Share Posted January 6, 2017 6 minutes ago, Abu-Solo said: دي بق ؟ انا منزل ذه الي دي بق https://community.multitheftauto.com/index.php?p=resources&s=details&id=13657 Link to comment
N3xT Posted January 6, 2017 Share Posted January 6, 2017 أكتب بأف 8 debugscript 3 وشوف وش الكلام اللي يطلع لك تحت بالشاشة وحطه هنا Link to comment
Abu-Solo Posted January 6, 2017 Share Posted January 6, 2017 (edited) 3 minutes ago, DmAr511 said: انا منزل ذه الي دي بق https://community.multitheftauto.com/index.php?p=resources&s=details&id=13657 استخدم الطبيعي. اكتب في اف 8 debugscript 3 نفس ما قال نكست Edited January 6, 2017 by Abu-Solo Link to comment
Jw8. Posted January 6, 2017 Author Share Posted January 6, 2017 اوكي 5 minutes ago, N3xT said: أكتب بأف 8 debugscript 3 وشوف وش الكلام اللي يطلع لك تحت بالشاشة وحطه هنا ERROR: Loading script failed news_system/server.lua:8:'='expected near *-* يكتب لي Link to comment
Jw8. Posted January 6, 2017 Author Share Posted January 6, 2017 Just now, N3xT said: عطيني اكواد السيرفر كاملة addEvent ("Trigger",true) addEventHandler ("Trigger",root, function ( p ) local player = getPlayerFromName(p) if player then outputChatBox ( "#[Spar System]The Player Has Spar Join F8 gjoin", player, 0, 255, 0 ) end end ) لساتني بس ذي حاط الباقي لساتني 2 minutes ago, N3xT said: عطيني اكواد السيرفر كاملة ERROR :Client (~DmAr~xD) triggered serverside event Trigger , but event is not added serverside [DUP x2] كتبلي ذي كمان ؟ Link to comment
MR.Mosa Posted January 6, 2017 Share Posted January 6, 2017 addEvent ("Trigger",true) addEventHandler ("Trigger",root, function ( player ) local p = getPlayerFromName(player) if p then outputChatBox ( "#[Spar System]The Player Has Spar Join F8 gjoin", p, 0, 255, 0 ) end end ) جرب كذا Link to comment
Jw8. Posted January 6, 2017 Author Share Posted January 6, 2017 1 minute ago, MR.Mosa said: addEvent ("Trigger",true) addEventHandler ("Trigger",root, function ( player ) local p = getPlayerFromName(player) if p then outputChatBox ( "#[Spar System]The Player Has Spar Join F8 gjoin", p, 0, 255, 0 ) end end ) جرب كذا الدي بق بطل يقول شيء اقدر على اسمي اجرب ؟ ولا لا Link to comment
MR.Mosa Posted January 6, 2017 Share Posted January 6, 2017 Just now, DmAr511 said: الدي بق بطل يقول شيء اقدر على اسمي اجرب ؟ ولا لا يب تقدر جرب واذا زبط خلص يعني تمام المود Link to comment
Jw8. Posted January 6, 2017 Author Share Posted January 6, 2017 Just now, MR.Mosa said: يب تقدر جرب واذا زبط خلص يعني تمام المود للاسف Link to comment
MR.Mosa Posted January 6, 2017 Share Posted January 6, 2017 (edited) 5 minutes ago, MR.Mosa said: addEvent ("Trigger",true) addEventHandler ("Trigger",root, function ( Player ) local p = getPlayerName(Player) if p then outputChatBox ( "#[Spar System]The Player Has Spar Join F8 gjoin", p, 0, 255, 0 ) end end ) جرب كذا Edited January 6, 2017 by MR.Mosa Link to comment
Jw8. Posted January 6, 2017 Author Share Posted January 6, 2017 Just now, N3xT said: اطرح ملف الكلينت Spoiler GUIEditor = { edit = {}, button = {}, window = {}, label = {}, gridlist = {} } GUIEditor.window[1] = guiCreateWindow(222, 161, 403, 414, "[ تحدي الاعبين By DmAr ]", false) guiSetVisible(GUIEditor.window[1],false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.gridlist[1]= guiCreateGridList ( 9, 21, 384, 299, false, GUIEditor.window[1] ) local rp = guiGridListAddColumn(GUIEditor.gridlist[1], "الاعب", 0.9) local rp1 = guiGridListAddColumn(GUIEditor.gridlist[1], "بنق", 0.9) GUIEditor.edit[1] = guiCreateEdit(9, 324, 295, 29, "20", false, GUIEditor.window[1]) guiEditSetReadOnly(GUIEditor.edit[1], true) GUIEditor.label[1] = guiCreateLabel(305, 327, 92, 26, "العالم الرجاء", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[1], 254, 1, 1) GUIEditor.button[55] = guiCreateButton(9, 356, 174, 48, "ارسال", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(206, 356, 174, 48, "اغلاق", false, GUIEditor.window[1]) ------------------------------ --By DmAr [Spar System] ------------------------------ function update () guiGridListClear(GUIEditor.gridlist[1]) for i,v in ipairs (getElementsByType("player")) do local rp = guiGridListAddRow (GUIEditor.gridlist[1]) guiGridListSetItemText (GUIEditor.gridlist[1],rp,1,getPlayerName(v):gsub("#%x%x%x%x%x%x", ""),false,false) end end addEventHandler ("onClientResourceStart",resourceRoot,update) addEventHandler ("onClientPlayerJoin",root,update) addEventHandler ("onClientPlayerChangeNick",root,update) addEventHandler ("onClientPlayerQuit",root,update) ----------- addEventHandler('onClientGUIClick',root, function() if source == GUIEditor.button[2] then guiSetVisible(GUIEditor.window[1],false) showCursor(false) end end ) ---------- addEventHandler('onClientGUIClick',root, function() if source == GUIEditor.button[2] then guiSetVisible(GUIEditor.window[10],false) showCursor(false) end end ) ------------- markers = createMarker (1419,-1623.8000488281,14.5, "arrow", 1.5, 255, 255, 0, 170 ) addEventHandler("onClientMarkerHit",markers, --عند لمس الماركر المحدد function()--وظيفة guiSetVisible(GUIEditor.window[1],true)--تفتح اللوحة showCursor(true) --نظهر الماوس end --نهاية الوظيفة )--نهاية قوس الحدث --------------- addEventHandler("onClientGUIClick",root, function () if source == GUIEditor.button[55] then local Player = guiGridListGetSelectedItem( GUIEditor.gridlist[1] ) if ( Player ~= -1 ) then triggerServerEvent("Trigger", localPlayer,Player) end end end ) 1 minute ago, MR.Mosa said: جرب كذا مظبط Link to comment
N3xT Posted January 6, 2017 Share Posted January 6, 2017 Client GUIEditor = { edit = {}, button = {}, window = {}, label = {}, gridlist = {} } GUIEditor.window[1] = guiCreateWindow(222, 161, 403, 414, "[ تحدي الاعبين By DmAr ]", false) guiSetVisible(GUIEditor.window[1],false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.gridlist[1]= guiCreateGridList ( 9, 21, 384, 299, false, GUIEditor.window[1] ) local rp = guiGridListAddColumn(GUIEditor.gridlist[1], "الاعب", 0.9) local rp1 = guiGridListAddColumn(GUIEditor.gridlist[1], "بنق", 0.9) GUIEditor.edit[1] = guiCreateEdit(9, 324, 295, 29, "20", false, GUIEditor.window[1]) guiEditSetReadOnly(GUIEditor.edit[1], true) GUIEditor.label[1] = guiCreateLabel(305, 327, 92, 26, "العالم الرجاء", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[1], 254, 1, 1) GUIEditor.button[55] = guiCreateButton(9, 356, 174, 48, "ارسال", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(206, 356, 174, 48, "اغلاق", false, GUIEditor.window[1]) ------------------------------ --By DmAr [Spar System] ------------------------------ function update () guiGridListClear(GUIEditor.gridlist[1]) for i,v in ipairs (getElementsByType("player")) do local rp = guiGridListAddRow (GUIEditor.gridlist[1]) guiGridListSetItemText (GUIEditor.gridlist[1],rp,1,getPlayerName(v):gsub("#%x%x%x%x%x%x", ""),false,false) end end addEventHandler ("onClientResourceStart",resourceRoot,update) addEventHandler ("onClientPlayerJoin",root,update) addEventHandler ("onClientPlayerChangeNick",root,update) addEventHandler ("onClientPlayerQuit",root,update) ----------- addEventHandler('onClientGUIClick',root, function() if source == GUIEditor.button[2] then guiSetVisible(GUIEditor.window[1],false) showCursor(false) end end ) ---------- addEventHandler('onClientGUIClick',root, function() if source == GUIEditor.button[2] then guiSetVisible(GUIEditor.window[10],false) showCursor(false) end end ) ------------- markers = createMarker (1419,-1623.8000488281,14.5, "arrow", 1.5, 255, 255, 0, 170 ) addEventHandler("onClientMarkerHit",markers, --عند لمس الماركر المحدد function()--وظيفة guiSetVisible(GUIEditor.window[1],true)--تفتح اللوحة showCursor(true) --نظهر الماوس end --نهاية الوظيفة )--نهاية قوس الحدث --------------- addEventHandler("onClientGUIClick",root, function () if source == GUIEditor.button[55] then local sel = guiGridListGetSelectedItem( GUIEditor.gridlist[1] ) local Player = guiGridListGetItemText(GUIEditor.gridlist[1],sel,1) if ( Player ~= -1 ) then triggerServerEvent("Trigger", localPlayer,Player) end end end ) Server addEvent ("Trigger",true) addEventHandler ("Trigger",root, function ( p ) local player = getPlayerFromName(p) if ( player ) then outputChatBox ( "#[Spar System]The Player Has Spar Join F8 gjoin", player, 0, 255, 0 ) end end ) Link to comment
Jw8. Posted January 6, 2017 Author Share Posted January 6, 2017 1 minute ago, N3xT said: Client GUIEditor = { edit = {}, button = {}, window = {}, label = {}, gridlist = {} } GUIEditor.window[1] = guiCreateWindow(222, 161, 403, 414, "[ تحدي الاعبين By DmAr ]", false) guiSetVisible(GUIEditor.window[1],false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.gridlist[1]= guiCreateGridList ( 9, 21, 384, 299, false, GUIEditor.window[1] ) local rp = guiGridListAddColumn(GUIEditor.gridlist[1], "الاعب", 0.9) local rp1 = guiGridListAddColumn(GUIEditor.gridlist[1], "بنق", 0.9) GUIEditor.edit[1] = guiCreateEdit(9, 324, 295, 29, "20", false, GUIEditor.window[1]) guiEditSetReadOnly(GUIEditor.edit[1], true) GUIEditor.label[1] = guiCreateLabel(305, 327, 92, 26, "العالم الرجاء", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[1], 254, 1, 1) GUIEditor.button[55] = guiCreateButton(9, 356, 174, 48, "ارسال", false, GUIEditor.window[1]) GUIEditor.button[2] = guiCreateButton(206, 356, 174, 48, "اغلاق", false, GUIEditor.window[1]) ------------------------------ --By DmAr [Spar System] ------------------------------ function update () guiGridListClear(GUIEditor.gridlist[1]) for i,v in ipairs (getElementsByType("player")) do local rp = guiGridListAddRow (GUIEditor.gridlist[1]) guiGridListSetItemText (GUIEditor.gridlist[1],rp,1,getPlayerName(v):gsub("#%x%x%x%x%x%x", ""),false,false) end end addEventHandler ("onClientResourceStart",resourceRoot,update) addEventHandler ("onClientPlayerJoin",root,update) addEventHandler ("onClientPlayerChangeNick",root,update) addEventHandler ("onClientPlayerQuit",root,update) ----------- addEventHandler('onClientGUIClick',root, function() if source == GUIEditor.button[2] then guiSetVisible(GUIEditor.window[1],false) showCursor(false) end end ) ---------- addEventHandler('onClientGUIClick',root, function() if source == GUIEditor.button[2] then guiSetVisible(GUIEditor.window[10],false) showCursor(false) end end ) ------------- markers = createMarker (1419,-1623.8000488281,14.5, "arrow", 1.5, 255, 255, 0, 170 ) addEventHandler("onClientMarkerHit",markers, --عند لمس الماركر المحدد function()--وظيفة guiSetVisible(GUIEditor.window[1],true)--تفتح اللوحة showCursor(true) --نظهر الماوس end --نهاية الوظيفة )--نهاية قوس الحدث --------------- addEventHandler("onClientGUIClick",root, function () if source == GUIEditor.button[55] then local sel = guiGridListGetSelectedItem( GUIEditor.gridlist[1] ) local Player = guiGridListGetItemText(GUIEditor.gridlist[1],sel,1) if ( Player ~= -1 ) then triggerServerEvent("Trigger", localPlayer,Player) end end end ) Server addEvent ("Trigger",true) addEventHandler ("Trigger",root, function ( p ) local player = getPlayerFromName(p) if ( player ) then outputChatBox ( "#[Spar System]The Player Has Spar Join F8 gjoin", player, 0, 255, 0 ) end end ) مشكوووووووووووووووووووور + DELATE Just now, DmAr511 said: مشكوووووووووووووووووووور + DELATE اقدر اسويه من فوق؟ Link to comment
Jw8. Posted January 6, 2017 Author Share Posted January 6, 2017 1 minute ago, N3xT said: ما فهمتك exports["guimessages"]:outputServer(root, "[Spar System] Join Spar ".. nick .." and ".. player.." F8 gjoin of fjoin", 0, 65, 255) 1 minute ago, DmAr511 said: exports["guimessages"]:outputServer(root, "[Spar System] Join Spar ".. nick .." and ".. player.." F8 gjoin of fjoin", 0, 65, 255) يعني يبين لاعب ضد لاعب اذا تقدر Link to comment
Jw8. Posted January 6, 2017 Author Share Posted January 6, 2017 51 minutes ago, N3xT said: ما فهمتك اقدر اخليه تخش فقط 1 function gj ( source, commandName, posX, posY, posZ ) setElementPosition ( source, 1715.02649, -1750.77625 ,13.59179 ) end addCommandHandler ( "gjoin", gj ) لوسمحت 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