-
Posts
134 -
Joined
-
Last visited
Everything posted by Minotaur
-
Please explain to me. I noob in the scripting
-
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
-
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
-
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
-
How can i find it? What should I enter in the search?
-
thank you
-
Yes like the video
-
I sayed this:
-
No reload for weapons only the admins
-
I want no reload script for admins anybody help me?
-
No! After player dead his weapons where there appears dead
-
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
-
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
-
F**** freeroam haved too many problems but i fixed it
-
And what do i do now? another one a cant download because spanish languange :(
-
i press 'T' to the chat.... i write hello and dont send nothing
-
does not send what i write this freeroam have problem what can i do?
-
Thank you man makes my life easier
-
And how to change the gammemode name? my gammemode name is freeroam gui
-
thank you the warp is now good
-
https://community.multitheftauto.com/index.php?p=resources&s=details&id=43 Your think this is good?
-
i dont use no script
