Jump to content

Minotaur

Members
  • Posts

    134
  • Joined

  • Last visited

Everything posted by Minotaur

  1. Please explain to me. I noob in the scripting
  2. function drawTag( player, cmd, size, font, colorCode, teamColor, cR, cG, cB ) local scx, scy = guiGetScreenSize() local max_distance = 20 local max_width = 100 local max_height = 10 local height_sub = 320 for i, player in pairs( getElementsByType("player") ) do local px, py, pz = getElementPosition(player) local cx, cy, cz = getCameraMatrix() local sx, sy = getScreenFromWorldPosition(px, py, pz) local dis = getDistanceBetweenPoints3D(px, py, pz, cx, cy, cz) local alpha = 255 - ( 255/max_distance*dis ) if ( alpha <= 0 ) then alpha = 0 end if ( sx and sy and scx and scy ) then local health = getElementHealth( player ) if ( health < 0 ) then health = 0 elseif ( health > 100 ) then health = 100 end local new_height_sub = height_sub - height_sub/max_distance*dis-40 local x, y, z = getElementPosition( localPlayer ) local ptx, pty, ptz = getElementPosition( player ) local team = getPlayerTeam( player ) if ( team ) then r, g, b = getTeamColor( team ) rgbR, rgbG, rgbB = r, g, b else rgbR, rgbG, rgbB = 255, 255, 255 end if ( teamColor ) then if health > 0 then dxDrawText(getPlayerName( player ), sx, sy-new_height_sub, sx, sy-new_height_sub, tocolor( rgbR,rgbG,rgbB,alpha ), size, font, "center", "center", true, true, true, colorCode) end else if health > 0 then dxDrawText(getPlayerName( player ), sx, sy-new_height_sub, sx, sy-new_height_sub, tocolor( cR, cG, cB,alpha ), size, font, "center", "center", true, true, true, colorCode) end end end end end addCommandHandler ( "drawtag", drawTag ) Not good
  3. function drawTag( size, font, colorCode, teamColor, cR, cG, cB ) local scx, scy = guiGetScreenSize() local max_distance = 20 local max_width = 100 local max_height = 10 local height_sub = 320 for i, player in pairs( getElementsByType("player") ) do local px, py, pz = getElementPosition(player) local cx, cy, cz = getCameraMatrix() local sx, sy = getScreenFromWorldPosition(px, py, pz) local dis = getDistanceBetweenPoints3D(px, py, pz, cx, cy, cz) local alpha = 255 - ( 255/max_distance*dis ) if ( alpha <= 0 ) then alpha = 0 end if ( sx and sy and scx and scy ) then local health = getElementHealth( player ) if ( health < 0 ) then health = 0 elseif ( health > 100 ) then health = 100 end local new_height_sub = height_sub - height_sub/max_distance*dis-40 local x, y, z = getElementPosition( localPlayer ) local ptx, pty, ptz = getElementPosition( player ) local team = getPlayerTeam( player ) if ( team ) then r, g, b = getTeamColor( team ) rgbR, rgbG, rgbB = r, g, b else rgbR, rgbG, rgbB = 255, 255, 255 end if ( teamColor ) then if health > 0 then dxDrawText(getPlayerName( player ), sx, sy-new_height_sub, sx, sy-new_height_sub, tocolor( rgbR,rgbG,rgbB,alpha ), size, font, "center", "center", true, true, true, colorCode) end else if health > 0 then dxDrawText(getPlayerName( player ), sx, sy-new_height_sub, sx, sy-new_height_sub, tocolor( cR, cG, cB,alpha ), size, font, "center", "center", true, true, true, colorCode) end end end end end This script is not good anybody help me please. and i want command:drawtag
  4. function warpMe(targetPlayer) if getElementData(targetPlayer,"warp.status") then outputChatBox ( "This player has disabled warping.", source, 255, 0, 0 ) return end .. This good but i have one problem. I would like to when beside falloffbike it would be warp button for example the fall off bike with pipe function
  5. How can i find it? What should I enter in the search?
  6. No reload for weapons only the admins
  7. I want no reload script for admins anybody help me?
  8. No! After player dead his weapons where there appears dead
  9. If there are more than the weapons where he died. i say the player killed the his weapons is there where he died. i hope someone understands my bad english
  10. Minotaur

    Toggle warp

    I want to toggle warp button for example the falloffbike the warp on pipe the players can be warp to him, the warp on not pipe the players cannot be warp him. i hope anobody help me thanks in advence
  11. F**** freeroam haved too many problems but i fixed it
  12. And what do i do now? another one a cant download because spanish languange :(
  13. i press 'T' to the chat.... i write hello and dont send nothing
  14. does not send what i write this freeroam have problem what can i do?
  15. Thank you man makes my life easier
  16. And how to change the gammemode name? my gammemode name is freeroam gui
  17. thank you the warp is now good
  18. https://community.multitheftauto.com/index.php?p=resources&s=details&id=43 Your think this is good?
×
×
  • Create New...