
Overkillz
Members-
Posts
545 -
Joined
-
Last visited
-
Days Won
2
Everything posted by Overkillz
-
Dear guys, I would like to create an script which drop a message about the new maps which have been added in 24 hours to the server. -What is the main point of this topic ? I would like to get the functions that i should/must use to do it. I hope you can help me, thanks for your time. Regards.
-
http://puu.sh/c75gb/ae3bf693a5.png
-
Thanks, but it doesnt work. I give u a screenshot about it. http://puu.sh/c74Nh/f9c9e2e529.png
-
Hey dear guys, I need ur help. Im trying to do an info panel which show if the player if alive or training then show an image. function ( source ) local playerVehicle = getPedOccupiedVehicle(localPlayer) for index,localPlayer in ipairs(getElementsByType("player")) do if getElementData(localPlayer,"state") == "alive"or getElementData(localPlayer,"state") == "Training" then local vehicleHealth = getElementHealth ( playerVehicle ) local vehicleSpeed = getElementVelocity ( playerVehicle ) when the local player press enter, it still showing due to there are other player alive. It is hidden just when all are "dead" How I can fix it ? I hope u can help me. Thanks and regards.
-
A lot of thanks, but I found other way to fix it, anyway, a lot of thanks <3
-
month = { [1] = "January", [2] = "February", [3] = "March", [4] = "April", [5] = "May", [6] = "June", [7] = "July", [8] = "August", [9] = "September", [10] = "October", [11] = "November", [12] = "December" } local nonth = time.month[month] dxDrawText("#ff8800"..month,0,110,screenWidth,screenHeight,tocolor(0,0,0,alpha),2,"default-bold","center","top",false,false,true,true) Doesnt work
-
Then i should use variables for example local status = 1 (dxdrawimage....etc) local status = 2 (dxdrawimage....etc) local status = 3 (dxdrawimage....etc) And after the code that u wrote ? Sorry for my a lot of questions, I started with script few time ago ;(
-
Thanks, anyway I get other problem: month = { [1] = "January", [2] = "February", [3] = "March", [4] = "April", [5] = "May", [6] = "June", [7] = "July", [8] = "August", [9] = "September", [10] = "October", [11] = "November", [12] = "December" } Line 38 local month = time.month[month]
-
A lot of thanks, now I have my last problem. It doens't show the month dxDrawText("#ff8800"month,0,110,screenWidth,screenHeight,tocolor(0,0,0,alpha),2,"default-bold","center","top",false,false,true,true) I need to add some other variable or something like that ?
-
But I won't change my image every second. I want that the guys can change the image using /command and the image don't change, just if they want, can use /command That is the reason why I want to do 3 images toggeable.
-
Hey everyone, I hope u can help me with this little help Im trying to transform the number of the month to the name of the month For example 1 = January. I tried to do this month = { 1 = "January", 2 = "February", 3 = "March", 4 = "April", 5 = "May", 6 = "June", 7 = "July", 8 = "August", 9 = "September", 10 = "October", 11 = "November", 12 = "December", } local month = time.month[month] -- And after my code using dxDraw ... What is the problem ? Debugscript 3 Regards,
-
Now it is changing every milisecond to the next image status = 1 function DaFvck() if status==1 then dxDrawImage(posx,posy*0.97,height,height, "img/lala.png",0,0,0,tocolor(255,255,255,255)) outputChatBox("lala1 Test", 255, 255, 255, true) status = 2 elseif status==2 then dxDrawImage(posx,posy*0.97,height,height, "img/lala2.png",0,0,0,tocolor(255,255,255,255)) outputChatBox("lala2 test", 255, 255, 255, true) status = 3 else dxDrawImage(posx,posy*0.97,height,height, "img/lala3.png",0,0,0,tocolor(255,255,255,255)) outputChatBox('lala3 Test', 255, 255, 255, true) status = 1 end end addEventHandler ( "onClientRender", root, DaFvck) addCommandHandler("logo", DaFvck) PS: I changed the outputChatBox
-
Hey guys, I will like to make a "Toggle 3 different images" status = 1 function DaFvck() if status==1 then dxDrawImage(posx,posy*0.97,height,height, "img/lala.png",0,0,0,tocolor(255,255,255,255)) outputChatBox("lala1 Test", 255, 255, 255, true) status = 2 elseif status==2 then dxDrawImage(posx,posy*0.97,height,height, "img/lala2.png",0,0,0,tocolor(255,255,255,255)) outputChatBox("lala2 test", 255, 255, 255, true) status = 3 else dxDrawImage(posx,posy*0.97,height,height, "img/lala3.png",0,0,0,tocolor(255,255,255,255)) outputChatBox('lala3 Test', 255, 255, 255, true) status = 1 end end addCommandHandler("logo", DaFvck) It works, but it dissapear in less than a second I write ./logo and it show the new image and in the same moment hide it. I hope u can help me. Thanks
-
I increase it till 1000 and it doesn't make an effect of fade, just change the picture to the 2nd one.
-
The same thing, just more slower and less returns
-
Thanks for help me, but the problem still showing it, the difference, now its more faster
-
I dont know how to explain me, then I make a video
-
Thanks, it is almost done, but there is a problem, that make turn the image too fast many facings and after many facings it show the bg img final It is to weird.
-
Im noob on script atm, I can make little things, that is the reason why I need ur help OT: Ur MGM is amazing
-
Hey everyone, Im here again. I hope u can help me with this little help. I will like to make a fade out the first image to the second image. Part of the code: local sWidth,sHeight = guiGetScreenSize() local Width,Height = 395,910 local X = (sWidth/2) - (Width/2) local Y = (sHeight/2) - (Height/2) Image = guiCreateStaticImage( 0, 0, 1920, 1200, "img/login_bg.png", false ) Image2 = guiCreateStaticImage( 0, 0, 1920, 1200, "img/login_bgfinal.png", false ) guiSetEnabled (Image, false) guiSetEnabled (Image2, false) Please, I need this, Im trying to develeop a thing. Thanks for ur time, regards.
-
Thanks bro, it is ok ^^
-
Thanks, I found a method, anyway thanks for ur help.
-
Somethings to check about u suggested me ? U mean like this if state == "alive" or state == "training" then --show radar. ?
-
Hey everone, I hope u are ok, Always I must say this due to this community always help me Well, about my question, I will like to know if is possible add a fade effet -appear and dessapear 0,5 seconds to fade appear 1 seconds appear 0,5 seconds fade dissapear/out local tagColor = rgbToHex(r,g,b) or "#FFFFFF" dxDrawColorText("#ffffffWinner: "..tagColor..getPlayerName(winnerD).." #ffffff!", screenWidth/2, screenHeight/5.9, screenWidth/2, screenHeight/3.5, tocolor ( 255,255, 255, 180 ), 1.9, "default-bold","center" ) end This is part of code, I will like to get help with this, or get some suggestion to do it. Thanks and regards. ^^