Jump to content

طلب سكربت


baba

Recommended Posts

سلام عليكم شباب

انا اخوكم احمد من العراق

انا جديد في البرمجه حقت الوحات

ابي سكريبت

اذا كتبت كلمه في اف 8

تفتح لي الوله

وابي الوحه ما تفتح غير لي انا حاط سيريالهم

مثل مود vip

تقريبن

_________________

ارجو تسعدوني وتوضحو الي تقلوه لاني جديد

Link to comment

مآحد بيعطيكك سكربت جآهز بس نعطيك إلي تحتاجه

عشآن تسوي السكربت .. وأنت حاول ولو غلطت تعال هنا يسأعدوكك #

addCommandHandler -- عشآن الآمر .. 
getPlayerSerial -- تتاكد من سريال الشخص 
guiSetVisible -- تظهر اللوحة او تخفيها 

آتمنى تحأول تسويهأ .. =)

Link to comment

بما انه الكود بسيط راح اساعدكـ به

local Serials = {  
  -- [ "Serial" ] = true, 
  [ "Serial" ] = true, 
} 
  
addCommandHandler ( "VIP_Panel", function (  ) 
   if ( Serials [ getPlayerSerial ( ) ] ) then 
       guiSetVisible ( element, not guiGetVisible ( element ) ) 
       showCursor ( guiGetVisible ( element ) )   
   end 
end ) 
Link to comment

يا اخي مشكور ولله يوفقك بس يريت توضح لاني جديد مثل ما انت عارف

الله يدخلك الجنه

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

Link to comment

سلام عليكم شباب

بس رح ازعجكم شويه

بعد اذنكم

المود لما افتحو

مثلن اسم المود

max

لما ادخل السيرفر واعمل

start للمود

يفتح الموحه مباشره في وجهي

انا ابي الوحه تفتح مباشره

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

ارجو المساعده وتوضيع

واسف على الازعاج

Link to comment
function changeVisibility ( ) 
  
        guiSetVisible (myWindow, not guiGetVisible ( myWindow ) ) 
end 
  
  
myWindow = guiCreateWindow ( 0.3, 0.3, 0.5, 0.60, "GUI window title", true ) 
  
setTimer ( changeVisibility, 2000, 0 ) 

للتاكد

الكود

كلينت

او

سيرفر

+

اشيل

myWindow

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

صح؟

في الصطر 3+7

Link to comment

ما تحتاج تايمر

الكود جداً بسيط عبارة عن سطر النافذة و سطر ثاني لأخفاء النافذة

myWindow = guiCreateWindow(0.3, 0.3, 0.5, 0.60, "GUI window title", true) -- صنع نافذة 
guiSetVisible(myWindow, false) -- اخفاء النافذة بعد صنعها مباشرة 
-- myWindow اسم متغير النافذة 

و الكود كلينت طبعاً

Link to comment

مشكور يا اخوي

على الرد

بس يا اخوي النافذا لسا ما تختفي

انا بعرض لك الملفات وانت شوفها

Meta

    

server

local Serials = { 
  
  [ "انا شايل السريال حقي " ] = true, 
} 
  
addCommandHandler ( "VIP1", function (  ) 
   if ( Serials [ getPlayerSerial ( ) ] ) then 
       guiSetVisible ( VIP, not guiGetVisible ( VIP ) ) 
       showCursor ( guiGetVisible ( VIP ) )   
   end 
end ) 

كلينت الوحه

GUIEditor_Window = {} 
GUIEditor_Button = {} 
GUIEditor_Image = {} 
  
GUIEditor_Window[1] = guiCreateWindow(318,49,313,541,"VIP",false) 
guiSetAlpha(GUIEditor_Window[1],1) 
GUIEditor_Button[1] = guiCreateButton(0.1725,0.4436,0.6422,0.0739,"VIP1",true,GUIEditor_Window[1]) 
GUIEditor_Image[1] = guiCreateStaticImage(0.0383,0.0425,0.9201,0.3087,"images/mtalogo.png",true,GUIEditor_Window[1]) 
GUIEditor_Button[2] = guiCreateButton(0.1725,0.5878,0.6422,0.0739,"VIP2",true,GUIEditor_Window[1]) 
GUIEditor_Button[3] = guiCreateButton(0.1725,0.7283,0.6422,0.0739,"VIP3",true,GUIEditor_Window[1]) 
GUIEditor_Button[4] = guiCreateButton(0.1725,0.878,0.6422,0.0739,"VIP4",true,GUIEditor_Window[1]) 

كلينت الكود الي انت عطيتني ايه

VIP = guiCreateWindow(0.3, 0.3, 0.5, 0.60, "GUI window title", true) 
guiSetVisible(VIP, false) 

Link to comment

جميع اكوادك كلينت

GUIEditor_Window[1] و المقصود بأسم اللوحة يعني المتغير الخاص باللوحة الي هو يجي بعد علامة = بالكود حقك اسم متغير اللوحة

GUIEditor_Window = {} 
GUIEditor_Button = {} 
GUIEditor_Image = {} 
  
GUIEditor_Window[1] = guiCreateWindow(318,49,313,541,"VIP",false) 
guiSetVisible(GUIEditor_Window[1], false) -- اخفاء اللوحة 
guiSetAlpha(GUIEditor_Window[1],1) 
GUIEditor_Button[1] = guiCreateButton(0.1725,0.4436,0.6422,0.0739,"VIP1",true,GUIEditor_Window[1]) 
GUIEditor_Image[1] = guiCreateStaticImage(0.0383,0.0425,0.9201,0.3087,"images/mtalogo.png",true,GUIEditor_Window[1]) 
GUIEditor_Button[2] = guiCreateButton(0.1725,0.5878,0.6422,0.0739,"VIP2",true,GUIEditor_Window[1]) 
GUIEditor_Button[3] = guiCreateButton(0.1725,0.7283,0.6422,0.0739,"VIP3",true,GUIEditor_Window[1]) 
GUIEditor_Button[4] = guiCreateButton(0.1725,0.878,0.6422,0.0739,"VIP4",true,GUIEditor_Window[1]) 
  
local Serials = { 
    ["انا شايل السريال حقي"] = true, 
} 
  
addCommandHandler("VIP1", 
function() 
   if Serials[getPlayerSerial()] then 
       guiSetVisible(GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) 
       showCursor(guiGetVisible(GUIEditor_Window[1]))   
   end 
end) 

    

Link to comment

يا اخي

لما اكتب الكلمه VIP1

ما تفتح الوحه انا حاط السريال

GUIEditor_Window = {} 
GUIEditor_Button = {} 
GUIEditor_Image = {} 
  
GUIEditor_Window[1] = guiCreateWindow(318,49,313,541,"VIP",false) 
guiSetVisible(GUIEditor_Window[1], false) -- اخفاء اللوحة 
guiSetAlpha(GUIEditor_Window[1],1) 
GUIEditor_Button[1] = guiCreateButton(0.1725,0.4436,0.6422,0.0739,"VIP1",true,GUIEditor_Window[1]) 
GUIEditor_Image[1] = guiCreateStaticImage(0.0383,0.0425,0.9201,0.3087,"images/mtalogo.png",true,GUIEditor_Window[1]) 
GUIEditor_Button[2] = guiCreateButton(0.1725,0.5878,0.6422,0.0739,"VIP2",true,GUIEditor_Window[1]) 
GUIEditor_Button[3] = guiCreateButton(0.1725,0.7283,0.6422,0.0739,"VIP3",true,GUIEditor_Window[1]) 
GUIEditor_Button[4] = guiCreateButton(0.1725,0.878,0.6422,0.0739,"VIP4",true,GUIEditor_Window[1]) 
  
local Serials = { 
    ["*******************************"] = true, 
} 
  
addCommandHandler("VIP1", 
function() 
   if Serials[getPlayerSerial()] then 
       guiSetVisible(GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) 
       showCursor(guiGetVisible(GUIEditor_Window[1]))   
   end 
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...