[FilterScript] Official Rainbow Name By GeekSiMo & Mionee
#1

Rainbow Name


Introduction:

Yesterday, i got this idea of that players can chat with rainbow name, so Mionee helped me by showing me how to add some color codes beetween name characters, after that i start making a command to enable/disable the rainbow name in chat.

Picture:



Commands:

/rname : To Enable or Disable Rainbow Name in Chat.


Download:

Mediafire
Pastebin

Credits:

GeekSiMo: Idea & Some Improvements.
Mionee: Basic Script.
Reply
#2

cool beans (y)
Reply
#3

You should really look closer at your code optimizations.

This function is the most non-optimized version of a shortened "GetPlayerName" function :

pawn Код:
stock GetName(playerid)
{
        new pName[MAX_PLAYERS];
        GetPlayerName(playerid, pName, sizeof(pName));
        return pName;
}
You create a variable each time, but because the function takes a "playerid" parameter, there's absolutely NO NEED to use [MAX_PLAYERS]. You create at least a useless variable.
Reply
#4

Cool man
Reply
#5

Instead of a stock you could just

pawn Код:
new Name[MAX_PLAYERS][24];
Name[playerid] = GetPlayerName(playerid, Name[playerid], 24);
but ok
Reply
#6

looks, good.
Reply
#7

I know but it is useful if someone want to add it!!
Reply
#8

Sweet Idea I loved it, good work
Reply
#9

No +Rep For Me and Mionee !?
Reply
#10

Thanks !!!!
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)