Poll

Do you think this helped?

Totally!
1 (100%)
Kind of.
0 (0%)
Not much.
0 (0%)
Not at all!
0 (0%)

Total Members Voted: 1

Author Topic: Event Making  (Read 1394 times)

First of all, I want to make an event related to ChappersTeddy's topic:

http://forum.blockland.us/index.php?topic=257248.0

The event I am planning to make is this: OnActivate/PlayerTouch> Player> setPlayerName> [NAME HERE] [COLOR HERE (OPTIONAL)]

Could someone give me a guide for this, as I am not good at coding?
That would be nice, thanks!

Oh, I want it so the name only appears on top of the player, not in the chat.

Badspot does not want the shape name of players being changed. So he added in a code to change it, a code only known by few and no one will give it away. Plus even if you did release this, it'd be failed for having the code in it. You can only change the color of the player's shape name.

Badspot does not want the shape name of players being changed. So he added in a code to change it, a code only known by few and no one will give it away. Plus even if you did release this, it'd be failed for having the code in it. You can only change the color of the player's shape name.
Ok...but Pecon7 knows this, and I saw the user Kalim have an add-on to the beginning of his name. THAT is what I need.

Ok...but Pecon7 knows this, and I saw the user Kalim have an add-on to the beginning of his name. THAT is what I need.
oh, so you mean clantags?

if thats what you mean its pretty simple.

Code: [Select]
registerOutputEvent(GameConnection, setClanPrefix "string 1 20", 1);
registerOutputEvent(GameConnection, setClanSuffix "string 1 20", 1);

GameConnection::setClanPrefix(%this, %str){
%this.clanPrefix = %str SPC "";
}
GameConnection::setClanSuffix(%this, %str){
%this.clanSuffix = %str SPC "";
}
i havent worked with events for a while but im pretty sure this is the correct syntax
package this in a server.cs blah blah
then in the events window it should be onActivate - Client - setClan(suffix or prefix) - "lol"
if you want colors, you can do something like "<color:666666> lol" or "\\c4 lol"
« Last Edit: July 29, 2014, 02:57:40 PM by ZombieDude »

oh, so you mean clantags?

if thats what you mean its pretty simple.

Code: [Select]
registerOutputEvent(GameConnection, setClanPrefix "string 1 20", 1);
registerOutputEvent(GameConnection, setClanSuffix "string 1 20", 1);

GameConnection::setClanPrefix(%this, %str){
%this.clanPrefix = %str SPC "";
}
GameConnection::setClanSuffix(%this, %str){
%this.clanSuffix = %str SPC "";
}

then in the events window it should be onActivate - Client - setClan(suffix or prefix) - "lol"
if you want colors, you can do something like "<color:666666> lol" or "\\c4 lol"

This is what I needed, thanks! Topic is now locked.

EDIT: Topic unlocked, post anything.
« Last Edit: August 01, 2014, 11:58:29 PM by Mr. Noobalot »