Jump to content

لو سمحتو اشرحولي طريقه ربط الكود بتيكست


Recommended Posts

السلام عليكم

ممكن تشرحولي كيف اربط الكود بتيكست مثال

انا بحط اي دي السلاح الي ابيه بتيسكت ابيه بس يضغط على البوتون يعطيه السلام الي حطيت رقمه

بس ابي اعرف كيف اربطه بتيكست

Link to comment
Client 
  
edit = guiCreateEdit(.........) 
button = guiCreateButton(.............) 
  
addEventHandler("onClientGUIClick",resourceRoot, function ( ) 
if ( source == button ) then 
triggerServerEvent("Give",localPlayer,guiGetText(edit)) 
end 
 end) 
  
 Server 
  
  
 addEvent("Give",true) 
 addEventHandler("Give",root, function (wep) 
 if ( tonumber(wep) ) then 
 giveWeapon(client,wep,1000) 
 else 
 outputChatBox("* Please Write Number Only .. ",source,255,0,0,true) 
 end 
  end) 
   

جربه

edit :

You Hassan Meke ?

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