MSHOOSH Posted March 4, 2013 Share Posted March 4, 2013 السلام عليكم ورحمه الله و بركاته سويت كود اذا دخلت يعرف سيريال حقي و يدخلني بحسابي على طول بس ما اشتغل function ALO() if (getPlayerSerial(player) == "046D2F28A0251C7ED45E14ED36285E42") then logIn ( thePlayer, msh, 2321 ) end end addEventHandler ( "onPlayerJoin", getRootElement(), ALO) وين الخطا ؟ انا مبتدى في البرمجه Link to comment
X-SHADOW Posted March 4, 2013 Share Posted March 4, 2013 (edited) player -- مو معرف ! thePlayer -- مو معرف + msh + 2321 مو معرف ~~~~~ تم التعديل # function ALO( uPlayer, username, password) if (getPlayerSerial(uPlayer) == "046D2F28A0251C7ED45E14ED36285E42") then account = getAccount( username, pasword) if account then logIn ( uPlayer, account, password ) outputChatBox('Access Granted!', source, 255, 255, 0) else outputChatBox('Access Denied!', source, 255, 255, 0) end end end addEventHandler ( "onClinetResourceStart", getRootElement(), ALO) Edited March 4, 2013 by Guest Link to comment
TAPL Posted March 4, 2013 Share Posted March 4, 2013 (edited) https://wiki.multitheftauto.com/wiki/LogIn bool logIn ( player thePlayer, account theAccount, string thePassword ) https://wiki.multitheftauto.com/wiki/OnPlayerJoin The source of this event is the player who joined. https://wiki.multitheftauto.com/wiki/OutputChatBox visibleTo: This specifies who the chat is visible to. Any players in this element will see the chat message. See visibility. r: The amount of red in the color of the text. Default value is 231. g: The amount of green in the color of the text. Default value is 217. b: The amount of blue in the color of the text. Default value is 176. colorCoded: A boolean value determining whether or not '#RRGGBB' tags should be used. edit : player -- مو معرف !thePlayer -- مو معرف + msh + 2321 مو معرف ~~~~~ function ALO( uPlayer, username, password) if (getPlayerSerial(uPlayer) == "046D2F28A0251C7ED45E14ED36285E42") then account = getAccount( username, pasword) if account then logIn ( uPlayer, account, password ) outputChatBox('Access Granted!', uPlayer, 255, 255, 0) else outputChatBox('Access Denied!', uPlayer, 255, 255, 0) end end end addEventHandler ( "onPlayerJoin", getRootElement(), ALO) https://wiki.multitheftauto.com/wiki/OnPlayerJoin Parameters No parameters. Edited March 4, 2013 by Guest Link to comment
MSHOOSH Posted March 4, 2013 Author Share Posted March 4, 2013 ي شادو ما اشتغل تابل : بجرب Link to comment
TAPL Posted March 4, 2013 Share Posted March 4, 2013 عدلت الكود جرب من جدديد تبي تكحلها عميتها Link to comment
X-SHADOW Posted March 4, 2013 Share Posted March 4, 2013 الكود اللي فوق لاتجربه # تم تعديل الايفنت ~~~~ function ALO( username, password) if (getPlayerSerial(source) == "046D2F28A0251C7ED45E14ED36285E42") then account = getAccount( username, pasword) if account then logIn ( source, account, password ) outputChatBox('Access Granted!', source, 255, 255, 0) else outputChatBox('Access Denied!', source, 255, 255, 0) end end end addEventHandler ( "onResourceStart", getRootElement(), ALO) Link to comment
Tete omar Posted March 4, 2013 Share Posted March 4, 2013 function ALO() if(getPlayerSerial(source) == "046D2F28A0251C7ED45E14ED36285E42")then setTimer(logIn, 500, 1, source, getAccount("msh"), "2321") outputChatBox("You've been automatically logged in", 0, 255, 0) end end addEventHandler("onPlayerJoin", root, ALO) Link to comment
TAPL Posted March 5, 2013 Share Posted March 5, 2013 function ALO() if(getPlayerSerial(source) == "046D2F28A0251C7ED45E14ED36285E42")then setTimer(logIn, 500, 1, source, getAccount("msh"), "2321") outputChatBox("You've been automatically logged in", 0, 255, 0) end end addEventHandler("onPlayerJoin", root, ALO) https://wiki.multitheftauto.com/wiki/OutputChatBox visibleTo: This specifies who the chat is visible to. Any players in this element will see the chat message. See visibility. r: The amount of red in the color of the text. Default value is 231. g: The amount of green in the color of the text. Default value is 217. b: The amount of blue in the color of the text. Default value is 176. colorCoded: A boolean value determining whether or not '#RRGGBB' tags should be used. Link to comment
PaiN^ Posted March 5, 2013 Share Posted March 5, 2013 function ALO() if(getPlayerSerial(source) == "046D2F28A0251C7ED45E14ED36285E42")then setTimer(logIn, 500, 1, source, getAccount("msh"), "2321") outputChatBox("You've been automatically logged in", 0, 255, 0) end end addEventHandler("onPlayerJoin", root, ALO) وليه التايمر ؟؟ ؟؟ getAccount وليه الـ -- Server : addEventHandler("onPlayerJoin", root, function () if getPlayerSerial(source) == "046D2F28A0251C7ED45E14ED36285E42" then logIn(source, msh, "2321") outputChatBox("You've been automatically logged in", source, 0, 255, 0, true) end end ) Link to comment
HsSoN Posted March 5, 2013 Share Posted March 5, 2013 انت حاطها مجهوله مو معرفه خلها كذا getAccount("msh") Link to comment
HsSoN Posted March 5, 2013 Share Posted March 5, 2013 كلمة msh مجهوله خله كذا getAccount("msh") Link to comment
MSHOOSH Posted March 5, 2013 Author Share Posted March 5, 2013 addEventHandler("onPlayerJoin", root, function () if getPlayerSerial(source) == "046D2F28A0251C7ED45E14ED36285E42" then logIn(source, msh, "2321") outputChatBox("You've been automatically logged in", source, 0, 255, 0, true) end end ) ما اشتغل `` Link to comment
MSHOOSH Posted March 5, 2013 Author Share Posted March 5, 2013 انت حاطها مجهوله مو معرفه خلها كذا getAccount("msh") bool logIn ( player thePlayer, account theAccount, string thePassword ) لو كلامك صح بيكون كذا bool logIn ( player thePlayer, string theAccount, string thePassword ) Link to comment
PaiN^ Posted March 5, 2013 Share Posted March 5, 2013 .. جرب كودي بعد ما تعطيه حقوق آدمن Link to comment
MSHOOSH Posted March 5, 2013 Author Share Posted March 5, 2013 function ALO() if(getPlayerSerial(source) == "046D2F28A0251C7ED45E14ED36285E42")then setTimer(logIn, 500, 1, source, getAccount("msh"), "2321") outputChatBox("You've been automatically logged in", 0, 255, 0) end end addEventHandler("onPlayerJoin", root, ALO) اشتغل يعطيك العافيه ي تيتي عمر مشكورين رازون حسوون تابل تيتي عمر شادو Link to comment
===|OSAMA|=== Posted March 5, 2013 Share Posted March 5, 2013 function ALO() if(getPlayerSerial(source) == "046D2F28A0251C7ED45E14ED36285E42")then setTimer(logIn, 500, 1, source, getAccount("msh"), "2321") outputChatBox("You've been automatically logged in", 0, 255, 0) end end addEventHandler("onPlayerJoin", root, ALO) إستبدل سطر رقم 4 الي بكود تيتي بذآ , outputChatBox ( "You've been automatically logged in", source, 0, 255, 0 ) لأنه السطر الي بكودهـ كلنت مهوب سيرفر # Link to comment
MSHOOSH Posted March 5, 2013 Author Share Posted March 5, 2013 function ALO() if(getPlayerSerial(source) == "046D2F28A0251C7ED45E14ED36285E42")then setTimer(logIn, 500, 1, source, getAccount("msh"), "2321") outputChatBox("You've been automatically logged in", 0, 255, 0) end end addEventHandler("onPlayerJoin", root, ALO) إستبدل سطر رقم 4 الي بكود تيتي بذآ , outputChatBox ( "You've been automatically logged in", source, 0, 255, 0 ) لأنه السطر الي بكودهـ كلنت مهوب سيرفر # يعطيك العافيه حبي اسامه على التنبيه ,. Link to comment
===|OSAMA|=== Posted March 5, 2013 Share Posted March 5, 2013 function ALO() if(getPlayerSerial(source) == "046D2F28A0251C7ED45E14ED36285E42")then setTimer(logIn, 500, 1, source, getAccount("msh"), "2321") outputChatBox("You've been automatically logged in", 0, 255, 0) end end addEventHandler("onPlayerJoin", root, ALO) إستبدل سطر رقم 4 الي بكود تيتي بذآ , outputChatBox ( "You've been automatically logged in", source, 0, 255, 0 ) لأنه السطر الي بكودهـ كلنت مهوب سيرفر # يعطيك العافيه حبي اسامه على التنبيه ,. حيآكـ الله # Link to comment
TD[M]ER Posted March 5, 2013 Share Posted March 5, 2013 .. جرب كودي بعد ما تعطيه حقوق آدمن م اعتقد تسجيل الدخول يبيلهه صلاحيه ادمنيةة , التسجيل بحساب جديد هو اللي يبيلهه الـ صلاحيه Link to comment
PaiN^ Posted March 5, 2013 Share Posted March 5, 2013 .. جرب كودي بعد ما تعطيه حقوق آدمن م اعتقد تسجيل الدخول يبيلهه صلاحيه ادمنيةة , التسجيل بحساب جديد هو اللي يبيلهه الـ صلاحيه ^^ مشكوور عالمعلومة Link to comment
Tete omar Posted March 6, 2013 Share Posted March 6, 2013 كان فيه شي صغير نسيته بس الاخ اسامة كفى ووفى، الله يعافيك، اي شي آخر اخوك بالخدمة ؛) Link to comment
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