SirniNamaz Posted September 13, 2012 Posted September 13, 2012 how do u make mission intro like this http://media.moddb.com/images/mods/1/19 ... -38-77.jpg (text, but with black screen [fade effect or something]) and outro like this http://i.ytimg.com/vi/YqjvMP9y5Cs/0.jpg
manve1 Posted September 13, 2012 Posted September 13, 2012 thats original GTA:SA stuff, just learn LUA, and it should be easy. you will need to make TXD, for those peds ( unless u dont want them ) and use functions like ( these are not all of them ) guiCreateLabel -- or use dxDrawText setTimer ect, i dont really know what else, but if u gonna make it with markers, just use onMarkerHit
SirniNamaz Posted September 13, 2012 Author Posted September 13, 2012 can u pls give me an example with 'dxDrawText' i have never used it before
Castillo Posted September 13, 2012 Posted September 13, 2012 Click the link which redirects to the MTA wiki, there's an example.
SirniNamaz Posted September 13, 2012 Author Posted September 13, 2012 yeah, but i dont know how to make the outline of the mission intro text (http://media.moddb.com/images/mods/1/19 ... -38-77.jpg)
manve1 Posted September 13, 2012 Posted September 13, 2012 you can try making a picture .. but dont ask me how to make that it would have no background
SirniNamaz Posted September 13, 2012 Author Posted September 13, 2012 the problem is that i am making the mission maker like dyom, so the mission name would be as the user puts it [not always same]
Castillo Posted September 13, 2012 Posted September 13, 2012 function dxDrawBorderedText ( text, x, y, w, h, color, scale, font, alignX, alignY, clip, wordBreak, postGUI ) dxDrawText ( text, x - 1, y - 1, w - 1, h - 1, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false ) -- black dxDrawText ( text, x + 1, y - 1, w + 1, h - 1, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false ) dxDrawText ( text, x - 1, y + 1, w - 1, h + 1, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false ) dxDrawText ( text, x + 1, y + 1, w + 1, h + 1, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false ) dxDrawText ( text, x - 1, y, w - 1, h, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false ) dxDrawText ( text, x + 1, y, w + 1, h, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false ) dxDrawText ( text, x, y - 1, w, h - 1, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false ) dxDrawText ( text, x, y + 1, w, h + 1, tocolor ( 0, 0, 0, 255 ), scale, font, alignX, alignY, clip, wordBreak, false ) dxDrawText ( text, x, y, w, h, color, scale, font, alignX, alignY, clip, wordBreak, postGUI ) end That'll draw the text with black borders.
SirniNamaz Posted September 13, 2012 Author Posted September 13, 2012 dxDrawText(varMissionName,0,screenHeight-150,screenWidth,screenHeight,tocolor(255,255,0),1,"pricedown","right","top") fadeCamera(false) edit: yes, varMissionName is declared before the dxDrawText varMissionName = "Custom Mission"
Castillo Posted September 13, 2012 Posted September 13, 2012 Maybe if you would tell us what is wrong with it?
SirniNamaz Posted September 13, 2012 Author Posted September 13, 2012 i think that the text may be hidden by fadeCamera(false) anyway no debugscript errors
SirniNamaz Posted September 13, 2012 Author Posted September 13, 2012 Post your full code. nevermind its fixed now
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now