
Snakegold
Members-
Posts
130 -
Joined
-
Last visited
Everything posted by Snakegold
-
شباب بدي اخلي السيارة تطير بكوماتد function aicars ( ) if setWorldSpecialPropertyEnabled( "aircars", true ) then outputChatBox ("aircars activated") else outputChatBox ("aircars disactivated") end addCommandHandler ( "flycar", aicars )
-
أنت تسوق فأي سيارة و عند صدمك لشخص سوف يخسر 10 بالمائة من صحته انا بدي أغير الدامج يعني لما اصدمه ينقص 200 بالمائة من صحته أي الشخص الخارج السيارة يموت إلي انا صدمته
-
yes working but why you used return ??
-
انا مازلت مبتدأ والله صعبة كثير ما فهمت شي
-
هذا كود ال onVehicleDamage function displayVehicleLoss(loss) local thePlayer = getVehicleOccupant(source) if(thePlayer) then -- Check there is a player in the vehicle outputChatBox("Your vehicle just lost " .. tonumber(loss) .. " health.", thePlayer) -- Display the message end end addEventHandler("onVehicleDamage", root, displayVehicleLoss) ما إتوقع انو في شي يغير قيمة داماج السيارات ؟
-
function removepedfromvehicle ( theVehicle, seat, jacked ) if isPedInVehicle (source) then removePedFromVehicle (source) end end addCommandHandler ("leavecar", removepedfromvehicle ) What is wrong with this code??
-
السلام عليكم بدي اسوي مود لما أصدم شخص بسيارة يموت فورا اي 1 Hit = - 200 Dmg ممكن تقول لي اي فنكشن و ايفنت يجب الإستعمال؟
-
في عندي لوحة تشتري منها طائرات و بدي اللاعب ما يقدر ينزل طيارة من اللوحة أذا هو في طائرة هذا جزء من المود addEvent ("carBuy", true) addEventHandler( "isPedInVehicle", getRootElement(), addEventHandler ("carBuy", getRootElement(), function(id2, cost2, name2,x, y, z, sRz) if (getPlayerMoney (source) >= tonumber(cost2)) then outputChatBox ("#006400You Bought A : #FFFFFF" .. name2, source, 255, 255, 255, true) outputChatBox ("#006400ID: #FFFFFF" .. id2, source, 255, 255, 255, true) outputChatBox ("#006400Costs: #FFFFFF" .. cost2, source, 255, 0, 0, true) takePlayerMoney (source, tonumber (cost2)) local x,y,z = getElementPosition (source) local vehicle = createVehicle (id2, x, y, z, 0, 0, sRz ) warpPedIntoVehicle(source, vehicle) else outputChatBox ("#006400You Don't Have Enough #FFFFFFMoney", source, 255, 255, 255, true) if isPedInVehicle (source) then cancelEvent() outputChatBox ("#ff0000Leave your vehicle to spawn another vehicle", source, 255, 255, 255, true) end end end)) ممكن تصليح للمود؟
-
Why they can kill me while i'm in the safezone?? x, y, size = 228.22802734375, 295.55911254883, 120 local greenzone = createColRectangle ( -2434.68799, -688.11896, 150, 200 ) local greenzonemaparea = createRadarArea (-2434.68799, -688.11896, 150, 200, 0, 255, 0, 100) function greenzoneEnter ( thePlayer, matchingDimension ) if getElementData(thePlayer,"invincible",false) then setElementData(thePlayer,"invincible",true) if getElementType( thePlayer ) ~= "player" then return end setElementData(thePlayer,"invincible",false) outputChatBox ( "* You Entered The Greenzone!", thePlayer, 50, 252, 3 ) toggleControl ( thePlayer, "fire", false ) toggleControl ( thePlayer, "next_weapon", false ) toggleControl ( thePlayer, "previous_weapon", false ) setPedWeaponSlot ( thePlayer, 0 ) toggleControl ( thePlayer, "aim_weapon", false ) toggleControl ( thePlayer, "vehicle_fire", false ) toggleControl ( thePlayer, "vehicle_secondary_fire", false ) end end addEventHandler ( "onColShapeHit", greenzone, greenzoneEnter ) function greenzoneExit ( thePlayer, matchingDimension ) if getElementType( thePlayer ) ~= "player" then return end outputChatBox ( "* You Left The Greenzone!", thePlayer, 50, 252, 3 ) toggleControl ( thePlayer, "fire", true ) toggleControl ( thePlayer, "next_weapon", true ) toggleControl ( thePlayer, "previous_weapon", true ) toggleControl ( thePlayer, "aim_weapon", true ) toggleControl ( thePlayer, "vehicle_fire", true ) toggleControl ( thePlayer, "vehicle_secondary_fire", true ) end addEventHandler ( "onColShapeLeave", greenzone, greenzoneExit ) -- a,ti death addEventHandler ( "onClientPlayerDamage",root, function () if getElementData(source,"invincible") then cancelEvent() end end) addEventHandler("onClientPlayerStealthKill",localPlayer, function (targetPlayer) if getElementData(targetPlayer,"invincible") then cancelEvent() end end)
-
Guys i want to ask you how to change vehicle damage. i mean, when i ream someone with car , he dies instantly
-
i typed the code so i know it
-
i want when i do the command or someone do it , everyone can see it , how?
-
Bro why dxDrawtext appears only to me not everyone????
-
wht about player name color ?
-
Hey guys how to add palyerColor and playerName to dxDrawText ? i tried this codes but not working function text (player, cmd) local name = getPlayerName(player) local r,g,b = getPlayerNametagColor (player) etc... .... and here is the dxDrawText dxDrawText(""..name.." text", r, g, b, screenW * 0.2291, screenH * 0.1966, screenW * 0.7716, screenH * 0.2552, tocolor(255, 255, 255, 255), 1.50, "bankgothic", "left", "top", false, false, false, false, false) also i removed the " playerColor r, g, b, " i got this msg: ERROR: attempt to concatenate local 'name' (a boolean value)
-
guys can you tell me how to play sound after 1 sec ? i tried this but nothing happened function playsound () local sound = playSound("mysound.mp3") setTimer(function() setSoundVolume(sound, 0.5) end, 2000, 1) end addCommandHandler("thecommand", playsound) oh never mind i fixed it