Jump to content

تصحيح اكود


Recommended Posts

كلنت

function WarpPlayerToserver () 
  
 if source == Warp then  
  
  local text2 = guiGetText(GUIEditor.edit[1]) 
   
  local text1 = guiGetText(GUIEditor.edit[2]) 
  
  
 if text2 ~= "" and text1~= "" then   
  
  
  
 local Get = guiGridListGetItemText (GUIEditor.gridlist[1], guiGridListGetSelectedItem (GUIEditor.gridlist[1]), 1) 
  
  
 local PlayerName = getPlayerFromName(Get) 
  
  
  
 triggerServerEvent("WarpEvent",localPlayer,text2,text1) 
  
  
  
 else 
  
  
 outputChatBox("----------",0,255,0) 
  
 end 
  
  
  
 end 
  
  
 end 
  
  
  
 addEventHandler("onClientGUIClick",root,WarpPlayerToserver) 

-----------------

سيرفر

addEvent("WarpEvent",true) 
addEventHandler("WarpEvent",root, 
  
function (PlayerName,text1,text2) 
  
  
  
redirectPlayer(PlayerName,text2,text1) 
  
  
end 
  
  
) 

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