#STZ Posted April 6, 2017 Posted April 6, 2017 السلام عليكم ابي الكود يفتح للي معهم داتا مدري من وين المشكلة الدي بق يقول المشكلة من getAccount function OPEN() if guiGetVisible (VIPWIND) then guiSetVisible (VIPWIND, false ) showCursor(false) guiSetInputEnabled(false) else triggerServerEvent("SHOW_s2",localPlayer) end end bindKey("F10", "down", OPEN) addEvent('SHOW2',true) addEventHandler('SHOW2',root, function () guiSetVisible (VIPWIND, true ) showCursor(true) guiSetInputEnabled(true) end ) --S addEvent("SHOW_s2",true) addEventHandler("SHOW_s2",getRootElement(), function(accname,player) HT = getAccount ( accname ) if HT then -- نتاكد من وجود الاكونت if getAccountData(HT,'VIP',1) then outputChatBox("Hi",source, 255, 0, 0, true ) triggerClientEvent ( source, "SHOW2", source) else outputChatBox("VIP لم تقم بالاشتراك لفتح لوحة ",source, 255, 0, 0, true ) end end end )
AE. Posted April 6, 2017 Posted April 6, 2017 (edited) triggerServerEvent("SHOW_s2",localPlayer,localPlayer) #edit 1 بدل الترايجر بذا وبدل السيرفر بذا addEvent("SHOW_s2",true) addEventHandler("SHOW_s2",getRootElement(), function(player) HT = getPlayerAccount ( player ) if HT then -- نتاكد من وجود الاكونت if getAccountData(HT,'VIP',1) then outputChatBox("Hi",source, 255, 0, 0, true ) triggerClientEvent ( source, "SHOW2", source) else outputChatBox("VIP لم تقم بالاشتراك لفتح لوحة ",source, 255, 0, 0, true ) end end end) Edited April 6, 2017 by 3laa33
#STZ Posted April 6, 2017 Author Posted April 6, 2017 acce = getPlayerAccount ( localPlayer ) triggerServerEvent("SHOW_s2",localPlayer,acce,localPlayer) getPlayerAccount سيرفر سايد و لوكال بلاير كلاينت
AE. Posted April 6, 2017 Posted April 6, 2017 Just now, MR.NaiF-MTA said: acce = getPlayerAccount ( localPlayer ) triggerServerEvent("SHOW_s2",localPlayer,acce,localPlayer) getPlayerAccount سيرفر سايد و لوكال بلاير كلاينت عدلت
#STZ Posted April 6, 2017 Author Posted April 6, 2017 معليش ممكن تصحيح لذا كمان الفكرة زر يعطي اكاونت داتا لاسم حساب في ايديت وزر يشيل الاكاونت داتا من الحساب في مكتوب في نفس الايدين addEventHandler("onClientGUIClick",root,function() if ( source == Act ) then local Acc = guiGetText(EDIT) triggerServerEvent("Enable",localPlayer,Acc,localPlayer) elseif ( source == Dis ) then local Acc = guiGetText(EDIT) triggerServerEvent("Dis",localPlayer,Acc,localPlayer) end end ) addEvent("SHOW_s2",true) addEventHandler("SHOW_s2",getRootElement(), function(player) HT = getPlayerAccount ( player ) if HT then if getAccountData(HT,'VIP',1) then outputChatBox("Hi",source, 255, 0, 0, true ) triggerClientEvent ( source, "SHOW2", source) else outputChatBox("VIP لم تقم بالاشتراك لفتح لوحة ",source, 255, 0, 0, true ) end end end) addEvent("Enable",true) addEventHandler("Enable",getRootElement(), function(accname,player) hie = getAccount ( accname ) if hie then -- نتاكد من وجود الاكونت setAccountData(hie,'VIP',1) outputChatBox( "VIP" ..accname.. "تم تفعيل الاشتراك للحساب" ,root, 255, 0, 0, true ) else outputChatBox("لا يوجد حساب بهذا الاسم",player, 255, 0, 0, true ) end end ) addEvent("Dis",true) addEventHandler("Dis",getRootElement(), function(accname,player) hie = getAccount ( accname ) if hie then -- نتاكد من وجود الاكونت setAccountData(hie,'VIP',0) outputChatBox( "VIP" ..accname.. "تم تفعيل الاشتراك للحساب" ,root, 255, 0, 0, true ) else outputChatBox("لا يوجد حساب بهذا الاسم",player, 255, 0, 0, true ) end end )
iMr.WiFi..! Posted April 6, 2017 Posted April 6, 2017 addEventHandler("onClientGUIClick",root,function() local Acc = guiGetText(EDIT) if ( source == Act ) then triggerServerEvent("Enable",localPlayer,Acc) end if ( source == Dis ) then triggerServerEvent("Dis",localPlayer,Acc) end end ) addEvent("Enable",true) addEventHandler("Enable",getRootElement(), function(accname) local En = getAccount ( accname ) if En then -- نتاكد من وجود الاكونت setAccountData(En,'VIP',1) outputChatBox( "VIP" ..accname.. "تم تفعيل الاشتراك للحساب" ,root, 255, 0, 0, true ) else outputChatBox("لا يوجد حساب بهذا الاسم",source, 255, 0, 0, true ) end end ) addEvent("Dis",true) addEventHandler("Dis",getRootElement(), function(accname) local hie = getAccount ( accname ) if hie then -- نتاكد من وجود الاكونت setAccountData(hie,'VIP',0) outputChatBox( "VIP" ..accname.. "تم الغاء التفعيل من الحساب :" ,root, 255, 0, 0, true ) else outputChatBox("لا يوجد حساب بهذا الاسم",source, 255, 0, 0, true ) end end )
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now