a jak zrobi? ?eby napis by? nad g?ow? peda?
Z jakiego? forum skorzysta?em z poradnika ale nie wiem czy dobry skrypt:
addEventHandler ( "onClientRender", root,
function ( )
local pX, pY, pZ = getElementPosition ( localPlayer )
local pedX, pedY, pedZ = getElementPosition ( ped )
local distance = getDistanceBetweenPoints3D ( pX, pY, pZ, pedX, pedY, pedZ )
if ( distance <= 12 ) then
local x, y = getScreenFromWorldPosition ( pedX, pedY, pedZ )
if ( x and y ) then
dxDrawText( "Egzamin Nurkowania", x, y, _, _, tocolor(255,255,255,2555 ), 2, "default", "center", "center" )
end
end
end
)
Oraz jak zrobi? ?eby wszyscy gracze mieli zablokowane nurkowanie ?
|