-
Posts
10,056 -
Joined
-
Last visited
-
Days Won
27
Everything posted by iPrestege
-
hello ( = , i have a simple problem here on this dman or shit or what ever script it,s not working i mean the shit anim -_-" i need some help to know what,s the wrong ! . thanks ! note : all other anim works ! but DRIVEBYS is not working ! function onCar(player) local vehicle = getPedOccupiedVehicle(player) if vehicle then setPedAnimation( player, "DRIVEBYS", "DOZER_getout_RHS") end end addCommandHandler("on", onCar)
-
function Repair(player) if ( getPlayerMoney (player) >= 5000 ) then takePlayerMoney(player, 5000) local vehicle = getPedOccupiedVehicle(player) if vehicle then fixVehicle(vehicle) outputChatBox("Vehicle Successfully Fixed", player, 255, 255, 0, true) else outputChatBox("Not enough money.", player, 255, 0, 0, true) end else outputChatBox("You are not in a vehicle", player, 255, 0, 0, true) end end for k,v in ipairs(getElementsByType("player")) do bindKey(v, "k", "down", Repair ) end
-
function Flip(player) if isPedInVehicle (player) then if ( getPlayerMoney (player) >= 10000 ) then takePlayerMoney(player, 10000) rx, ry, rz = getVehicleRotation (getPedOccupiedVehicle(player)) setVehicleRotation (getPedOccupiedVehicle(player), rx +180, ry, rz +180) outputChatBox("Car Successfully fliped", player, 255, 255, 0, true) else outputChatBox("Not enough money.", player, 255, 0, 0, true) end else outputChatBox("You are not in a vehicle", player, 255, 0, 0, true) end end for k,v in ipairs(getElementsByType("player")) do bindKey(v, "r", "down", Flip ) end -- Not Tested But Should Work . ماجربتة بس المفترض يشتغل على "السيرفر" ذذ
-
-- Client : addEventHandler('onClientGUIClick' , root, function() if ( source == GUIEditor_Button[3] ) then triggerServerEvent('onClick', localPlayer ) end end ) -- Server addEvent('onClick', true) addEventHandler('onClick', root, function() local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 1000) then takePlayerMoney(source,1000) local x,y,z = getElementPosition ( source ) local sigarette = createObject ( 1485, x, y, z ) attachElements ( sigarette, source, 0.05, 0, 0.7, 0, 45, 118 ) outputChatBox ( "* You have successfully purchased !", source, 255, 255, 0, true ) else outputChatBox ( "* You don't have enough money !", source, 255, 0, 0, true ) end end ) Client | Server @ Max مسوي ترايقر يسحب الفلوس ؟ لو كان الاعب مامعه المبلغ نفسة الاوبجكت راح ينعمل [ =
-
و خطأ مره ثالثة getLocalPlayer() ذا كلينت فقط و هنا الشرط حقك خطأ if map and map ~= 'Here' then المفروض if map and map == 'Here' then + الأفنت مشكوك في أمره بعدين ياذكي ترا صاحب الموضوع ما يبيه للبيس مود يبيه نفس البيس مود مو هو أصلاً البيس مود ما تقدر تطلق أو تضرب في اللوبي أو الأنتظار شحوال تابل ( = مادري انا لحس مخي ذا كل شوي يهرج هرج ومسوي نفي للماب --- صاحب الموضوع سحبنا عليك العذر والسموحة اعتقد اللي تبية مكان محدد تمنع فية الاسلحة صحيح الكلام ؟ : ) -- Not Tested | Client Side ( : TheCol = createColRectangle (x , y , Width, Height ) addEventHandler( "onClientColShapeHit", TheCol, function ( plr ) if ( plr == localPlayer ) then toggleControl("fire", false) -- كمل الاشياء الممنوعه end end ) addEventHandler( "onClientColShapeLeave", TheCol, function ( plr ) if ( plr == localPlayer ) then toggleControl("fire", true) end end )
-
برستيج * والتعديل : -- Not Tested function AntiWeapons(player) TheCol = createColRectangle (x , y , Width, Height ) local mapName = getMapName(source) if mapName = "اسم الماب" then toggleControl(player,"fire", false) -- كمل الاشياء الممنوعه end end addEventHandler( "onColShapeHit", TheCol, AntiWeapons ) ** الارقمنت كان مطلوب في الـ toggleControl في السيرفر سايد .
-
قصدك مسوي تايمر وتبي تحسب التايمر كم راح عليه ؟..الخ ؟ setTimer getTimerDetails
-
triggerServerEvent addEvent addEventHandler getPlayerMoney takePlayerMoney -- triggerServerEvent -- Client Side -- all Other Functions use it on the server side ^
-
-- Not Tested function AntiWeapons(Plr) TheCol = createColRectangle (x , y , Width, Height ) local mapName = getMapName(source) if mapName = "اسم الماب" then toggleControl("fire", false) -- كمل الاشياء الممنوعه end end addEventHandler( "onColShapeHit", TheCol, AntiWeapons ) [ Server Side ] fX: The X position of the collision rectangle's west side fY: The Y position of the collision rectangle's south side fWidth: The collision rectangle's width fHeight: The collision rectangle's height x = احداثي y = احداثي Width = العرض Height = الطول للمععلوميةة false = ممنوع او غير مفعل true = مفعل ومسموح
-
You Can See Here The Arabic Section So, Speake Arabic .
-
اطرح الكود كامل وهد اعصابك شوي وش فيك معصب ؟
-
GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(135,127,542,374,"?",false) guiSetVisible(GUIEditor_Window[1], false) GUIEditor_TabPanel[3] = guiCreateTabPanel(9,24,524,341,false,GUIEditor_Window[1]) GUIEditor_Tab[3] = guiCreateTab("?",GUIEditor_TabPanel[3]) GUIEditor_Image[1] = guiCreateStaticImage(351,149,30,34,"sor/1.png",false,GUIEditor_Tab[3]) closeButton = guiCreateButton(365,23,36,23,"~[x]~",false,GUIEditor_Window[1]) ---------------------------------------- bindKey( "F2", "down", function ( ) guiSetVisible ( GUIEditor_Window[1], not guiGetVisible ( GUIEditor_Window[1] ) ) showCursor ( guiGetVisible ( GUIEditor_Window[1] ) ) guiSetInputEnabled( guiGetVisible ( GUIEditor_Window[1] ) ) end ) addEventHandler ( "onClientGUIClick", root, function ( ) if source == closeButton then guiSetVisible( GUIEditor_Window[1], false ) showCursor( false ) guiSetInputEnabled( false ) elseif source == GUIEditor_Image[1] then playSound("sot/1.mp3") end end ) * الكود حق اسامة صحيح بس عدلت اضافة اخفاء النافذهـ + الكود المفروض يغلق النافذة ^^ متأكد من اسم الزر ؟ -_-" ؟
-
Thank You "DNL" Works now [= .
-
@DNK i know that i do it like that but not working -_-" ? what,s the fucking problem : function Police ( text, type ) local team = getPlayerTeam ( source ) if ( team and getTeamName ( team ) == "Police" ) then if isObjectInACLGroup ( "user.".. getAccountName ( getPlayerAccount ( source ) ), aclGetGroup ( "Console" ) ) then outputChatBox ( "#0000FF* [Police] x ".. getPlayerName ( source ) .." :#ffFFff " .. text, root, true, 255, 0, 0) cancelEvent ( ) end end end addEventHandler ( "onPlayerChat", getRootElement(), Police )
-
Thanks castillo works now but #color is not working but fixed thanks!
-
I want if the player in the police team and a console group when he chating it will be like that : outputChatBox("#0000FF* [Police] x "..getPlayerName ( source ).." :#ffFFff " .. text, getRootElement(), true ) Chat : * [Police] x Mr.Pres[T]ege : text another one : * [Police] x Mr.Pres[T]ege : Hello Mta ( = and i use cancel event for non-repetition . i hope you understand me now .
-
Hello , i have a problem here in this script : function Police(text, type,source) if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then local Police = getTeamFromName ( "Police" ) if ( Police ) then cancelEvent() outputChatBox("#0000FF* [Police] x "..getPlayerName ( source ).." :#ffFFff " .. text, getRootElement(), true ) end end end addEventHandler("onPlayerChat", getRootElement(), Police) Problem = Not Working need some help . am use it on server side . thanks ^ .
-
مششكور آخوي يعطيك العآفيهه ظبط حياك الله .
-
"police"> "general.ModifyOtherObjects" access="true"> "command.gamemode" access="false"> "command.changemode" access="false"> "command.changemap" access="false"> "command.stopmode" access="false"> "command.stopmap" access="false"> "command.skipmap" access="false"> "command.mute" access="false"> "command.unmute" access="false"> "command.whois" access="false"> "command.whowas" access="false"> "function.setPlayerMuted" access="true"> "function.kickPlayer" access="true"> "function.banIP" access="true"> "function.banPlayer" access="true"> "function.banSerial" access="true"> "function.getBansXML" access="true"> "function.unbanIP" access="true"> "function.unbanSerial" access="true"> "function.getClientIP" access="true"> "function.startResource" access="true"> "function.stopResource" access="true"> "function.restartResource" access="true"> "function.redirectPlayer" access="true"> "general.adminpanel" access="true"> "general.tab_players" access="false"> "general.tab_resources" access="false"> "general.tab_maps" access="false"> "general.tab_server" access="false"> "general.tab_bans" access="false"> "general.tab_adminchat" access="false"> "command.kick" access="false"> "command.freeze" access="false"> "command.setnick" access="false"> "command.shout" access="false"> "command.spectate" access="false"> "command.slap" access="true"> "command.setgroup" access="false"> "command.sethealth" access="false"> "command.setarmour" access="false"> "command.setmoney" access="false"> "command.setskin" access="false"> "command.setteam" access="false"> "command.giveweapon" access="false"> "command.setstat" access="false"> "command.jetpack" access="false"> "command.warp" access="false"> "command.setdimension" access="false"> "command.setinterior" access="false"> "command.createteam" access="false"> "command.destroyteam" access="false"> "command.givevehicle" access="false"> "command.repair" access="false"> "command.blowvehicle" access="false"> "command.destroyvehicle" access="true"> "command.customize" access="false"> "command.setcolor" access="false"> "command.setpaintjob" access="false"> "command.listmessages" access="false"> "command.readmessage" access="false"> "command.listresources" access="true"> "command.start" access="false"> "command.stop" access="false"> "command.stopall" access="false"> "command.restart" access="false"> "command.execute" access="false"> "command.setpassword" access="false"> "command.setwelcome" access="false"> "command.setgame" access="false"> "command.setmap" access="false"> "command.setweather" access="false"> "command.blendweather" access="false"> "command.setblurlevel" access="false"> "command.setwaveheight" access="false"> "command.setskygradient" access="false"> "command.setgamespeed" access="false"> "command.setgravity" access="false"> "command.settime" access="false"> "command.ban" access="false"> "command.unban" access="false"> "command.banip" access="false"> "command.unbanip" access="false"> "command.banserial" access="false"> "command.unbanserial" access="false"> "command.listbans" access="false"> "command.blow" access="false"> "command.destroy" access="false"> "command.delete" access="false"> "function.shutdown" access="false"> "command.setfpslimit" access="false"> اذا ما اشتغل ارسلي ملف الـ ACL.xml كامل عـ الخاص او اطرحة مثل ماتحب .
-
انا مسوية لك كذا شوف فوق وبعدين الاي دي وش علي منك انت المفروض تكون عارفة بس بعد البحث حصلت ذا الايدي وشغال حيـاكـ الله .. https://wiki.multitheftauto.com/wiki/Weapons فيه الايدي مال الاسحلة + مشكور على المعلومة اي ذا اللي حق الاسلحة , حياك ذذ * قريبا افتتاح مركز رفع للمنتدى
-
جرب / "police"> "general.adminpanel" access="true"> "command.slap" access="true"> "command.destroyvehicle" access="true"> "general.tab_players" access="true"> "general.tab_resources" access="false"> "general.tab_maps" access="false"> "general.tab_server" access="false"> "general.tab_bans" access="false"> "general.tab_adminchat" access="false"> "command.kick" access="false"> "command.freeze" access="false"> "command.mute" access="false"> "command.setnick" access="false"> "command.shout" access="false"> "command.spectate" access="false"> "command.setgroup" access="false"> "command.sethealth" access="false"> "command.setarmour" access="false"> "command.setmoney" access="false"> "command.setskin" access="false"> "command.setteam" access="false"> "command.giveweapon" access="false"> "command.setstat" access="false"> "command.jetpack" access="false"> "command.warp" access="false"> "command.setdimension" access="false"> "command.setinterior" access="false"> "command.givevehicle" access="false"> "command.repair" access="false"> "command.blow" access="false"> "command.destroy" access="false"> "command.customize" access="false"> "command.setcolor" access="false"> "command.setpaintjob" access="false"> "command.listmessages" access="false"> "command.readmessage" access="false"> "command.listresources" access="false"> "command.start" access="false"> "command.stop" access="false"> "command.stopall" access="false"> "command.restart" access="false"> "command.execute" access="false"> "command.setpassword" access="false"> "command.setwelcome" access="false"> "command.setgame" access="false"> "command.setmap" access="false"> "command.setweather" access="false"> "command.blendweather" access="false"> "command.setblurlevel" access="false"> "command.setwaveheight" access="false"> "command.setskygradient" access="false"> "command.setgamespeed" access="false"> "command.setgravity" access="false"> "command.settime" access="false"> "command.ban" access="false"> "command.unban" access="false"> "command.banip" access="false"> "command.unbanip" access="false"> "command.banserial" access="false"> "command.unbanserial" access="false"> "command.listbans" access="false">
-
انا مسوية لك كذا شوف فوق وبعدين الاي دي وش علي منك انت المفروض تكون عارفة بس بعد البحث حصلت ذا الايدي وشغال حيـاكـ الله ..
-
آخوي مفعلهآ شفف "general.adminpanel" access="true"> اطرح الـ ACL.xml كامل