Jump to content

x[الي عنده خبره ]x


Jw8.

Recommended Posts

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

اوكي 

5 minutes ago, N3xT said:

أكتب بأف 8

debugscript 3

وشوف وش الكلام اللي يطلع لك تحت بالشاشة وحطه هنا

ERROR: Loading script failed news_system/server.lua:8:'='expected near *-*

 

يكتب لي

Link to comment
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
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
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

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
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
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
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...