Jump to content

تم الافاده


yazan

Recommended Posts

GUIEditor_Window = {} 
GUIEditor_Label = {} 
GUIEditor_Image = {} 
  
GUIEditor_Window[1] = guiCreateWindow(1,0,798,599,"ختيار قيم مود",false) 
guiSetAlpha(GUIEditor_Window[1],1) 
GUIEditor_Image[1] = guiCreateStaticImage(12,43,361,489,"images/mtalogo.png",false,GUIEditor_Window[1]) 
GUIEditor_Image[2] = guiCreateStaticImage(379,48,406,490,"images/shruk.png",false,GUIEditor_Window[1]) 
GUIEditor_Label[1] = guiCreateLabel(518,31,205,30,"هجولة",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Label[1],"default-bold-small") 
GUIEditor_Label[2] = guiCreateLabel(151,21,193,34,"حرب",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Label[2],"default-bold-small") 
GUIEditor_Label[3] = guiCreateLabel(16,548,244,50,"by yaZan",false,GUIEditor_Window[1]) 
  
  

هذى

Link to comment
  • Replies 77
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

تفضل

غير الاحداثيات

------ cilent 
GUIEditor_Window = {} 
GUIEditor_Label = {} 
GUIEditor_Image = {} 
GUIEditor_Window[1] = guiCreateWindow(1,0,798,599,"ختيار قيم مود",false) 
guiSetAlpha(GUIEditor_Window[1],1) 
GUIEditor_Image[1] = guiCreateStaticImage(12,43,361,489,"images/mtalogo.png",false,GUIEditor_Window[1]) 
GUIEditor_Image[2] = guiCreateStaticImage(379,48,406,490,"images/shruk.png",false,GUIEditor_Window[1]) 
GUIEditor_Label[1] = guiCreateLabel(518,31,205,30,"هجولة",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Label[1],"default-bold-small") 
GUIEditor_Label[2] = guiCreateLabel(151,21,193,34,"حرب",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Label[2],"default-bold-small") 
GUIEditor_Label[3] = guiCreateLabel(16,548,244,50,"by yaZan",false,GUIEditor_Window[1]) 
function ButtonCLick() 
if source == GUIEditor_Image[1] then 
triggerServerEvent("spawn1",getLocalPlayer()) 
elseif source == GUIEditor_Image[2] then 
triggerServerEvent("spawn2",getLocalPlayer()) 
end 
addEventHandler("onClientGUIClick",root,ButtonCLick,false) 
  
------ server 
  
addEvent("spawn1",true) 
addEventHandler("spawn1",root, 
function() 
spawnPlayer(source,x+math.random(-1,1),y+math.random(-1,1),z) 
end) 
  
addEvent("spawn2",true) 
addEventHandler("spawn2",root, 
function() 
spawnPlayer(source,x+math.random(-1,1),y+math.random(-1,1),z) 
end) 

Link to comment

جرب

------ cilent 
GUIEditor_Window = {} 
GUIEditor_Label = {} 
GUIEditor_Image = {} 
GUIEditor_Window[1] = guiCreateWindow(1,0,798,599,"ختيار قيم مود",false) 
guiSetAlpha(GUIEditor_Window[1],1) 
GUIEditor_Image[1] = guiCreateStaticImage(12,43,361,489,"images/mtalogo.png",false,GUIEditor_Window[1]) 
GUIEditor_Image[2] = guiCreateStaticImage(379,48,406,490,"images/shruk.png",false,GUIEditor_Window[1]) 
GUIEditor_Label[1] = guiCreateLabel(518,31,205,30,"هجولة",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Label[1],"default-bold-small") 
GUIEditor_Label[2] = guiCreateLabel(151,21,193,34,"حرب",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Label[2],"default-bold-small") 
GUIEditor_Label[3] = guiCreateLabel(16,548,244,50,"by yaZan",false,GUIEditor_Window[1]) 
function ButtonCLick() 
if source == GUIEditor_Image[1] then 
triggerServerEvent("spawn1",getLocalPlayer()) 
guiSetVisible ( GUIEditor_Window[1] ,false) 
showCursor (false) 
guiSetInputEnabled(false) 
elseif source == GUIEditor_Image[2] then 
triggerServerEvent("spawn2",getLocalPlayer()) 
guiSetVisible ( GUIEditor_Window[1] ,false) 
showCursor (false) 
guiSetInputEnabled(false) 
end 
addEventHandler("onClientGUIClick",root,ButtonCLick,false) 
  
------ server 
  
addEvent("spawn1",true) 
addEventHandler("spawn1",root, 
function() 
spawnPlayer(source,x+math.random(-1,1),y+math.random(-1,1),z) 
end) 
  
addEvent("spawn2",true) 
addEventHandler("spawn2",root, 
function() 
spawnPlayer(source,x+math.random(-1,1),y+math.random(-1,1),z) 
end) 

Link to comment

إذا كان قصدك أول ما اللاعب يخش تطلعله

جرب هذا

--> server

addEvent("spawn1",true) 
addEventHandler("spawn1",root, 
function() 
    spawnPlayer(source,x+math.random(-1,1),y+math.random(-1,1),z) 
end) 
  
addEvent("spawn2",true) 
addEventHandler("spawn2",root, 
function() 
    spawnPlayer(source,x+math.random(-1,1),y+math.random(-1,1),z) 
end) 

--> Client

GUIEditor_Window = {} 
GUIEditor_Label = {} 
GUIEditor_Image = {} 
GUIEditor_Window[1] = guiCreateWindow(1,0,798,599,"ختيار قيم مود",false) 
guiSetAlpha(GUIEditor_Window[1],1) 
GUIEditor_Image[1] = guiCreateStaticImage(12,43,361,489,"images/mtalogo.png",false,GUIEditor_Window[1]) 
GUIEditor_Image[2] = guiCreateStaticImage(379,48,406,490,"images/shruk.png",false,GUIEditor_Window[1]) 
GUIEditor_Label[1] = guiCreateLabel(518,31,205,30,"هجولة",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Label[1],"default-bold-small") 
GUIEditor_Label[2] = guiCreateLabel(151,21,193,34,"حرب",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Label[2],"default-bold-small") 
GUIEditor_Label[3] = guiCreateLabel(16,548,244,50,"by yaZan",false,GUIEditor_Window[1]) 
  
addEventHandler("onClientPlayerJoin", root, 
    function () 
        guiSetVisible ( GUIEditor_Window[1] ,true) 
        showCursor (true) 
    end 
) 
  
function ButtonCLick() 
    if source == GUIEditor_Image[1] then 
        triggerServerEvent("spawn1",getLocalPlayer()) 
        guiSetVisible ( GUIEditor_Window[1] ,false) 
        showCursor (false) 
    elseif source == GUIEditor_Image[2] then 
        triggerServerEvent("spawn2",getLocalPlayer()) 
        guiSetVisible ( GUIEditor_Window[1] ,false) 
        showCursor (false) 
    end 
end 
addEventHandler("onClientGUIClick",root,ButtonCLick,false) 

Link to comment

إذا كان قصدك أول ما اللاعب يخش تطلعله

جرب هذا

--> server

addEvent("spawn1",true) 
addEventHandler("spawn1",root, 
function() 
    spawnPlayer(source,x+math.random(-1,1),y+math.random(-1,1),z) 
end) 
  
addEvent("spawn2",true) 
addEventHandler("spawn2",root, 
function() 
    spawnPlayer(source,x+math.random(-1,1),y+math.random(-1,1),z) 
end) 

--> Client

GUIEditor_Window = {} 
GUIEditor_Label = {} 
GUIEditor_Image = {} 
GUIEditor_Window[1] = guiCreateWindow(1,0,798,599,"ختيار قيم مود",false) 
guiSetAlpha(GUIEditor_Window[1],1) 
GUIEditor_Image[1] = guiCreateStaticImage(12,43,361,489,"images/mtalogo.png",false,GUIEditor_Window[1]) 
GUIEditor_Image[2] = guiCreateStaticImage(379,48,406,490,"images/shruk.png",false,GUIEditor_Window[1]) 
GUIEditor_Label[1] = guiCreateLabel(518,31,205,30,"هجولة",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Label[1],"default-bold-small") 
GUIEditor_Label[2] = guiCreateLabel(151,21,193,34,"حرب",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Label[2],"default-bold-small") 
GUIEditor_Label[3] = guiCreateLabel(16,548,244,50,"by yaZan",false,GUIEditor_Window[1]) 
  
addEventHandler("onClientPlayerJoin", root, 
    function () 
        guiSetVisible ( GUIEditor_Window[1] ,true) 
        showCursor (true) 
    end 
) 
  
function ButtonCLick() 
    if source == GUIEditor_Image[1] then 
        triggerServerEvent("spawn1",getLocalPlayer()) 
        guiSetVisible ( GUIEditor_Window[1] ,false) 
        showCursor (false) 
    elseif source == GUIEditor_Image[2] then 
        triggerServerEvent("spawn2",getLocalPlayer()) 
        guiSetVisible ( GUIEditor_Window[1] ,false) 
        showCursor (false) 
    end 
end 
addEventHandler("onClientGUIClick",root,ButtonCLick,false) 

ماشوفك سويت شي !!

بس ضفت حق الدخول

Link to comment

الكود مو شغال انا قصدي فكره كامله لو واحد دخل سيرفر يطلع ختيار قيم مود حرب و هجولة لمن يموت يرجع مثل ما كان و لو وده يغير القيم مود يكبس حرف خ ترجع له قائمة حق الختيار

Link to comment
الكود مو شغال انا قصدي فكره كامله لو واحد دخل سيرفر يطلع ختيار قيم مود حرب و هجولة لمن يموت يرجع مثل ما كان و لو وده يغير القيم مود يكبس حرف خ ترجع له قائمة حق الختيار

الزبدة تبي نسوي لك المود كله :D

Link to comment
جرب
------ cilent 
GUIEditor_Window = {} 
GUIEditor_Label = {} 
GUIEditor_Image = {} 
GUIEditor_Window[1] = guiCreateWindow(1,0,798,599,"ختيار قيم مود",false) 
guiSetAlpha(GUIEditor_Window[1],1) 
GUIEditor_Image[1] = guiCreateStaticImage(12,43,361,489,"images/mtalogo.png",false,GUIEditor_Window[1]) 
GUIEditor_Image[2] = guiCreateStaticImage(379,48,406,490,"images/shruk.png",false,GUIEditor_Window[1]) 
GUIEditor_Label[1] = guiCreateLabel(518,31,205,30,"هجولة",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Label[1],"default-bold-small") 
GUIEditor_Label[2] = guiCreateLabel(151,21,193,34,"حرب",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Label[2],"default-bold-small") 
GUIEditor_Label[3] = guiCreateLabel(16,548,244,50,"by yaZan",false,GUIEditor_Window[1]) 
function ButtonCLick() 
if source == GUIEditor_Image[1] then 
triggerServerEvent("spawn1",getLocalPlayer()) 
guiSetVisible ( GUIEditor_Window[1] ,false) 
showCursor (false) 
guiSetInputEnabled(false) 
elseif source == GUIEditor_Image[2] then 
triggerServerEvent("spawn2",getLocalPlayer()) 
guiSetVisible ( GUIEditor_Window[1] ,false) 
showCursor (false) 
guiSetInputEnabled(false) 
end 
addEventHandler("onClientGUIClick",root,ButtonCLick,false) 
  
------ server 
  
addEvent("spawn1",true) 
addEventHandler("spawn1",root, 
function() 
spawnPlayer(source,x+math.random(-1,1),y+math.random(-1,1),z) 
end) 
  
addEvent("spawn2",true) 
addEventHandler("spawn2",root, 
function() 
spawnPlayer(source,x+math.random(-1,1),y+math.random(-1,1),z) 
end) 

عندك إند ناقص

+

فنكشن ماله لزمة

guiSetPutEnabled

+

مسوي فنكشنين زي بعض بالضبط في السيرفر بس الإسمـ يختلف

+

أنا تعديلي أصلا فيه أغلاط ذذ

Link to comment
بخصوص إذا مات يرجع جرب
function respawn (player) 
    spawnPlayer(player,z+math.random(-1,1), y+math.random(-1,1), x) 
    setCameraTarget(player, player) 
    end 
end 

:lol: يجرب على كود خربان أصلا

!!! ؟؟؟

وش قصتك الحين انت ؟

Link to comment

يسير كذا

  
addEvent("spawn1",true) 
addEventHandler("spawn1",root, 
function respawn (player) 
    spawnPlayer(player,z+math.random(-1,1), y+math.random(-1,1), x) 
    setCameraTarget(player, player) 
    end 
addEvent("spawn2",true) 
addEventHandler("spawn2",root, 
function() 
   spawnPlayer(player,z+math.random(-1,1), y+math.random(-1,1), x) 
    setCameraTarget(player, player) 
end 
end 

Link to comment
يسير كذا
  
addEvent("spawn1",true) 
addEventHandler("spawn1",root, 
function respawn (player) 
    spawnPlayer(player,z+math.random(-1,1), y+math.random(-1,1), x) 
    setCameraTarget(player, player) 
    end 
addEvent("spawn2",true) 
addEventHandler("spawn2",root, 
function() 
   spawnPlayer(player,z+math.random(-1,1), y+math.random(-1,1), x) 
    setCameraTarget(player, player) 
end 
end 

لا

Link to comment

أعتقد يسير كذا

--> server

addEvent("spawn1",true) 
addEventHandler("spawn1", root,  
    function spawn1 () 
        spawnPlayer(source,x ,y ,z) 
    end 
) 
  
addEvent("spawn2",true) 
addEventHandler("spawn2", root, 
    function spawn2 () 
        spawnPlayer(source,x ,y ,z) 
    end 
) 
  
addEventHandler("onPlayerWasted", root, 
    function (attacker,weapon) 
        if (getElementType(attacker) == "player") then 
            if (getElementType(weapon) == "weapon") then 
                spawnPlayer(source, x, y, z) -- هنا بدل بإحداثيات الحرب 
            else 
                spawnPlayer(source, x, y, z) -- هنا بدل بإحداثيات الهجولة 
            end 
        end 
    end 
) 

--> client

  
key = "حط الزر" 
  
GUIEditor_Window = {} 
GUIEditor_Label = {} 
GUIEditor_Image = {} 
GUIEditor_Window[1] = guiCreateWindow(1,0,798,599,"ختيار قيم مود",false) 
guiSetAlpha(GUIEditor_Window[1],1) 
GUIEditor_Image[1] = guiCreateStaticImage(12,43,361,489,"images/mtalogo.png",false,GUIEditor_Window[1]) 
GUIEditor_Image[2] = guiCreateStaticImage(379,48,406,490,"images/shruk.png",false,GUIEditor_Window[1]) 
GUIEditor_Label[1] = guiCreateLabel(518,31,205,30,"هجولة",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Label[1],"default-bold-small") 
GUIEditor_Label[2] = guiCreateLabel(151,21,193,34,"حرب",false,GUIEditor_Window[1]) 
guiSetFont(GUIEditor_Label[2],"default-bold-small") 
GUIEditor_Label[3] = guiCreateLabel(16,548,244,50,"by yaZan",false,GUIEditor_Window[1]) 
  
function openWin () 
    if guiGetVisible (GUIEditor_Window[1]) then    
       guiSetVisible (GUIEditor_Window[1], false)  
       showCursor(false) 
    else 
        guiSetVisible (GUIEditor_Window[1], true) 
        showCursor(true) 
    end  
end 
bindKey(key, "down", openWin) 
  
addEventHandler("onClientPlayerJoin", root, 
    function () 
        guiSetVisible ( GUIEditor_Window[1] ,true) 
        showCursor (true) 
    end 
) 
  
addEventHandler("onClientGUIClick",root, 
    function () 
        if source == GUIEditor_Image[1] then 
            triggerServerEvent("spawn1",getLocalPlayer()) 
            guiSetVisible ( GUIEditor_Window[1] ,false) 
            showCursor (false) 
        elseif source == GUIEditor_Image[2] then 
            triggerServerEvent("spawn2",getLocalPlayer()) 
            guiSetVisible ( GUIEditor_Window[1] ,false) 
            showCursor (false) 
        end 
    end 
) 

:P جربه وقولي

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