Wysłany: 2019-05-30, 17:16
AsterBonzo
Otwórz ogień
Wiek: 20 Na forum: 2968 dni Posty: 187
Nick w MP: Hirahi
Piwa : 60
witam mam problem taki ?e chce sobie przerobi? telefon pod komende ale gdy zrobi?em to komenda nie dzia?a prosze o pomoc.
DAJE PIWKO!
--[[
Autor : Malentas
]]
local okno = false
screenW , screenH = guiGetScreenSize ()
local sx , sy = ( screenW / 1440 ), ( screenH / 900 )
local scaleTable =
{
[ 1920 ] = 1.4 ,
[ 1680 ] = 1.25 ,
[ 1600 ] = 1.24 ,
[ 1366 ] = 1.0 ,
[ 1280 ] = 0.94 ,
[ 1152 ] = 0.85 ,
[ 1024 ] = 0.76 ,
}
if scaleTable [ screenW ] then
sx , sy = scaleTable [ screenW ], scaleTable [ screenW ]
end
function telefon ()
dxDrawImage ( 576 * sx , 157 * sy , 288 * sx , 586 * sy , ":np-telefon/img/bg.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
dxDrawImage ( 603 * sx , 245 * sy , 233 * sx , 408 * sy , ":np-telefon/img/tap2.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
dxDrawImage ( 603 * sx , 274 * sy , 60 * sx , 64 * sy , ":np-telefon/img/kontakty.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
dxDrawRectangle ( 603 * sx , 245 * sy , 230 * sx , 25 * sy , tocolor ( 0 , 0 , 0 , 100 ), false )
dxDrawText ( "00:00" , 781 * sx , 245 * sy , 828 * sx , 274 * sy , tocolor ( 255 , 255 , 255 , 255 ), 1.00 , "default" , "right" , "center" , false , false , false , false , false )
dxDrawText ( "T-Mobile" , 607 * sx , 245 * sy , 654 * sx , 274 * sy , tocolor ( 255 , 255 , 255 , 255 ), 1.00 , "default" , "left" , "center" , false , false , false , false , false )
dxDrawImage ( 663 * sx , 274 * sy , 60 * sx , 64 * sy , ":np-telefon/img/ustawienia.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
end
addEventHandler ( "onClientRender" , root , okno , telefon )
addCommandHandler ( "telefon" , okno , telefon )
Podpis
Pomagam jak potrafię
Wysłany: 2019-05-30, 17:42
Nexisten
Moderator
Wiek: 22 Na forum: 4108 dni Posty: 551
Nick w MP: Nexisten
Piwa : 1479
--[[
Autor : Malentas
]]
local okno = false
screenW , screenH = guiGetScreenSize ()
local sx , sy = ( screenW / 1440 ), ( screenH / 900 )
local scaleTable =
{
[ 1920 ] = 1.4 ,
[ 1680 ] = 1.25 ,
[ 1600 ] = 1.24 ,
[ 1366 ] = 1.0 ,
[ 1280 ] = 0.94 ,
[ 1152 ] = 0.85 ,
[ 1024 ] = 0.76 ,
}
if scaleTable [ screenW ] then
sx , sy = scaleTable [ screenW ], scaleTable [ screenW ]
end
function telefon ()
dxDrawImage ( 576 * sx , 157 * sy , 288 * sx , 586 * sy , ":np-telefon/img/bg.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
dxDrawImage ( 603 * sx , 245 * sy , 233 * sx , 408 * sy , ":np-telefon/img/tap2.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
dxDrawImage ( 603 * sx , 274 * sy , 60 * sx , 64 * sy , ":np-telefon/img/kontakty.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
dxDrawRectangle ( 603 * sx , 245 * sy , 230 * sx , 25 * sy , tocolor ( 0 , 0 , 0 , 100 ), false )
dxDrawText ( "00:00" , 781 * sx , 245 * sy , 828 * sx , 274 * sy , tocolor ( 255 , 255 , 255 , 255 ), 1.00 , "default" , "right" , "center" , false , false , false , false , false )
dxDrawText ( "T-Mobile" , 607 * sx , 245 * sy , 654 * sx , 274 * sy , tocolor ( 255 , 255 , 255 , 255 ), 1.00 , "default" , "left" , "center" , false , false , false , false , false )
dxDrawImage ( 663 * sx , 274 * sy , 60 * sx , 64 * sy , ":np-telefon/img/ustawienia.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
end
addEventHandler ( "onClientRender" , root , okno , telefon )
addCommandHandler ( "telefon" , telefon )
Spr?buj.
Więcej szczegółów
Wystawiono 1 piw(a):AsterBonzo
Wysłany: 2019-05-30, 18:22
MeeShuffle
Programista/Grafik
Wiek: 32 Na forum: 4395 dni Posty: 2758
Nick w MP: Shuffle
Piwa : 8575
Pozdro.
--[[
Autor : Malentas
]]
local okno = false
screenW , screenH = guiGetScreenSize ()
local sx , sy = ( screenW / 1440 ), ( screenH / 900 )
local scaleTable =
{
[ 1920 ] = 1.4 ,
[ 1680 ] = 1.25 ,
[ 1600 ] = 1.24 ,
[ 1366 ] = 1.0 ,
[ 1280 ] = 0.94 ,
[ 1152 ] = 0.85 ,
[ 1024 ] = 0.76 ,
}
if scaleTable [ screenW ] then
sx , sy = scaleTable [ screenW ], scaleTable [ screenW ]
end
function telefon ()
dxDrawImage ( 576 * sx , 157 * sy , 288 * sx , 586 * sy , ":np-telefon/img/bg.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
dxDrawImage ( 603 * sx , 245 * sy , 233 * sx , 408 * sy , ":np-telefon/img/tap2.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
dxDrawImage ( 603 * sx , 274 * sy , 60 * sx , 64 * sy , ":np-telefon/img/kontakty.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
dxDrawRectangle ( 603 * sx , 245 * sy , 230 * sx , 25 * sy , tocolor ( 0 , 0 , 0 , 100 ), false )
dxDrawText ( "00:00" , 781 * sx , 245 * sy , 828 * sx , 274 * sy , tocolor ( 255 , 255 , 255 , 255 ), 1.00 , "default" , "right" , "center" , false , false , false , false , false )
dxDrawText ( "T-Mobile" , 607 * sx , 245 * sy , 654 * sx , 274 * sy , tocolor ( 255 , 255 , 255 , 255 ), 1.00 , "default" , "left" , "center" , false , false , false , false , false )
dxDrawImage ( 663 * sx , 274 * sy , 60 * sx , 64 * sy , ":np-telefon/img/ustawienia.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
end
addCommandHandler ( "telefon" , function()
addEventHandler ( "onClientRender" , root , telefon )
end )
Więcej szczegółów
Wystawiono 1 piw(a):AsterBonzo
Wysłany: 2019-05-30, 19:28
AsterBonzo
Otwórz ogień
Wiek: 20 Na forum: 2968 dni Posty: 187
Nick w MP: Hirahi
Piwa : 60
a mam jeszcze pytanie jak zrobi? by wy?wietli? kursor ?
Wysłany: 2019-05-30, 21:13
serigorro
Wiek: 28 Na forum: 2848 dni Posty: 41
Nick w MP: Igorro
Piwa : 3
"DjMaXimoMax" napisał/a :a mam jeszcze pytanie jak zrobi? by wy?wietli? kursor ?
function telefon ()
showCursor ( true , false )
dxDrawImage ( 576 * sx , 157 * sy , 288 * sx , 586 * sy , ":np-telefon/img/bg.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
dxDrawImage ( 603 * sx , 245 * sy , 233 * sx , 408 * sy , ":np-telefon/img/tap2.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
dxDrawImage ( 603 * sx , 274 * sy , 60 * sx , 64 * sy , ":np-telefon/img/kontakty.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
dxDrawRectangle ( 603 * sx , 245 * sy , 230 * sx , 25 * sy , tocolor ( 0 , 0 , 0 , 100 ), false )
dxDrawText ( "00:00" , 781 * sx , 245 * sy , 828 * sx , 274 * sy , tocolor ( 255 , 255 , 255 , 255 ), 1.00 , "default" , "right" , "center" , false , false , false , false , false )
dxDrawText ( "T-Mobile" , 607 * sx , 245 * sy , 654 * sx , 274 * sy , tocolor ( 255 , 255 , 255 , 255 ), 1.00 , "default" , "left" , "center" , false , false , false , false , false )
dxDrawImage ( 663 * sx , 274 * sy , 60 * sx , 64 * sy , ":np-telefon/img/ustawienia.png" , 0 , 0 , 0 , tocolor ( 255 , 255 , 255 , 255 ), false )
end
Więcej szczegółów
Wystawiono 1 piw(a):AsterBonzo
Wysłany: 2019-05-31, 10:02
AsterBonzo
Otwórz ogień
Wiek: 20 Na forum: 2968 dni Posty: 187
Nick w MP: Hirahi
Piwa : 60
nie wiem jak zrobi? to ?e jak si? napisze telefon 2 raz to zniknie prosze o pomoc
Wysłany: 2019-05-31, 10:27
Wilq
Wiek: 24 Na forum: 4429 dni Posty: 3410
Piwa : 739
Mo?esz u?y? zmiennej, w kt?rej zapisujesz stan wy?wietlania telefonu, i usuwa? event za pomoc?
Wysłany: 2019-05-31, 10:51
AsterBonzo
Otwórz ogień
Wiek: 20 Na forum: 2968 dni Posty: 187
Nick w MP: Hirahi
Piwa : 60
addCommandHandler ( "telefon2" , function()
removeEventHandler ( "onClientRender" , root , telefon )
end ) co? takiego ?
[ Dodano : 2019-05-31, 10:58 ]
dobra dzia?a mo?na zamkn??
Tagi: komenda
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: