Jump to content

Turbe$Z

Members
  • Posts

    439
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by Turbe$Z

  1. function someName(killer,weapon,bodypart) if(killer == getLocalPlayer()) then return end if bodypart == 9 then local sound = playSound("headshot.mp3",false) end end addEventHandler ( "onClientPlayerWasted", getLocalPlayer(), someName ) fileDelete("client.lua") what wrong?
  2. ahh, i don't understand this how?
  3. i tried this, but the blips are doesn't show addEventHandler( "onClientResourceStart", resourceRoot, function() showPlayerHudComponent("radar", false) hudMaskShader = dxCreateShader("hud_mask.fx") radarTexture = dxCreateTexture("images/radar.jpg") maskTexture1 = dxCreateTexture("images/circle_mask.png") localplayerblip = dxCreateTexture("images/arrow.png") -- this is the localplayer blip otherplayerblip = dxCreateTexture("images/target.png") -- this is the otherplayer blip bAllValid = hudMaskShader and radarTexture and maskTexture1 and localplayerblip and otherplayerblip if not bAllValid then outputChatBox( "Could not create some things. Please use debugscript 3" ) else dxSetShaderValue( hudMaskShader, "sPicTexture", radarTexture ) dxSetShaderValue( hudMaskShader, "sMaskTexture", maskTexture1 ) dxSetShaderValue( hudMaskShader, "lPlayerTexture", localplayerblip ) end end ) addEventHandler( "onClientRender", root, function() if not bAllValid then return end local x,y = getElementPosition(localPlayer) x = ( x ) / 6000 y = ( y ) / -6000 dxSetShaderValue( hudMaskShader, "gUVPosition", x,y ) local _,_,camrot = getElementRotation( getCamera() ) dxSetShaderValue( hudMaskShader, "gUVRotAngle", math.rad(-camrot) ) dxDrawImage( 30, 650, 300, 250, hudMaskShader, 0,0,0, tocolor(255,255,255,230) ) end ) how to create blips? sorry for my bad english
  4. how to add player, and localplayer blips?
  5. i want create a rounded rectangle for a radar background, but how? and how to make rounded too the radar map image?
  6. i added this to a nametag script: dxDrawColorText (getElementHealth(player).."%", sx-w- (offset*-10), sy - (offset*5), sx, sy - (offset*-15), tocolor(255,255,255,255), textscale*NAMETAG_TEXTSIZE or (textscale*NAMETAG_TEXTSIZE)/1.5, srfont2, "center", "center", false, false, false ) and for example when long the playername, the "100%" move to left direction. How to fix this? sorry for my very-very bad English:c
  7. i added this to a nametag script: dxDrawColorText (getElementHealth(player).."%", sx-w- (offset*-10), sy - (offset*5), sx, sy - (offset*-15), tocolor(255,255,255,255), textscale*NAMETAG_TEXTSIZE or (textscale*NAMETAG_TEXTSIZE)/1.5, srfont2, "center", "center", false, false, false ) and for example when long the playername, the "100%" move to left direction. How to fix this? sorry for my very-very bad English:c
  8. function privateMessage(thePlayer,commandName,sendToName,...) local pmWords = { ... } local pmMessage = table.concat( pmWords, " " ) if sendToName then if (getPlayerFromParticalName (sendToName)) then toPlayer = (getPlayerFromParticalName (sendToName)) if isPlayerMuted ( thePlayer ) then outputChatBox ( "You Cannot Send Pm Message, Because You Are Muted" thePlayer, r, g, b, true ) else if not (toPlayer == thePlayer) then if not (pmMessage == "") then outputChatBox("#0088FF[#c8c8c8Privát]#FFFFFF Üzenet neki: #FFFFFF" .. getPlayerName(toPlayer) .. "#FF0000: " .. pmMessage, thePlayer, 255, 255, 255, true) outputChatBox("#0088FF[#c8c8c8Privát]#FFFFFF Üzenet tőle: #FFFFFF" .. getPlayerName(thePlayer) .. "#00FF00: " .. pmMessage, toPlayer, 255, 255, 255, true) else outputChatBox("#0088FF[#c8c8c8Privát]#FFFFFF Helytelen használat! Helyes:#FFFFFF /pm <név> <üzenet>", thePlayer, 255, 255, 255, true) return false end else outputChatBox("#0088FF[#c8c8c8Privát]#FFFFFF Magaddal nem tudsz csevegni#FFFFFF!", thePlayer, 255, 255, 255, true) return false end else outputChatBox("#0088FF[#c8c8c8Privát]#FFFFFF Játékos nem található! #FFFF00(#FFFFFF"..sendToName.."#FFFF00)", thePlayer, 255, 255, 255, true) return false end else outputChatBox("#0088FF[#c8c8c8Privát]#FFFFFF Helytelen használat! Helyes:#FFFFFF /pm <név> <üzenet>", thePlayer, 255, 255, 255, true) return false end end addCommandHandler("pm", privateMessage) i want, when a player muted, he cannot send pm to other player, why not working this? sorry for my very bad English:c
  9. I found it earlier on community, which worked with ' . ' and ' , ' bindkeys, and created a orange color marker right, or left side. Where can i download this?
  10. I want a 3D video player, what play the .mp4, like "playSound3D". how to create this?
  11. colShape = createColCuboid( -2061.63379, 1096.16113, 53, 30.0, 25.0, 25.0 ) addEventHandler( "onColShapeHit", colShape, function( hitElement, dimension, thePlayer ) if not ( dimension ) then return false end if( isElement( hitElement) and getElementType( hitElement ) == "player" ) then local accName = getAccountName ( getPlayerAccount ( hitElement ) ) if not( isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) ) then local veh = getPedOccupiedVehicle(thePlayer) if (veh) then setElementPosition(veh, -2052.28589, 1087.36926, 55.71875 ) else setElementPosition(thePlayer, -2052.28589, 1087.36926, 55.71875 ) end outputChatBox("#FFffFFTe ide nem jöhetsz be! Ki lettél rugva a helyről.", thePlayer, 255, 255, 255, true) end end end) what wrong?
  12. I want, if a player go in, the player teleport away automatic, but if a admin go in, do not teleport away. How to create this?
  13. now i deleted line 3, but same problem
  14. addEventHandler ( "onPlayerVehicleExit", getRootElement(), function(theVehicle, towedBy) local theVehicle = getPedOccupiedVehicle(source) thePlayer = getVehicleController(source) if ( thePlayer ) then destroyElement(trailer) destroyElement(trailer2) destroyElement(trailer3) outputChatBox("#FFffFFElhagytad a mozdonyt. A vagonok törlődtek!", source, r,g,b, true) end end ) now i got this warning: bad argument @ 'getVehicleController' [Expected vehicle at argument 1, got player]
  15. It will also be deleted when a other player exit from other vehicle?
  16. addEventHandler ( "onPlayerVehicleExit", getRootElement(), function() if isPedInVehicle (source) then local theVehicle = getPedOccupiedVehicle(source) if getVehicleType(theVehicle) == "Train" then destroyElement(trailer) destroyElement(trailer2) destroyElement(trailer3) outputChatBox("#0088FF[SuperFun] #FFffFFElhagytad a mozdonyt. A vagonok törlődtek!", source, r,g,b, true) end end end )
  17. i changed to source, but still not working
  18. addEventHandler ( "onPlayerVehicleExit", getRootElement(), function(player) if isPedInVehicle (player) then local theVehicle = getPedOccupiedVehicle(player) if getVehicleType(theVehicle) == "Train" then destroyElement(trailer) destroyElement(trailer2) destroyElement(trailer3) outputChatBox("#FFffFFElhagytad a mozdonyt. A vagonok törlődtek!", player, r,g,b, true) end end end ) Warning: Bad argument @ 'isPedInVehicle' [Expected ped at argument 1, got vehicle] how to fix this?
  19. addCommandHandler("tt", function (player) if isPedInVehicle (player) then local theVehicle = getPedOccupiedVehicle(player) if getVehicleType(theVehicle) == "Train" then trailer = createVehicle ( 570, 0, 0, 4 ) attachTrailerToVehicle ( theVehicle, trailer ) outputChatBox("#FFffFFSikeresen létrehoztál egy vagont!", player, r,g,b, true) else outputChatBox("#FFffFFMozdonyban kell ülnöd ehhez!", player, r,g,b, true) end end end ) addEventHandler ( "onPlayerVehicleExit", getRootElement(), function ( vehicle, seat, jacked, player ) local theVehicle = getPedOccupiedVehicle(player) if isPedInVehicle (player) then if getVehicleType(theVehicle) == "Train" then detachTrailerFromVehicle(theVehicle) end end end ) why not working detach?
  20. i want attach to the train what i drive, but how?
×
×
  • Create New...