Tutorial How to make Text in your mod!
#1
Question 
Hello Today i learn you how to make text in your mod so it look like in your game... As you see in many mods are text so tutorial is :

1.Ok so open your _rank.gsc file and find this :

Code:
onJoinedSpectators() { self endon("disconnect"); for(;;) { self waittill("joined_spectators"); self thread removeRankHUD(); } }

2.Then down of that type this :

Code:
ModInfo() { self endon( "disconnect" ); info = self createFontString("hudbig", 2.0); while(true) { info setPoint("TOP", "TOP", -5, 0); info setText("Your name text here"); wait .5; } }

So final code :

Code:
onJoinedSpectators() { self endon("disconnect"); for(;;) { self waittill("joined_spectators"); self thread removeRankHUD(); } } ModInfo() { self endon( "disconnect" ); info = self createFontString("hudbig", 2.0); while(true) { info setPoint("TOP", "TOP", -5, 0); info setText("Text here"); wait .5; } }

Colors :

^1text (red)
^2text (green)
^3text (yellow)
^4text (blue)
^5text (light blue)
^6text (purple)
^7text (white default)
^8text (grey)
^9text (brown)
^0text (black)

Now the code with my text :

Code:
ModInfo() { self endon( "disconnect" ); info = self createFontString("hudbig", 2.0); while(true) { info setPoint("TOP", "TOP", -5, 0); info setText("^4Text Mod ^6By ^7Ivankec"); wait .5; } }

Up it will be look like this : Text Mod By : Ivankec

Thanks for reading tutorial... btw PLEASE THANK YOU Big Grin
Reply

#2
you only share the code you dont "teach" it ..
but nice .
Reply

#3
ye nvm...
Reply

#4
its nice but the people who don't know how to code will get an error because u never showed then to called the thread Modinfo
Reply

#5
(02-28-2011, 09:42)No One Wrote: its nice but the people who don't know how to code will get an error because u never showed then to called the thread Modinfo

I want to figure how to use the code i want to make a mod but i need to know how to code. can someone teach me?
[Image: 2nbvtyo.jpg]
Reply

#6
there are alot of good tutorials here, helps you to start
Reply

#7
(04-01-2011, 23:48)d0h! Wrote: there are alot of good tutorials here, helps you to start

ok u know of any good tutorials that would help me code.
[Image: 2nbvtyo.jpg]
Reply

#8
snipah add me -.- i would help you alot
Reply

#9

Hey doing this on my phone but to use put
Code:
Self thread ModInfo();
In onplayerspawned
Or read my tut http://www.itsmods.com/forum/Thread-Basi...orial.html
Reply

#10
no on player spawned on this :

Code:
player.explosiveKills[0] = 0; player.xpGains = []; player thread ModInfo(); player thread onPlayerSpawned(); player thread onJoinedTeam(); player thread onJoinedSpectators();

something like that..
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Getting text from a website JustDoingThisShit 2 4,164 10-21-2013, 08:00
Last Post: JustDoingThisShit
  Make area detect. flag Teleport lewisbibo 4 6,719 10-12-2013, 18:10
Last Post: EnVi Sweden Rocks
Wink Make Platforme lewisbibo 5 7,021 10-08-2013, 14:35
Last Post: 8q4s8
  Make obj MW3.by lewisbibo lewisbibo 3 4,985 10-05-2013, 20:16
Last Post: Nekochan
  Make obj MW3.by lewisbibo lewisbibo 0 3,279 10-03-2013, 20:19
Last Post: lewisbibo
  Help need help?how to make plugins code hXnarutoXone 12 11,701 09-01-2013, 18:30
Last Post: Bandarigoda123
  Help Make ac130 shoot custom bullets Ra3shed 0 3,640 07-23-2013, 13:02
Last Post: Ra3shed
  how to make a plugin (mod) E-losev 5 5,984 07-12-2013, 15:48
Last Post: OzonE
  [Release] Make Trees Fall Yamato 8 14,442 06-15-2013, 11:45
Last Post: xfxtroll
Information How to change text messages in MP (.ff edit) giofrida 5 6,998 05-02-2013, 20:05
Last Post: Pozzuh

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2026 Melroy van den Berg.