Jump to content

FatHy

Members
  • Posts

    20
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

FatHy's Achievements

Civilian

Civilian (7/54)

1

Reputation

  1. How can i check player serial?
  2. How can i do it 3 accounts?
  3. I just want when someone join the server can't create only three 3 accounts that i found but it's one 1 account > bRegisteredOnce = {} function registerPlayer ( source, commandName, username, password ) if(password ~= "" and password ~= nil and username ~= "" and username ~= nil and not bRegisteredOnce[source]) then local accountAdded = addAccount(username,password) if(accountAdded) then outputChatBox("Thank you " .. getPlayerName(source) .. ", you're now registed, you can login with /login",source) bRegisteredOnce[source] = true else outputChatBox("Error creating account, contact the server admin.",source) end else if bRegisteredOnce[source] == true then outputChatBox("You already registered on this server!",source) else outputChatBox("Error creating account, correct syntax: /register <nick> <pass>",source) end end end my english not good T_T I hope someone can understand me
  4. شكرااااااااان الكود نفع ولله مدري وش اقولك
  5. شكراااااااااااااااان نفع
  6. انا اسف علا ازعاجكم و شكران لكل من حاول مساعدتي
  7. ميوت تقدر تخلي البلير الجوست لما يخش ما يقدر يفتح الشات (T) و لما يسجل دخول يقدر اظن كدا اسهل لما يدوس T الشات ما يفتح و لما يسجل دخول الشات يفتح
  8. اريدة ما يقدر يكتب مثال انا كتبت:T ما تنكتب و ينكتب بدالها :Login first يسجل دخول حتا يقدر يكتب هاذا قصدي
  9. انا ما بعرف في البرمجة لاكن انا اريد فقط يقول Login first كل مرة يحاول الكتابة هناك اشخاص يتخلون السيرفر لا يسجلون ب حساب و يكونو Guest يسبو و يخرجو Login First ان كان الشخص ما سجل و يحاول ان يكتب ما يستطيع الكتابة و بدل الكلمة اللي كان هيكتبها الشخص ينكتب بدالها
  10. انا مبتدء في البرمجة يشتغل لاكن ما يفك الميوت addEventHandler("onPlayerChat",root,function () if ( isPlayerMuted(source) ) then return end playeracc = getPlayerAccount (source) if isGuestAccount ( playeracc ) then cancelEvent( ) outputChatBox("* You Need To Login First.",source,255,0,0) setPlayerMuted(source, true) setElementData(source,"heismutedfromchat",true) end end ) ================================== لاكن معا addEventHandler("onPlayerLogin",root,function ( ) if ( getElementData(source,"heismutedfromchat") == false ) then return end if ( getElementData(source,"heismutedfromchat") == true ) then setPlayerMuted(source, false) setElementData(source,"heismutedfromchat",false) outputChatBox("* Your Mute has been removed.",source,255,255,0) end end end ) مش بيشتغل اظن في مشكلة فية OnPlayerlogin ==================
  11. حطيطة في جروب الادمن بل ضبط و نسخت اللي كاتبة و ما يعمل شي ابدا لو حطيطة addEventHandler("onPlayerChat",root,function () if ( isPlayerMuted(source) ) then return end playeracc = getPlayerAccount (source) if isGuestAccount ( playeracc ) then cancelEvent( ) outputChatBox("* You Need To Login First.",source,255,0,0) setPlayerMuted(source, true) end end ) يعطي ميوت بس لا يفكة =========== لو حطيطة هاذا كلة addEventHandler("onPlayerChat",root,function () if ( isPlayerMuted(source) ) then return end playeracc = getPlayerAccount (source) if isGuestAccount ( playeracc ) then cancelEvent( ) outputChatBox("* You Need To Login First.",source,255,0,0) setPlayerMuted(source, true) setElementData(source,"heismutedfromchat",true) end end ) addEventHandler("onPlayerLogin",root,function ( ) if ( getElementData(source,"heismutedfromchat") == false ) then return end if ( getElementData(source,"heismutedfromchat") == true ) then setPlayerMuted(source, false) setElementData(source,"heismutedfromchat",false) outputChatBox("* Your Mute has been removed.",source,255,255,0) end end end ) ما يعمل شي ابدا (انا حاطة في جروب الادمن)
  12. أريد ان يعطية ميوت و يكتبلة [You Need To Login First] <3 و شكران
×
×
  • Create New...