-
Posts
20 -
Joined
-
Last visited
Everything posted by FatHy
-
how ? i'm a noob :v
-
can you give me example?
-
How can i check player serial?
-
How can i do it 3 accounts?
-
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
-
شكرااااااااان الكود نفع ولله مدري وش اقولك
- 32 replies
-
- help
- guestaccount
-
(and 2 more)
Tagged with:
-
شكراااااااااااااااان نفع
- 32 replies
-
- help
- guestaccount
-
(and 2 more)
Tagged with:
-
انا اسف علا ازعاجكم و شكران لكل من حاول مساعدتي
- 32 replies
-
- help
- guestaccount
-
(and 2 more)
Tagged with:
-
ميوت تقدر تخلي البلير الجوست لما يخش ما يقدر يفتح الشات (T) و لما يسجل دخول يقدر اظن كدا اسهل لما يدوس T الشات ما يفتح و لما يسجل دخول الشات يفتح
- 32 replies
-
- help
- guestaccount
-
(and 2 more)
Tagged with:
-
اه اه لا ما نفع
- 32 replies
-
- help
- guestaccount
-
(and 2 more)
Tagged with:
-
اريدة ما يقدر يكتب مثال انا كتبت:T ما تنكتب و ينكتب بدالها :Login first يسجل دخول حتا يقدر يكتب هاذا قصدي
- 32 replies
-
- help
- guestaccount
-
(and 2 more)
Tagged with:
-
انا ما بعرف في البرمجة لاكن انا اريد فقط يقول Login first كل مرة يحاول الكتابة هناك اشخاص يتخلون السيرفر لا يسجلون ب حساب و يكونو Guest يسبو و يخرجو Login First ان كان الشخص ما سجل و يحاول ان يكتب ما يستطيع الكتابة و بدل الكلمة اللي كان هيكتبها الشخص ينكتب بدالها
- 32 replies
-
- help
- guestaccount
-
(and 2 more)
Tagged with:
-
انا مبتدء في البرمجة يشتغل لاكن ما يفك الميوت 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 ==================
- 32 replies
-
- help
- guestaccount
-
(and 2 more)
Tagged with:
-
حطيطة في جروب الادمن بل ضبط و نسخت اللي كاتبة و ما يعمل شي ابدا لو حطيطة 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 ) ما يعمل شي ابدا (انا حاطة في جروب الادمن)
- 32 replies
-
- help
- guestaccount
-
(and 2 more)
Tagged with:
-
أريد ان يعطية ميوت و يكتبلة [You Need To Login First] <3 و شكران
- 32 replies
-
- help
- guestaccount
-
(and 2 more)
Tagged with:
-
I want if ghost account when the player joins can not talk only when login اريد عندما يتخل احد السيرفر لايستطيع التحدث عندما يسجل دخولة يستطيع التحدث مثال: اذا كتبت :Hi يقول لي السيرفر :Login First اتمنا احد يستطيع مساعدتي
- 32 replies
-
- help
- guestaccount
-
(and 2 more)
Tagged with:
-
function(hitElement, matchingDimension) if (isElement(hitElement)) and (getElementType (hitElement) == "player") and (getElementID (source) == "greenzoneColshape") then toggleControl (hitElement, "fire", false) toggleControl (hitElement, "next_weapon", false) toggleControl (hitElement, "previous_weapon", false) toggleControl (hitElement, "aim_weapon", false) toggleControl (hitElement, "vehicle_fire", false) showPlayerHudComponent (hitElement, "ammo", false) showPlayerHudComponent (hitElement, "weapon", false) triggerClientEvent (hitElement, "enableGodMode", hitElement) outputDebugString (getPlayerName(hitElement) .. " has entered the greenzone") end end) False يكون Jetpack كيف اجعل =========================================================================================== هاذا الكامل addEventHandler ("onResourceStart",getResourceRootElement(getThisResource()), function() local allGreenzones = getElementsByType ("radararea") for i,v in ipairs (allGreenzones) do local r,g,b,a = getRadarAreaColor (v) if (r == 0) and (g == 255) and (b == 0) and (a == 127) then local x,y = getElementPosition (v) local sx,sy = getRadarAreaSize (v) local col = createColCuboid (x,y, -50, sx,sy, 7500) setElementID (col, "greenzoneColshape") end end end) addEventHandler ("onColShapeHit", getRootElement(), function(hitElement, matchingDimension) if (isElement(hitElement)) and (getElementType (hitElement) == "player") and (getElementID (source) == "greenzoneColshape") then toggleControl (hitElement, "fire", false) toggleControl (hitElement, "next_weapon", false) toggleControl (hitElement, "previous_weapon", false) toggleControl (hitElement, "aim_weapon", false) toggleControl (hitElement, "vehicle_fire", false) showPlayerHudComponent (hitElement, "ammo", false) showPlayerHudComponent (hitElement, "weapon", false) triggerClientEvent (hitElement, "enableGodMode", hitElement) outputDebugString (getPlayerName(hitElement) .. " has entered the greenzone") end end) addEventHandler ("onColShapeLeave", getRootElement(), function(leaveElement, matchingDimension) if (getElementType (leaveElement) == "player") and (getElementID (source) == "greenzoneColshape") then toggleControl (leaveElement, "fire", true) toggleControl (leaveElement, "next_weapon", true) toggleControl (leaveElement, "previous_weapon", true) toggleControl (leaveElement, "aim_weapon", true) toggleControl (leaveElement, "vehicle_fire", true) showPlayerHudComponent (leaveElement, "ammo", true) showPlayerHudComponent (leaveElement, "weapon", true) triggerClientEvent (leaveElement, "disableGodMode", leaveElement) outputDebugString (getPlayerName(leaveElement) .. " has left the greenzone") end end) ================================================================== رابط المود > https://community.multitheftauto.com/index.php?p=resources&s=details&id=1287
- 1 reply
-
- 2
-
كيف اعمل في function Muscle ( SPTM, command, amount, player1 ) if ( setPlayerStat ( SPTM, 23, amount ) ) then outputChatBox("Muscle Has Ben Set!", player1, 50, 999, 50) else outputChatBox("Failed To Set Your Muscle!", player1, 999, 50, 50) end end addCommandHandler ( "muscle", Muscle ) ================================================================= كيف اجعل outputChatBox("Muscle Has Ben Set!", player1, 50, 999, 50) يرسلها رسالة خاصة للبلير مش رسالة عامة لكل الاشخاص
-
How to add this for admin only function consoleSetPlayerPosition ( source, commandName, posX, posY, posZ ) setElementPosition ( source, posX, posY, posZ ) end addCommandHandler ( "setpos", consoleSetPlayerPosition ) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "admin" ) ) then ???????????
-
How to know commands written by players all my mods .luac server hacked