Jump to content

طلب كود


Recommended Posts

  • Replies 102
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

triggerServerEvent

addEvent

addEventHandler

كيف استعملهم؟

Server Side !

  
Team = createTeam ("Team Name",255,0,0) 
 addEvent("spawn",true) 
  
addEventHandler("spawn",root, 
  
function () 
  
setPlayerTeam(source,Team) 
  
spawnPlayer ( thePlayer, x, y, z, skinID ) 
  
giveWeapon ( source, ID, AMMO ) 
  
  setElementModel ( Team, spawnPlayer ) 
  
end) 

الاستبدال

x y z الاحداثيات سطر11

skinID رقم الشخصية

سطر 13

AMMO

الدخيرة جم تبيها

ID

السلاح الايد ماله

Client Side !

triggerServerEvent ( "spawn", localPlayer ) 
Edited by Guest
Link to comment
triggerServerEvent

addEvent

addEventHandler

كيف استعملهم؟

Server Side !

  
Team = createTeam ("Team Name",255,0,0) 
 addEvent("spawn",true) 
  
addEventHandler("spawn",root, 
  
function () 
  
setPlayerTeam(source,Team) 
  
spawnPlayer ( thePlayer, x, y, z, skinID ) 
  
giveWeapon ( source, ID, AMMO ) 
  
  setElementModel ( Team, spawnPlayer ) 
  
end) 

الاستبدال

x y z الاحداثيات سطر11

skinID رقم الشخصية

سطر 13

AMMO

الدخيرة جم تبيها

ID

السلاح الايد ماله

Client Side !

triggerServerEvent ( "spawn", localPlayer ) 
 Team = createTeam ("Team Name",255,0,0) 
 addEvent("spawn",true) 
 addEventHandler("spawn",root, 
 function () 
 setPlayerTeam(source,Team) 
 spawnPlayer ( source, x, y, z, skinID ) 
 giveWeapon ( source, ID, AMMO,true ) 
end 
) 

Client :

addEventHandler("onClientGUIClick",Button, 
function () 
triggerServerEvent("spawn",localPlayer) 
end,false) 
  
  

Link to comment
triggerServerEvent

addEvent

addEventHandler

كيف استعملهم؟

Server Side !

  
Team = createTeam ("Team Name",255,0,0) 
 addEvent("spawn",true) 
  
addEventHandler("spawn",root, 
  
function () 
  
setPlayerTeam(source,Team) 
  
spawnPlayer ( thePlayer, x, y, z, skinID ) 
  
giveWeapon ( source, ID, AMMO ) 
  
  setElementModel ( Team, spawnPlayer ) 
  
end) 

الاستبدال

x y z الاحداثيات سطر11

skinID رقم الشخصية

سطر 13

AMMO

الدخيرة جم تبيها

ID

السلاح الايد ماله

Client Side !

triggerServerEvent ( "spawn", localPlayer ) 
 Team = createTeam ("Team Name",255,0,0) 
 addEvent("spawn",true) 
 addEventHandler("spawn",root, 
 function () 
 setPlayerTeam(source,Team) 
 spawnPlayer ( source, x, y, z, skinID ) 
 giveWeapon ( source, ID, AMMO,true ) 
end 
) 

Client :

addEventHandler("onClientGUIClick,Button, 
function () 
triggerServerEvent("spawn",localPlayer) 
end,false) 
  
  
 

thanx I forget :lol:

Link to comment

server side

addEventHandler("onClientGUIClick",GUIEditor_Image[1], 
function () 
triggerServerEvent("spawn",localPlayer) 
end,false) 
  
addEventHandler("onClientGUIClick",GUIEditor_Image[2], 
function () 
triggerServerEvent("spawn",localPlayer) 
end,false) 
  
  

client side

bindKey(F2,down,true) 
  
GUIEditor_Image = {} 
  
GUIEditor_Image[1] = guiCreateStaticImage(645,315,228,184,"images/etlf.png",false) 
  
GUIEditor_Image[2] = guiCreateStaticImage(263,312,219,175,"images/BH-cop.png",false) 
  
  
  
-- Direct X Drawing 
addEventHandler("onClientRender",root, 
    function() 
        dxDrawText("اضغط لأختيار فريق",380.0,237.0,751.0,305.0,tocolor(255,255,255,255),4.0,"default","left","top",false,false,false) 
    end 
) 
  
  
addEventHandler("onClientGUIClick",GUIEditor_Image[1], 
function () 
triggerServerEvent("spawn",localPlayer) 
end,false) 
  
addEventHandler("onClientGUIClick",GUIEditor_Image[2], 
function () 
triggerServerEvent("spawn",localPlayer) 
end,false) 
  
  

وش الخطاء ض1

Link to comment
server side
addEventHandler("onClientGUIClick",GUIEditor_Image[1], 
function () 
triggerServerEvent("spawn",localPlayer) 
end,false) 
  
addEventHandler("onClientGUIClick",GUIEditor_Image[2], 
function () 
triggerServerEvent("spawn",localPlayer) 
end,false) 
  
  

client side

bindKey(F2,down,true) 
  
GUIEditor_Image = {} 
  
GUIEditor_Image[1] = guiCreateStaticImage(645,315,228,184,"images/etlf.png",false) 
  
GUIEditor_Image[2] = guiCreateStaticImage(263,312,219,175,"images/BH-cop.png",false) 
  
  
  
-- Direct X Drawing 
addEventHandler("onClientRender",root, 
    function() 
        dxDrawText("اضغط لأختيار فريق",380.0,237.0,751.0,305.0,tocolor(255,255,255,255),4.0,"default","left","top",false,false,false) 
    end 
) 
  
  
addEventHandler("onClientGUIClick",GUIEditor_Image[1], 
function () 
triggerServerEvent("spawn",localPlayer) 
end,false) 
  
addEventHandler("onClientGUIClick",GUIEditor_Image[2], 
function () 
triggerServerEvent("spawn",localPlayer) 
end,false) 
  
  

وش الخطاء ض1

الكود مخبوص

:lol:

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