PDA

View Full Version : [KILLTUBE.ORG TUT] How to create a Welcome Message via GuidScript



STAUFFi
4th January 2013, 22:36
Hello People,
I´m STAUFFii from killtube.org.
i want show you , how to create a Welcome Message via GuidScript.

1.
You open your .gsc (tdm,zom,dm or other) with Notpad++
Downloadlink for Notpad++ (http://www.chip.de/downloads/Notepad_12996935.html)
Then press STRG+F for open the SearchMenu

http://killtube.org/~stauffi/killtube/stauffi1.JPG

And write Callback_PlayerConnect() and Enter!

2.
You see now Callback_PlayerConnect in the gsc so write under dummy();
thread killtubeorgtut();

http://killtube.org/~stauffi/killtube/stauffi2.JPG

3.
And now search dummy() and write under dummy()

http://killtube.org/~stauffi/killtube/stauffi3.JPG

The Script is with Music!! You can change it ( playsound admin )

4.

http://killtube.org/~stauffi/killtube/stauffi4.JPG
So its all right and we are nowfinish! :o
Save it and start your Mod.
Enjoy it

Greet K~STAUFFii

Sp1re
4th January 2013, 22:39
nice one!
i going use somewhere:D

STAUFFi
4th January 2013, 22:40
Thanks Mate :3

EvoloZz
4th January 2013, 22:47
Why is it checking guid 3 times? Also this seems to work only if you host from your own pc, and instead of ("" + self.name + ""), you could just use (self.name). But nice anyway :D

STAUFFi
4th January 2013, 22:49
the script was for 3 people
i changed only guids to 0

EvoloZz
4th January 2013, 22:51
Okay then :P

Tally
5th January 2013, 05:55
If you are going to use iprintlnbold() on a player, you need to specify the player as the entity:


self iprintlnbold( "TEXT" );

Otherwise the server will throw a script runtime error because the game wont know what entity to use iprintlnbold() on (it has to be either a level entity of some sort, or a client entity).

Also, remember: when testing, the getGuid() method wont work on a Local/Listen server (it will always return 0). To return a client's real guid, it has to be tested on a dedicated server.

IzNoGoD
5th January 2013, 09:25
Untrue, at least for cod2.

Not specifying the entity will make cod auto-assume the level entity, so it will become a global iprintlnbold.

Sense
10th January 2013, 22:51
IzNo is right, the print will be shown to all instead of a single client.