SA-MP Forums Archive
[FilterScript] Official Rainbow Name By GeekSiMo & Mionee - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Official Rainbow Name By GeekSiMo & Mionee (/showthread.php?tid=526697)



Official Rainbow Name By GeekSiMo & Mionee - GeekSiMo - 18.07.2014

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.



Re: Official Rainbow Name By GeekSiMo & Mionee - Dignity - 18.07.2014

cool beans (y)


Re : Official Rainbow Name By GeekSiMo & Mionee - S4t3K - 18.07.2014

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.


Re: Official Rainbow Name By GeekSiMo & Mionee - satafinix - 19.07.2014

Cool man


Re: Official Rainbow Name By GeekSiMo & Mionee - sammp - 19.07.2014

Instead of a stock you could just

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


Re: Official Rainbow Name By GeekSiMo & Mionee - GrandTheftAut0 - 19.07.2014

looks, good.


Re: Official Rainbow Name By GeekSiMo & Mionee - GeekSiMo - 19.07.2014

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


Re: Official Rainbow Name By GeekSiMo & Mionee - FilesMAker - 19.07.2014

Sweet Idea I loved it, good work


Re: Official Rainbow Name By GeekSiMo & Mionee - GeekSiMo - 19.07.2014

No +Rep For Me and Mionee !?


Re: Official Rainbow Name By GeekSiMo & Mionee - GeekSiMo - 19.07.2014

Thanks !!!!