Jump to content

(s)ection

Members
  • Posts

    58
  • Joined

  • Last visited

Everything posted by (s)ection

  1. hi, i am a script someone gived me but the problem its when i create 2 projectiles this make 2 text : scirpt: function onClientProjectileCreationFunc() --thisProjectile = source addEventHandler( "onClientRender", getRootElement(), aoa) setTimer( function() removeEventHandler( "onClientRender", getRootElement(), aoa) addEventHandler( "onClientRender", getRootElement(), boa) end, 666, 1) setTimer( function() removeEventHandler( "onClientRender", getRootElement(), boa) addEventHandler( "onClientRender", getRootElement(), coa) end, 666+666, 1) setTimer( function() removeEventHandler( "onClientRender", getRootElement(), coa) end, 666+666+666+10, 1) end addEventHandler( "onClientProjectileCreation", getRootElement(), onClientProjectileCreationFunc ) function aoa() for index,thisProjectile in ipairs(getElementsByType("projectile")) do local zeType = getProjectileType( thisProjectile ) if zeType == 16 then local pX, pY, pZ = getElementPosition( thisProjectile ) local a, b, c = getElementPosition ( thisProjectile ) --local x, y, z = getScreenFromWorldPosition( tX, tY, tZ ) local maxDistance = 12 local x, y, z = getScreenFromWorldPosition( a, b, c ) local zz, ze, za = getElementPosition ( localPlayer) if zz and ze and za and x and y and z <= 18 then if x and y then local a = dxDrawText( "3", x, y, _, _, tocolor( 255, 0, 0, 255 ), 2, "default", "center", "center" ) end end end end end function boa() for index,thisProjectile in ipairs(getElementsByType("projectile")) do local zeType = getProjectileType( thisProjectile ) if zeType == 16 then local pX, pY, pZ = getElementPosition( thisProjectile ) local a, b, c = getElementPosition ( thisProjectile ) --local x, y, z = getScreenFromWorldPosition( tX, tY, tZ ) local maxDistance = 12 local x, y, z = getScreenFromWorldPosition( a, b, c ) local zz, ze, za = getElementPosition ( localPlayer) if zz and ze and za and x and y and z <= 18 then if x and y then local b = dxDrawText( "2", x, y, _, _, tocolor( 255, 0, 0, 255 ), 2, "default", "center", "center" ) end end end end end function coa() for index,thisProjectile in ipairs(getElementsByType("projectile")) do local zeType = getProjectileType( thisProjectile ) if zeType == 16 then local pX, pY, pZ = getElementPosition( thisProjectile ) local a, b, c = getElementPosition ( thisProjectile ) --local x, y, z = getScreenFromWorldPosition( tX, tY, tZ ) local maxDistance = 12 local x, y, z = getScreenFromWorldPosition( a, b, c ) local zz, ze, za = getElementPosition ( localPlayer) if zz and ze and za and x and y and z <= 18 then if x and y then local c = dxDrawText( "1", x, y, _, _, tocolor( 255, 0, 0, 255 ), 2, "default", "center", "center" ) end end end end end
  2. (s)ection

    3d text

    Hi, i have 3d text but how to attach to the player like when he walk, thx.
  3. If I add setTimer it's same? And with this function it's work ? : onClientFileDownloadComplete
  4. Hi, onClientPlayerJoin not work for me help pls: function onResourceStarted() buildStatsWindow() outputChatBox("Press F6 to open the shop!", 255, 255, 0, true) end addEventHandler("onClientPlayerJoin", getRootElement(), onResourceStarted)
  5. So how do you wanna get the front of the player with his position? Ok, thanks I have found.
  6. Yes but I want to add on the front of the player no add the rotation.
  7. Hi, i search how to create the box on the front of the player, but it make it behind or side but I want its on the front only. function test(thisplayer) local x, y, z = getElementPosition(thisplayer) createObject( 925, x, y + 1, z, 0 , 0 , 0 ) end addCommandHandler ( "box", test )
  8. Thanks for you help.
  9. No, I mean the timer for the molotov blow up.
  10. Hi, It is possible to change the counter of the molotov for 3 sec? Thanks.
  11. Hi, I search what is the ID of this object but I dont found help me please Screen: Thanks.
  12. (s)ection

    [HELP]

    Thanks it worked.
  13. (s)ection

    [HELP]

    So I remove "local" ?
  14. (s)ection

    [HELP]

    Hi, i have a problem, it's don't destroy when the player are damaged ( sorry for my bad english ) /SOLVED/ Thanks.
  15. (s)ection

    Help bind

    Hi, how to bind 1 keys on for two functions, start and the second time stop. thanks.
  16. (s)ection

    help event

    Hi, how to add an event valable one time ? like onClientPlayerWeaponSwitch just one time ? thx
  17. (s)ection

    help

    Hi, How to add a bind but can use 1 time ? thx.
  18. (s)ection

    help

    It's the last ( just 2 version of stealth ) https://community.multitheftauto.com/index.php?p= ... ails&id=29 client :
×
×
  • Create New...