-
Posts
555 -
Joined
-
Last visited
Everything posted by iMr ~ MnHmAr
-
اخوي الحمايه صارت حتى لو اطلع بر الحمايه تجي حمايه ما اقدر اطلع سلاح + اقدر اطلع موتر حتى لو في الحمايه وش الحل
-
يسلمو اخوي جآري التجربه بي داتا سويتها
-
الفانكشن سيرفر كيف اربطهم و كيف اعرف الي في الماآركه كلنت ^^
-
مشكله في كود آلحمآيه كل شي ءمحمي لكن لما يجي احد يطلع بر الحمايه ويطلق على الي في الحمايه ينقص الدم حقه ^^ وش الحل ؟ SafahM = createMarker ( -3413.11499 ,-2996.82300, 15.06875, "cylinder", 180, 250, 250, 250, 255 ) SafahM = createMarker ( 275.24271 ,1990.40491, 17.65536, "cylinder", 40, 250, 250, 250, 255 ) addEventHandler ( "onMarkerHit", SafahM, function ( hitPlayer ) if getElementType ( hitPlayer ) == "player" then toggleControl (hitPlayer,"fire", false ) toggleControl (hitPlayer, "next_weapon", false) toggleControl (hitPlayer, "previous_weapon", false) toggleControl (hitPlayer, "aim_weapon", false) toggleControl (hitPlayer, "vehicle_fire", false) elseif getElementType ( hitPlayer ) == "vehicle" then local Player = getVehicleController ( hitPlayer ) outputChatBox ( "* ممنوع دخول المواتر هنا !", Player, 255, 0, 0, true ) destroyElement ( hitPlayer ) end end ) addEventHandler ( "onMarkerLeave", SafahM, function ( leftPlayer ) if getElementType (leftPlayer ) == "player" then toggleControl (leftPlayer, "fire", true ) toggleControl (leftPlayer, "next_weapon", true) toggleControl (leftPlayer, "previous_weapon", true) toggleControl (leftPlayer, "aim_weapon", true) toggleControl (leftPlayer, "vehicle_fire", true) end end )
-
لدي مشكله في السكا لما اطلع وادخل ماتحفظ الفل آلآكواد addEventHandler('onResourceStart',resourceRoot, function ( ) CreateTable = executeSQLQuery ('CREATE TABLE IF NOT EXISTS `Save LeveL System` (Account,Data1,Data2) ') end ) exports.scoreboard:addScoreboardColumn('KillS') exports.scoreboard:addScoreboardColumn('LeVeL') Tabel = {} addEventHandler ( "onPlayerJoin", root, function() setElementData(source, "KillS", 0) setElementData(source, "LeVeL", 0) end ) addEventHandler( 'onPlayerWasted', root, function(_,Kill) if Kill ~= source and getElementType(Kill) == 'player' then local Killer = getPlayerAccount(Kill) if (Killer) then setElementData(Kill, "KillS", (getElementData(Kill, "KillS") or 0) + 1) if (getElementData(Kill, "KillS") == 25 ) then setElementData(Kill, "LeVeL", (getElementData(Kill, "LeVeL") or 0) + 1) end end end end ) addEventHandler('onPlayerQuit',root, function ( ) local _LeveL = executeSQLQuery("SELECT * FROM `Save LeveL System` WHERE Account=?",getPlayerAccount(source) ) if ( type ( _LeveL) == "table" and #_LeveL == 0 or not _LeveL ) then executeSQLQuery ( "INSERT INTO `Save Position System` ( Account,Data1,Data2 ) VALUES(?,?,?)",getPlayerAccount(source),getElementData(Kill, "KillS") or 0,getElementData(Kill, "LeVeL") or 0 ) else executeSQLQuery('UPDATE `Save LeveL System` SET Data1 =?, Data2 =? WHERE Account =?',(getElementData(Kill, "KillS") or 0),(getElementData(Kill, "LeVeL") or 0),getPlayerAccount(source) ) end end ) addEventHandler('onPlayerLogin',root, function ( ) local _LeveL = executeSQLQuery("SELECT * FROM `Save LeveL System` WHERE Account=?",getPlayerAccount(source) ) if ( type ( _LeveL ) == "table" and #_LeveL == 0 or not _LeveL ) then return end setElementData(source, "KillS", Data1 or 0) setElementData(source, "LeVeL", Data2 or 0) end )
-
يب اخوي ابي السلاب السلاب ما جاء له سبب ^^ و حتى سحب السياره و تفجيرهآ ^^
-
مشور يعطيك العافيه ماقصرت بس انا سويتها ول ازبطة فآ الي له خبره فيه يعدلي : <messages> <!-- Accepted subgroups: all - Output to chatbox for all log - Log file output player - Victim/Player chatbox output admin - Admin chatbox output Variables: $player - player $admin - admin $data - Additional information, not all the nodes use it. $data2 - Additional information, not all the nodes use it. --> <player> <group action="ban" r="255" g="0" b="0"> <all>$player has been banned$by_admin_4all. $data2 $data</all> <log>ADMIN: $admin has banned $player $data $data2</log> </group> <group action="kick" r="255" g="0" b="0"> <all>$player has been kicked$by_admin_4all.$data</all> <log>ADMIN: $admin has kicked $player $data</log> </group> <group action="mute" r="255" g="0" b="0"> <all>$player has been muted$by_admin_4all. $data2 $data</all> <log>ADMIN: $admin has muted $player $data $data2</log> </group> <group action="setnick" r="255" g="0" b="0"> <log>ADMIN: $player name changed to $data2 $by_admin_4all. $data</log> </group> <group action="unmute" r="0" g="255" b="100"> <all>$player has been unmuted$by_admin_4all. $data</all> <log>ADMIN: $admin has unmuted $player</log> </group> <group action="freeze" r="255" g="0" b="0"> <admin>$player has been frozen$by_admin_4all.$data</admin> <player>You have been frozen$by_admin_4plr.$data</player> <log>ADMIN: $admin has frozen $player</log> </group> <group action="unfreeze" r="0" g="255" b="100"> <admin>$player has been unfrozen$by_admin_4all.</admin> <player>You have been unfrozen$by_admin_4plr.</player> <log>ADMIN: $admin has unfrozen $player</log> </group> <group action="slap" r="235" g="20" b="200"> <all>$player has been slapped$by_admin_4all. ($data HP)$data2</all> <log>ADMIN: $admin has slapped $player ($data HP)$data2</log> </group> <group action="shout" r="255" g="100" b="30"> <admin>You have shouted at $player</admin> </group> <group action="sethealth" r="0" g="170" b="170"> <admin>$player's health has been changed to $data</admin> <player>Your health has been changed to $data$by_admin_4plr.</player> <log>ADMIN: $admin has changed $player's health to $data</log> </group> <group action="setarmour" r="122" g="122" b="122"> <admin>$player's armour has been changed to $data</admin> <player>Your armour has been changed to $data$by_admin_4plr.</player> <log>ADMIN: $admin has changed $player's armour to $data</log> </group> <group action="setmoney" r="225" g="170" b="90"> <admin>$player's money has been set to $data</admin> <player>Your money has been set to $data$by_admin_4plr.</player> <log>ADMIN: $admin has set $player's money to $data</log> </group> <group action="setskin" r="255" g="122" b="0"> <admin>$player's skin has been changed to $data</admin> <player>Your skin has been changed to $data$by_admin_4plr.</player> <log>ADMIN: $admin has changed $player's skin to $data</log> </group> <group action="setteam" r="255" g="255" b="0"> <admin>$player has been moved to the $data team.</admin> <player>You have been moved to the $data team$by_admin_4plr.</player> <log>ADMIN: $admin has moved $player to the $data team</log> </group> <group action="removefromteam" r="255" g="255" b="0"> <admin>$player has been removed from the $data team.</admin> <player>You have been removed from the $data team$by_admin_4plr.</player> <log>ADMIN: $admin has removed $player from the $data team</log> </group> <group action="setinterior" r="0" g="255" b="0"> <admin>$player has been moved to the $data interior.</admin> <player>You have been moved to the $data interior$by_admin_4plr.</player> <log>ADMIN: $admin has moved $player to the $data interior</log> </group> <group action="setdimension" r="0" g="255" b="0"> <admin>$player has been moved to the $data dimension.</admin> <player>You have been moved to the $data dimension$by_admin_4plr.</player> <log>ADMIN: $admin has moved $player to the $data dimension</log> </group> <group action="setstat" r="255" g="122" b="0"> <admin>$player's $data has been set to $data2</admin> <player>Your $data has been set to $data2$by_admin_4plr.</player> <log>ADMIN: $admin has changed $player's $data to $data2</log> </group> <group action="jetpackr" r="255" g="0" b="0"> <admin>$player's jetpack has been removed</admin> <player>Your jetpack has been removed$by_admin_4plr.</player> <log>ADMIN: $admin has removed $player's jetpack</log> </group> <group action="jetpacka" r="255" g="122" b="0"> <admin>$player has been given a jetpack</admin> <player>You have been given a jetpack$by_admin_4plr.</player> <log>ADMIN: $admin has given a jetpack to $player</log> </group> <group action="adminr" r="255" g="0" b="0"> <admin>$player's admin rights have been revoked</admin> <player>Your admin rights have been revoked$by_admin_4plr.</player> <log>ADMIN: $admin has revoked admin privilegies from $player</log> </group> <group action="admina" r="0" g="255" b="0"> <admin>$player has been given admin rights</admin> <player>You have been give admin rights$by_admin_4plr.</player> <log>ADMIN: $admin has given admin privilegies to $player</log> </group> <group action="givevehicle" r="0" g="255" b="0"> <admin>$player has been given a '$data'</admin> <player>You have been given a '$data'$by_admin_4plr.</player> <log>ADMIN: $admin has given $player a '$data'" </log> </group> <group action="giveweapon" r="0" g="0" b="255"> <admin>$player has been given a '$data'($data2)</admin> <player>You have been given a '$data'($data2)$by_admin_4plr.</player> <log>ADMIN: $admin has given $player '$data'</log> </group> <group action="warp" r="0" g="200" b="50"> <admin>You have warped to $player</admin> <log>ADMIN: $admin has warped to $player</log> </group> <group action="warpto" r="0" g="200" b="50"> <admin>$player has been warped to $data</admin> <player>You have been warped to $data$by_admin_4plr.</player> <log>ADMIN: $admin has moved $player to $data</log> </group> </player> <team> <group action="createteam" r="225" g="170" b="90"> <admin>Successfully created team '$data'</admin> <log>ADMIN: $admin has created a team '$data'</log> </group> <group action="destroyteam" r="225" g="170" b="90"> <admin>Successfully destroyed team '$data'</admin> <log>ADMIN: $admin has destroyed a team '$data'</log> </group> </team> <vehicle> <group action="repair" r="0" g="255" b="0"> <admin>$player's vehicle has been fixed</admin> <player>Your vehicle has been fixed$by_admin_4plr.</player> <log>ADMIN: $admin has fixed vehicle of $player</log> </group> <group action="blowvehicle" r="255" g="0" b="0"> <admin>$player's vehicle has been blown</admin> <player>Your vehicle has been blown$by_admin_4plr.$data</player> <log>ADMIN: $admin has blown vehicle of $player $data2</log> </group> <group action="destroyvehicle" r="255" g="0" b="0"> <admin>$player's vehicle has been destroyed</admin> <player>Your vehicle has been destroyed$by_admin_4plr.$data2</player> <log>ADMIN: $admin has destroyed vehicle of $player $data2</log> </group> <group action="customize" r="225" g="170" b="90"> <admin>$player's vehicle has been upgraded. ($data)</admin> <player>Your vehicle has been upgraded$by_admin_4plr.</player> <log>ADMIN: $admin has upgraded vehicle of $player ($data)</log> </group> <group action="customizer" r="225" g="170" b="90"> <admin>$player's vehicle upgrades have been removed.</admin> <player>Your vehicle upgrades have been removed$by_admin_4plr.</player> <log>ADMIN: $admin has has removed vehicle upgrades of $player</log> </group> <group action="setpaintjob" r="225" g="170" b="90"> <admin>$player's vehicle paint job set to $data</admin> <player>Your vehicle paint job has been changed to $data$by_admin_4plr.</player> <log>ADMIN: $admin has changed paint job of $player's vehicle to $data</log> </group> <group action="setcolor" r="225" g="170" b="90"> <admin>$player's vehicle color changed</admin> <player>Your vehicle color has been changed$by_admin_4plr.</player> <log>ADMIN: $admin has changed color of $player's vehicle</log> </group> <group action="setlights" r="225" g="170" b="90"> <admin>$player's vehicle lights color changed</admin> <player>Your vehicle lights color has been changed$by_admin_4plr.</player> <log>ADMIN: $admin has changed lights color of $player's vehicle</log> </group> <group action="setplates" r="225" g="170" b="90"> <admin>$player's license plates have been changed to '$data'</admin> <player>Your vehicle license plates have been changed to '$data'$by_admin_4plr</player> <log>ADMIN: $admin has changed license plates of $player's vehicle to '$data'</log> </group> </vehicle> <resource> </resource> <server> <group action="setgame" r="225" g="170" b="90"> <admin>ASE gamemode info has been changed to '$data'</admin> <log>ADMIN: $admin has changed ASE gamemode to '$data'</log> </group> <group action="setmap" r="225" g="170" b="90"> <admin>ASE map info has been changed to '$data'</admin> <log>ADMIN: $admin has changed ASE map info to '$data'</log> </group> <group action="setwelcome" r="225" g="170" b="90"> <admin>Welcome message has been set to '$data'</admin> <log>ADMIN: $admin has set welcome message to '$data'</log> </group> <group action="resetwelcome" r="225" g="170" b="90"> <admin>Welcome message has been reset</admin> <log>ADMIN: $admin has reset the welcome message</log> </group> <group action="setpassword" r="225" g="170" b="90"> <admin>Server password set to '$data'</admin> <log>ADMIN: $admin has set server password to '$data'</log> </group> <group action="resetpassword" r="225" g="170" b="90"> <admin>Server password has been reset</admin> <log>ADMIN: $admin has reset server password</log> </group> <group action="settime" r="225" g="170" b="90"> <all>Time set to $data$by_admin_4all.</all> <log>ADMIN: $admin has changed time to $data</log> </group> <group action="setweather" r="225" g="170" b="90"> <all>Weather set to '$data'$by_admin_4all.</all> <log>ADMIN: $admin has set weather to '$data'</log> </group> <group action="blendweather" r="225" g="170" b="90"> <admin>Blending weather to '$data'</admin> <log>ADMIN: $admin is blending weather to '$data'</log> </group> <group action="setgravity" r="225" g="170" b="90"> <all>Gravitation value set to '$data'$by_admin_4all.</all> <log>ADMIN: $admin has set gravitation to $data</log> </group> <group action="setgamespeed" r="225" g="170" b="90"> <all>Game speed set to '$data'$by_admin_4all.</all> <log>ADMIN: $admin has set game speed to '$data'</log> </group> <group action="setwaveheight" r="225" g="170" b="90"> <all>Waves height set to '$data'$by_admin_4all.</all> <log>ADMIN: $admin has set waves height to '$data'</log> </group> <group action="setblurlevel" r="225" g="170" b="90"> <all>Blur level set to '$data'$by_admin_4all.</all> <log>ADMIN: $admin has set blur level to '$data'</log> </group> </server> <bans> <group action="unbanip" r="225" g="170" b="90"> <admin>IP: $data successfully removed from bans list</admin> <log>ADMIN: $admin has unbanned IP $data</log> </group> <group action="unbanserial" r="225" g="170" b="90"> <admin>SERIAL: $data successfully removed from bans list</admin> <log>ADMIN: $admin has unbanned Serial $data</log> </group> <group action="banip" r="225" g="170" b="90"> <admin>IP: $data successfully added to bans list</admin> <log>ADMIN: $admin has banned IP $data</log> </group> <group action="banserial" r="225" g="170" b="90"> <admin>SERIAL: $data successfully added to bans list</admin> <log>ADMIN: $admin has banned Serial $data</log> </group> </bans> <admin> <group action="create" r="225" g="170" b="90"> <admin>$data has been successfully created</admin> <log>ADMIN: $data has been created by $admin</log> </group> <group action="destroy" r="225" g="170" b="90"> <admin>$data has been successfully destroyed</admin> <log>ADMIN: $data has been destroyed by $admin</log> </group> <group action="password" r="50" g="255" b="50"> <admin>You password has been successfully changed to '$data'</admin> </group> <group action="settings" r="225" g="170" b="90"> <admin>Set '$data' to '$data2'</admin> <log>ADMIN: Set '$data' to '$data2' by $admin</log> </group> </admin> </messages>
-
لا اخي ويزرد يعدل على ملف في الادمنيه شرحه بس انا ابي رابط الشرح قبل فتره كان معي بس فرمت الجهاز و راح
-
السلام عليكم ورحمة الله و بركاته انا ابي احط اسباب لصك الوحه الادمنيه مثل جيت بصك احد سلاب لما اضرب على سلاب و احدد مثل سلاب 100 لما اضرب يجي لوحه لما اكتب السبب يصكه او الكيك و الوحه له انا كانت معي بس فرمت الجهاز وراحت شفت شرح مره لي الاخ ويزرد بس لما فرمته راح يآليت الي معه يديني اياه او علموني كيف اضيفها وشكرا
-
موفقء ان شاء الله
-
مود رائع عجبني تصميم الدي آكس آهنيك صرآحه مبدع
-
جربت ذا و مازبط local accountName = { --- ["M-M"] = true ["S-S"] = true } local GropName = { --- ["Admin"] = true ["Counsol"] = true } setTimer( function() for _,v in ipairs(GropName) do -- لوب لـ اسماء القروبات for objects,name in pairs(accountName)do -- لوب للحسابات local accName = getPlayerAccount ( source ) -- نجيب حساب الاعب if isObjectInACLGroup ("user."..accName, aclGetGroup ( v ) ) then -- اذا رتبته من الجدول if accountName["accountName"] then --- يتحقق اذا الحساب موجود او لا else -- اذا مو موجود aclGroupRemoveObject (aclGetGroup(v), "user."..accName) end end end end, 1000, 0) مو زابط جربته وش المشكله
-
مشكور اخي بس التآمير ليه استخدمه
-
انا اقولك هذا الجدول الي فيه الداتا صح كذا تنحط الداتا في السيكل local CreateTable = executeSQLQuery ('CREATE TABLE IF NOT EXISTS `Save LeveL System` (Account'..setElementData(kill, "LeVeL")..''..setElementData(source, "LeVeL", 0)..') ')
-
انا اعرف له لكن كيف احفظ الداتا بي داخلها
-
آريد فانكشنات ابي لما احد يرقي نفسه ككونسل تنسحب ممنه ابي يعني بي سريالات يعني لو سرياله مو موجود في جدول يكنسل الحدث ويسحبها ^^
-
الاول انا سويت كذا شوف local CreateTable = executeSQLQuery ('CREATE TABLE IF NOT EXISTS `Save LeveL System` (Account'..setElementData(kill, "LeVeL")..''..setElementData(source, "LeVeL", 0)..') ') --- ثمن لما الاعب يطلع ابيه يحفظ داتا الثنتين حقت الكلاس و لفل ------- الان لما الاعب يطلع addEventHandler('onPlayerQuit',root, function ( ) local Killer = getPlayerAccount( source ) if isGuestAccount ( Killer ) then --- اذا مو مسجل يخلي داتا الفل 0 setElementData(source, "KillS", 0) setElementData(source, "LeVeL", 0) else -- اذا مااحقق الشرط Data1 = setElementData(Kill, "KillS", (getElementData(Kill, "KillS") or 0) + 1) -- يجي عدد قتله اذا مافيه يحطه 0 Data2 = setElementData(Kill, "LeVeL", (getElementData(Kill, "LeVeL") or 0) + 1) -- نجيب لفله اواذا ما عه لفل نعطيه داتا 0 local Results = executeSQLQuery("SELECT * FROM `Save LeveL System` WHERE Account=?",getPlayerAccount(source) ) if ( type ( Results ) == "table" and #Results == 0 or not Results ) then --- يتحقق القيمه فاضيه او لا executeSQLQuery ( "INSERT INTO `Save Position System` ( Account,Data1,Data2 ) VALUES(?,?,?)",getPlayerAccount(source),Data1,Data2 ) else اذا ماتحقق الشرط executeSQLQuery('UPDATE `Save LeveL System` SET Data1 =?, Data2 =? WHERE Account =?',Data1,Data2,getPlayerAccount(source) ) end end ) addEventHandler('onPlayerLogin',root, -- لما الاعب يدخل function ( ) local Results1 = executeSQLQuery("SELECT * FROM `Save LeveL System` WHERE Account=?",getPlayerAccount(source) ) -- يسترجع روم الحساب حق الاعب if ( type ( Results1 ) == "table" and #Results1 == 0 or not Results1 ) then return end ---- يتحقق اذا فيه قيمه يكمل الشرط اذا مافيه يرجع الوظيفه setElementData(Kill, "KillS", (getElementData(Kill, "KillS") or 0) + 1)--يعطيه كم قتل setElementData(Kill, "LeVeL", (getElementData(Kill, "LeVeL") or 0) + 1)-- يعطيه لفله ^^ end )
-
ممكن شرح كيف حفظ setElementData OR getElementData في قاعدة بيانات^^
-
كيف احفظ آلمنت دآتا في قاعدة بيانات ممكن مثال ^^
-
مودد رائع بس لو تحطه مثل ماقال آلآخ تنطيل بيطلع آحلى
-
ممكن مثال على قاعدة بيانات تنحفظ دآتآ دآخلها
-
طيب اخوي يمديني احف الفل ع قآعدة بيآنات المود جايبه من خويي يعني ابددل SPORT بي source
-
تسلم ي عبد آلكريممء طيب انا عندي مود لفل ابي اول واحد مايدخل يجي له لفل 0 و كلاس 0 بس مايجي شيء بس لما يقتل يزيد 1 انا ابيه يبدا من 0 ما ابيه يجي مافيه شيء في التاب exports.scoreboard:addScoreboardColumn('KillS') exports.scoreboard:addScoreboardColumn('LeVeL') Tabel = {} addEventHandler ( "onPlayerJoin", root, function() setElementData(SPORT, "Kill", 0) setElementData(SPORT, "Kill", 0) end ) addEventHandler( 'onPlayerWasted', root, function(_,Kill) if Kill ~= source and getElementType(Kill) == 'player' then local acKiller = getPlayerAccount(Kill) if (acKiller) then setElementData(Kill, "KillS", (getElementData(Kill, "KillS") or 0) + 1) if (getElementData(Kill, "KillS") == 25 ) then setElementData(Kill, "LeVeL", (getElementData(Kill, "LeVeL") or 0) + 1) end end end end )
