SA-MP Forums Archive
[FilterScript] [FS] Player Color System - My first FS - 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] [FS] Player Color System - My first FS (/showthread.php?tid=348515)



[FS] Player Color System - My first FS - Youtube12 - 05.06.2012

Hi Guys, this is my first FS.

This is a Simple Player Color System.



//Commands//

/color
/credits

-------------------

Download:



.AMX File : http://www.mediafire.com/?5ebgaj8mdjxy9um

.PWN File : http://www.mediafire.com/?hn7da7wepff72fa


Install:
Download the .PWN and AMX. Files,
Than paste them in Filterscripts Folder,
Than open Server.cfg and write in line Filterscripts ColorSystem <exmple> Filterscripts ColorSystem
Press Save and enjoy.

==========================================

Code:



Код:
//Created By *******12//
//Please dont remove Credits//



//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//Y      			Y                               TTTTTTTTTTTTTTTTT                           b                              			   	1				  2	2 2 2 2 2	//////
// Y			   Y                                        T                                   b                               		  1	1		  		2		   2	//////
//  Y		 	  Y                                         T                                   b                              		  	 1	1			   2	 	  2		//////
//	 Y			 Y                                          T                                   b                              		    1	1			  2 		 2		//////
//    Y			Y                                           T                                   b                              		   1   	1						2		//////
//     Y	   Y                                            T                                   b                             		  1   	1					   2		//////
//      Y	  Y                                             T                                   b                                 	        1					  2			//////
//       Y Y Y                                              T                                   b                                 			1					 2			//////
//         Y            o           u       u               T               u       u           b b b b b              e e e e    			1				    2			//////
//         Y          o   o         u       u               T               u       u           b        b           e        e   			1				   2			//////
//         Y        o       o       u       u               T               u       u           b         b         e             			1				  2				//////
//         Y         o     o        u       u               T               u       u           b        b           e            			1				 2				//////
//         Y          o   o         u       u               T               u       u           b       b             e           			1				2				//////
//         Y            o          	 u u u uuuuuuuu         T           	 u u u uuuuuuuu     b b b b                e e e e    	  1111111111111		   2 2 2 2 2 2 2	//////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


/* INCLUDES */
#include <a_samp>

/* COLOR DEFINES */
    #define GREY 0xAFAFAFAA
    #define GREEN 0x33AA33AA
    #define BRIGHTRED 0xFF0000AA
    #define YELLOW 0xFFFF00AA
    #define PINK 0xFF66FFAA
    #define BLUE 0x3A47DEFF
    #define TAN 0xBDB76BAA
    #define PURPLE 0x800080AA
    #define WHITE 0xFFFFFFAA
    #define LIGHTBLUE 0x33CCFFAA
    #define ORANGE 0xFF9900AA
    #define INDIGO 0x4B00B0AA
    #define BLACK 0x00000000
    #define DARKGRAY 0x696969FF
    #define RED 0xFF0019FF
	#define LIGHTORANGE 0xFFBE00FF
	#define DARKPINK 0xBE00FFFF
	#define LIGHTGREEN 0x00FF8CFF
	#define BROWN 0x4B0000FF
	#define ORANGERED 0x4B0000FF
	#define GOLD 0xFFB400FF
	#define GRAYBLUE 0x0091FFFF
	#define COLOR_WHITE 0xFFFFFFFF
/* COLOR DEFINES */


#if defined FILTERSCRIPT



public OnPlayerConnect(playerid)
{
	SendClientMessage(playerid, RED, "The Server is using *******12's Color System.");
	SendClientMessage(playerid, RED, "Use /color to change your Player Color.");
	return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
	return 1;
}

public OnPlayerSpawn(playerid)
{
	return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
	return 1;
}


public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print("Player Color System Created By *******12!");
	print("--------------------------------------\n");
	return 1;
}

public OnFilterScriptExit()
{
	return 1;
}
#endif



public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/color", cmdtext, true, 10)== 0)
	{
	    ShowPlayerDialog(playerid, 5, DIALOG_STYLE_LIST, "Colors", "<none>\nBlue\nRed\nGreen\nYellow\nLightgreen\nLightblue\nBrown\nOrange\nLightorange\nPink\nDarkpink\nPurple\nOrange-Red\nGold\nGray-Blue", "Hit me!", "Stop!");
		return 1;
	}
	if (strcmp("/credits", cmdtext, true, 10)== 0)
		SendClientMessage(playerid,RED,"Created by *******12");
	return 0;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
   if(dialogid == 5)
    {
          if(response)
		  {
			if(listitem == 1)
			{
		  	SendClientMessage(playerid, BLUE,"COLOR CHANGED!");
		  	SetPlayerColor(playerid, BLUE);
 			}
			if(listitem == 2)
			{
		  	SendClientMessage(playerid, RED,"COLOR CHANGED!");
		  	SetPlayerColor(playerid, RED);
 			}
			if(listitem == 3)
			{
		  	SendClientMessage(playerid, GREEN,"COLOR CHANGED!");
		  	SetPlayerColor(playerid, GREEN);
 			}
			if(listitem == 4)
			{
		  	SendClientMessage(playerid, YELLOW,"COLOR CHANGED!");
		  	SetPlayerColor(playerid, YELLOW);
 			}
            if(listitem == 5)
			{
		  	SendClientMessage(playerid, LIGHTGREEN,"COLOR CHANGED!");
		  	SetPlayerColor(playerid, LIGHTGREEN);
 			}
            if(listitem == 6)
			{
		  	SendClientMessage(playerid, LIGHTBLUE,"COLOR CHANGED!");
		  	SetPlayerColor(playerid, LIGHTBLUE);
 			}
     		if(listitem == 7)
			{
		  	SendClientMessage(playerid, BROWN,"COLOR CHANGED!");
		  	SetPlayerColor(playerid, BROWN);
 			}
  			if(listitem == 8)
			{
		  	SendClientMessage(playerid, ORANGE,"COLOR CHANGED!");
		  	SetPlayerColor(playerid, ORANGE);
 			}
  			if(listitem == 9)
			{
		  	SendClientMessage(playerid, LIGHTORANGE,"COLOR CHANGED!");
		  	SetPlayerColor(playerid, LIGHTORANGE);
 			}
  			if(listitem == 10)
			{
		  	SendClientMessage(playerid, PINK,"COLOR CHANGED!");
		  	SetPlayerColor(playerid, PINK);
 			}
  			if(listitem == 11)
			{
		  	SendClientMessage(playerid, DARKPINK,"COLOR CHANGED!");
		  	SetPlayerColor(playerid, DARKPINK);
 			}
  			if(listitem == 12)
			{
		  	SendClientMessage(playerid, PURPLE,"COLOR CHANGED!");
		  	SetPlayerColor(playerid, PURPLE);
 			}
  			if(listitem == 13)
			{
		  	SendClientMessage(playerid, ORANGERED,"COLOR CHANGED!");
		  	SetPlayerColor(playerid, ORANGERED);
 			}
            if(listitem == 14)
			{
		  	SendClientMessage(playerid, GOLD,"COLOR CHANGED!");
		  	SetPlayerColor(playerid, GOLD);
 			}
            if(listitem == 15)
			{
		  	SendClientMessage(playerid, GRAYBLUE,"COLOR CHANGED!");
		  	SetPlayerColor(playerid, GRAYBLUE);
 			}
    		return 1;
  			}
          }
   return 1;
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//Y      			Y                               TTTTTTTTTTTTTTTTT                           b                              			   	1				  2	2 2 2 2 2	//////
// Y			   Y                                        T                                   b                               		  1	1		  		2		   2	//////
//  Y		 	  Y                                         T                                   b                              		  	 1	1			   2	 	  2		//////
//	 Y			 Y                                          T                                   b                              		    1	1			  2 		 2		//////
//    Y			Y                                           T                                   b                              		   1   	1						2		//////
//     Y	   Y                                            T                                   b                             		  1   	1					   2		//////
//      Y	  Y                                             T                                   b                                 	        1					  2			//////
//       Y Y Y                                              T                                   b                                 			1					 2			//////
//         Y            o           u       u               T               u       u           b b b b b              e e e e    			1				    2			//////
//         Y          o   o         u       u               T               u       u           b        b           e        e   			1				   2			//////
//         Y        o       o       u       u               T               u       u           b         b         e             			1				  2				//////
//         Y         o     o        u       u               T               u       u           b        b           e            			1				 2				//////
//         Y          o   o         u       u               T               u       u           b       b             e           			1				2				//////
//         Y            o          	 u u u uuuuuuuu         T           	 u u u uuuuuuuu     b b b b                e e e e    	  1111111111111		   2 2 2 2 2 2 2	//////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////












Best Regards *******12.


Re: [FS] Player Color System - My first FS - Roperr - 05.06.2012

I don't think it's smart to add stuff under OnPlayerRequestClass inside your Filterscript, since it will interfere with the gamemodes of the people who use it.


Re: [FS] Player Color System - My first FS - Day_Jons - 05.06.2012

Thanks! Good work the author is useful


AW: [FS] Player Color System - My first FS - Youtube12 - 05.06.2012

You are Welcome.


AW: [FS] Player Color System - My first FS - mrbeam - 05.06.2012

Pretty simple fs like you said i your post. I thank it's usefull for some players. Not bad


Re: [FS] Player Color System - My first FS - Kathleen - 05.06.2012

Very easy, But great


Re: [FS] Player Color System - My first FS - Pinguinn - 05.06.2012

No offence, but I wonder when you people come with new things instead of releasing the same thing over and over again..


AW: [FS] Player Color System - My first FS - Youtube12 - 05.06.2012

Thx all

Pinguinn I know, but its my first FS.


Re: [FS] Player Color System - My first FS - Roperr - 05.06.2012

Quote:
Originally Posted by Pinguinn
Посмотреть сообщение
No offence, but I wonder when you people come with new things instead of releasing the same thing over and over again..
Things like releasing a simple script actually boost up their self confidence.

So by replying "good job, you did well, good luck in the future", you're doing a great thing, letting the scripter advance in the field of scripting.

Of course if he feels that he's getting somewhere, he'll go further and further, getting better and better.

I have nothing against simple releases like this, it does not harm anyone and even though it's that simple, doesn't mean it shouldn't be shown to the public


AW: Re: [FS] Player Color System - My first FS - Youtube12 - 05.06.2012

Quote:
Originally Posted by Roperr
Посмотреть сообщение
Things like releasing a simple script actually boost up their self confidence.

So by replying "good job, you did well, good luck in the future", you're doing a great thing, letting the scripter advance in the field of scripting.

Of course if he feels that he's getting somewhere, he'll go further and further, getting better and better.

I have nothing against simple releases like this, it does not harm anyone and even though it's that simple, doesn't mean it shouldn't be shown to the public
Thank you

I Will script more and more. ^^