-
Posts
248 -
Joined
-
Last visited
Posts posted by Machine
-
-
i am trying to change the sound of the default m4
local distance = 75 --distance from where you can hear the shot local explostionDistance = 150 local cSoundsEnabled = true local reloadSoundEnabled = true local explosionEnabled = true --shoot sounds function playSounds(weapon, ammo, ammoInClip) if(cSoundsEnabled)then local x,y,z = getElementPosition(source) if weapon == 31 then --m4 if(ammoInClip == 0 and reloadSoundEnabled)then mgReload("sounds/weapons/m4_reload.wav", x,y,z) else local sound = playSound3D("sounds/weapons/m4_shooting.wav", x,y,z) setSoundMaxDistance(sound, distance) end end end end
still it doesnt replace anything what am i doing wrong please help
-
5 hours ago, IIYAMA said:
Good observation.
If it is an old resource. The shaking is probably created by createExplosion. The explosion was set to tiny, damage + sound disabled and placed behind the camera. Which is the old method for making the camera shake.
that did the trick thank you so much
- 1
-
is there anyway to remove the animation that player make when shooting , i am trying first person shooter mod , and the camera keep shaking cuz of the animation , is there anyway to disable that by code ?
-
Error CN01
in Client
refer to this
-
function getPlayerCount() if (getPlayerCount == 1) then outputChatBox ( "More players are required to start the match", source, 255, 255, 255 ) end end addEventHandler ( "onPlayerJoin", root, getPlayerCount )
this code is not working can you please help ?
-
i am running mtasa via esxi virtualisation with gtx 1080, windows 10 latest, it keep giving there was a problem validating your serial , is there anyway around this ? i dont even need access to other servers , i just need to code some stuff in my private server
-
what i am trying to achieve is when killer kill another player he will get all the killed player money , is this functional or i messed up the parameters
function rewardOnWasted ( ammo, killer, killerweapon, bodypart ) local money = getPlayerMoney(source) if ( killer ) and ( killer ~= source ) then givePlayerMoney ( killer, source ) end end addEventHandler ( "onPlayerWasted", getRootElement(), rewardOnWasted )
-
تواصل معي وزودني بطريقة للتواصل معك وانا رح اعطيك السيرفر
-
34 minutes ago, SaNoR said:
It's sometimes happens when u copy code from forum, just write this line by yourself.
first of all i was using the wiki guide to learn not the forum
second of all if your not gonna help in this section dont give a stupid opinion this section was made for programming help
-
11 minutes ago, Dimos7 said:
marker = createMarker(137.39999, 1850.4, 16.6, "cylinder", 1.5, 230, 251, 3, 153) function camera(player) if (getElementType(player) == "player") then fadeCamera(player, true, 0.5) setCameraMatrix(player, 1468.8785400391, -919.25317382813, 100.153465271, 1468.388671875, -918.42474365234, 99.881813049316) end end addEventHandler("onMarkerHit", marker, camera)
didnt work still same thing even if you increase 0.5
6 minutes ago, stPatrick said:marker = createMarker(137.39999, 1850.4, 16.6, "cylinder", 1.5, 230, 251, 3, 153) function camera(hitElement) if getElementType(hitElement) == "player" then fadeCamera(hitElement, false, 0.5) setTimer(setCameraMatrix, 500, 1, hitElement, 1468.8785400391, -919.25317382813, 100.153465271, 1468.388671875, -918.42474365234, 99.881813049316) end end addEventHandler("onMarkerHit", marker, camera)
also error
-
so i am having problem with this code
marker = createMarker(137.39999, 1850.4, 16.6, "cylinder", 1.5, 230, 251, 3, 153) function camera(player) if (source == marker and getElementType(player) == "player") then fadeCamera(player, true, 0.5) setCameraMatrix(player, 1468.8785400391, -919.25317382813, 100.153465271, 1468.388671875, -918.42474365234, 99.881813049316) end end addEventHandler("onMarkerHit", root, camera)
it does work and show the camera but it doesnt give any fading effects
i wanna fade in so screen becomes black for like 2 second then fade out so it show where set camera matrix is pointing
-
اخوي أولا انا ما حكيت عنك بشكل خاص انا حكيت بشكل عام معظم شركات الاستضافة هيك ثانيا انتا بتحكي كزبون لازم تكون عارف هذا الشي . اتقي الله يا اخ لانه ما حد بعرف الشركات تكون مخبية
انا اشتغلت بشركة ديلوكس هوست كانوا يحكوا الباندويث unlimited بس ما كان هيك وكان أي سيرفر يستعمل كثير ترافيك يحذفواه
حتى من ناحية الأداء خذ مثلا هدف هوست كانوا مشغلين على الأقل 10 سيرفرات على خادم 1 الرام عليه كانت 4 جيجا
وحكوا انه محمي وما كان محمي
بالنسبة للvps
فهو أرخص من اي استضافة اذا حسبتها
اخوي ما تنكر معظم شركات الاستضافة خصوصا اللي للألعاب نصابة
- 1
-
السلام عليكم الموضوع التالي حبيت بس اني اناقش في كم من نقطة واتمنى مشاركة الاعضاء فيها
اولا الكل ملاحظ طبعا انه والحمد لله صارت شركات الاستضافة اكثر من عدد السيرفرات وعدد اللاعبين حتى كل يوم تطلع استضافة جديدة وكل واحد الحمد لله يدعي انه شركته هي الافضل
الرسالة اللي حابب اني اوجها هي الك انتا كزبون شو اللي لازم تسوي وهاي نصيحة مني الك
ما تعتمد على شركات الاستضافة لانه وللاسف لا يمكن الاعتماد عليهم
ورح اعطيك اهم سبب ليش لا يمكن الاعتماد عليها , قلة الادارة الفنية الها اهم عامل
معظم سيرفرات الاستضافة تعطيك عدد لاعبين خيالي يعني يمكن يحكيلك تاخذ 200 او 400 لاعب بس 1 دولار
الحين انتا كزبون رح تفكر انه هذا الشي كويس بس لو حسبت الباندويث لانه حضرة اللي عامل الاستضافة لا يفقه شيء اصلا كل اللي هامه بس انه ياخذ فلوسك الا من رحم ربي
عشان هيك نصيحة مني للك انساك من هم هاي الشركات واحجز خادم افتراضي او خادم كامل
مثل ovh.com
او online.net
Arbor Networks هاي الشركتين ماخذين شراكة مع شركة
layer 7 وتعتبر الرائدة في مجال الحماية من الهجمات الاكترونية وتعطيك
SSD تجنب ovh بالنسبة ل خوادم
لو صارت اي مشكلة كل السيرفرات اللي شغالة عليه تطفي وتقريبا بدهم 30 دقيقة عشان يرجعوا متل ما كانوا ssd مشكلة سيرفرات
cloud ram vps وال cloud vps بالنسبة لل
cloud vps ram هما اللي لازم تختارهم وبالاخص
بكون من ناحية اداء المعالج اكثر من الرام cloud vps لانه سيرفرك يعتمد اكثر على الرام مش على المعالج وتركيز
بالنسبة ل شركة اونلاين بنصحك تاخذ سيرفر كامل لانه اسعارهم رخيصة
واي حد بدو اي مساعدة بتنزيل اي خادم يحاكيني وانا رح انزله السيرفر اللي بدو اياه
- 1
-
6 hours ago, SuperX said:
معلوماتك خاطئة
كيندر هوست بتنزل قريب
انا مع الاخ SuperX
100% كلامه سليم كندر هوست
-
سمعت في استضافة سنكرز رح تطلع كمان شوي ترقبوها
-
problem is which function should i use in order that when the client hit the button on gui it should trigger server side to move the object
and qd2 is the floor roof but i didnt write it yet cuz i wanna solve the qd first and qd4 is just to close the gui
can u tell me what is the right way to write serverside ?
-
can someone pls tell me what is wrong here
Client Side-
GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Window[1] = guiCreateWindow(0.3875,0.300,0.50,0.6117,"Elevator",true) guiWindowSetMovable(GUIEditor_Window[1],false) GUIEditor_Button[1] = guiCreateButton(15,50,400,50,"Ground floor",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(14,111,400,50,"Roof floor",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],255,255,0) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Button[4] = guiCreateButton(17,313,450,41,"Exit",false,GUIEditor_Window[1]) guiSetVisible(GUIEditor_Window[1], false) showCursor(false) local marker = createMarker(270.79998779297, 1879, 16.60000038147, "cylinder", 1.5, 255,0,0,70) function markerhit (hitPlayer) if ( hitPlayer == localPlayer ) then guiSetVisible (GUIEditor_Window[1], true) guiSetEnabled(GUIEditor_Button[1],true) guiSetEnabled(GUIEditor_Button[2],true) guiSetEnabled(GUIEditor_Button[3],true) guiSetEnabled(GUIEditor_Button[4],true) showCursor (true) end end addEventHandler ("onClientMarkerHit", marker, markerhit) function markerLeave () guiSetVisible (GUIEditor_Window[1], false) showCursor (false) end addEventHandler ("onClientMarkerLeave", marker, markerLeave) addEventHandler("onClientGUIClick", root, function ( ) if ( source == GUIEditor_Button[1] ) then triggerServerEvent ( "qd", getLocalPlayer() ) elseif ( source == GUIEditor_Button[2] ) then triggerServerEvent ( "qd2", getLocalPlayer() ) elseif ( source == GUIEditor_Button[3] ) then triggerServerEvent ( "qd4", getLocalPlayer() ) elseif ( source == GUIEditor_Button[4] ) then guiSetVisible ( GUIEditor_Window[1], false ) showCursor ( false ) end end )
Server Side--
function qm ( ) elevatordoor = createObject ( 2634, 267.70001, 1880, 18, 0, 0, 270 ) function VehicleHit(hitElement,matchingDimension) if getElementType(hitElement)=="player" then moveObject ( elevatordoor, 3000, -2017, 158.79998779297, 20.39999961853 ) end end else outputChatBox ( "Step inside the elevator", source ) end end end setTimer ( VehicleHit, 1000, 1 ) addEvent( "qd", true ) addEventHandler( "onMarkerHit", getRootElement(), qm )
i am trying to make an elevator that work with the gui
-
i thought of that at first but thanks to Dimos7 its working perfectly now
-
What the hell are you talking about u didn't understand what I said ?
I already explained what's going on I am trying to change the little sign which is on the object 12978 so I can put my own logo . When I start the script it does start without errors but no change happen to the sign it stays the same
-
so i have this code
function replaceModel() banner = engineLoadTXD("ce_payspray.txd", 12978) engineImportTXD( banner, 12978 ) dff = engineLoadDFF("sw_shed02.dff", 12978) engineReplaceModel( dff, 12978 ) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel)
can someone tell me what am i doing wrong because it does start but the banner didnt change
the object i am trying to replace is the 12978 sw_SHED02
-
hello i am looking for a Scripter to do some huge work
example of the work
make a user control panel connected to website so players can edit their stats and money online directly from website
please contact me to talk and discuss everything
skype : games-maker
-
هو فعلا في مودات يمكن حتى تتعدى 500 $ كمان مو بس 100 $
وانتا عشان ما حد ينصب عليك اعملها على دفعات مثل التقسيط .
بالنسبة للاخوان اللي حكوا عن الحماية وانه رح ينسرق المود
هاي تعتمد على المبرمج
في مبرمجين كثير لاحظت عليهم انه يدخل التشفير في البرمجة
البرمجة تشفير وانا ما بقصد تشفير lua بالبرامج
لانه هاي كثير سهل فكها
اما بالنسبة لمين تكلف البرمجة
روح ل castilo
-
helli one of my friends have server from 2013
server ip mtasa://178.33.82.13:22003
it was the top on the arabian servers in servers browser
but recently it got ddos attack and it shut down
and now it lose its spot
is there anyway to fix this problem ?
however as i remember servers browser is random
pls reply me
-
حلوة الفكرة ولكن لا اشجع عليها لاسباب منها
لو قد ما حاولت ما في شي اسمه حماية كاملة فقد ما تشفر على الفاضي
لدرجة انها لوحة gamecp
بطلت تعطي فترة تجريبية مجانية
صارت الحين اظن بدولار او باثنين
فالاحسن انها لوحتك تضل متل ما هي
او اذا حابب تعملها مجانية شيل بعض المميزات منها
يعني بدنا نقعد نضحك على بعض ؟ بدك عربي ما يشيل حقوق الطبع؟
اي مهما اللوحات المجانية بشيلوا الحين حقوق الطبع وبحكوا انهم هم اللي صنعوها
الاحسن تخليها عادية بفلوس
regarding serial validation on vm (ccw)
in Client
Posted
I really hope you could have another way of solution regarding the abuse bots , for example i mainly use shadow to play ,and it really makes no sense to ban all vm just because some people using it for hacking, hackers can just simply change serial of hardware and thats about it , at least please enable access to mtasa as in local environment , i am trying to write some lua codes and test it out , and ofc cant do that even if i just wanna connect to my server , beside that vm restriction should be a value in mtasa.conf as a default value , and when server owner wanna allow people to connect also from vm , he can just disable this
ccw could you please help regarding this matter?