• 2 Vote(s) - 3.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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
[-] The following 7 users say Thank You to Ivankec for this post:
  • d0h!, Eekhoorn, faramire, fojacko, wattz3, wezljkz, y do i need to sign up to dl!
  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..
[-] The following 1 user says Thank You to Ivankec for this post:
  • wattz3
  Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Getting text from a website JustDoingThisShit 2 836 10-21-2013, 08:00
Last Post: JustDoingThisShit
  Make area detect. flag Teleport lewisbibo 4 1,892 10-12-2013, 18:10
Last Post: EnVi Sweden Rocks
Wink Make Platforme lewisbibo 5 1,945 10-08-2013, 14:35
Last Post: 8q4s8
  Make obj MW3.by lewisbibo lewisbibo 3 1,638 10-05-2013, 20:16
Last Post: Nekochan
  Make obj MW3.by lewisbibo lewisbibo 0 910 10-03-2013, 20:19
Last Post: lewisbibo
  Help need help?how to make plugins code hXnarutoXone 12 3,046 09-01-2013, 18:30
Last Post: Bandarigoda123
  Help Make ac130 shoot custom bullets Ra3shed 0 991 07-23-2013, 13:02
Last Post: Ra3shed
  how to make a plugin (mod) E-losev 5 1,825 07-12-2013, 15:48
Last Post: OzonE
  [Release] Make Tree´s Fall Yamato 8 3,323 06-15-2013, 11:45
Last Post: xfxtroll
  [need help] how to make dbnetwork updater? ahmad009 3 1,059 06-09-2013, 11:54
Last Post: Bandarigoda123

Forum Jump:


Users browsing this thread: 1 Guest(s)