Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- **********************************************************************************************
- **********************************************************************************************
- **********************************************************************************************
- **********************************************************************************************
- ******ooooooooooooo************oooo******************ooooooooooooo************ooooooooooooo***
- ******ooooooooooooo***********oo**oo*****************ooooooooooooo************ooooooooooooo***
- ******oo*********************oo****oo****************oo***********************oo**************
- ******oo********************oo******oo***************oo***********************oo**************
- ******ooooooooooo**********oo********oo**************ooooooooooo**************ooooooooooo*****
- ******ooooooooooo*********oo**********oo*************ooooooooooo**************ooooooooooo*****
- ******oo*****************oooooooooooooooo************oo***********************oo**************
- ******oo****************oooooooooooooooooo***********oo***********************oo**************
- ******oo***************oo****************oo**********oo***********************oo**************
- ******oo**************oo******************oo*********oo***********************oo**************
- ******oo*************oo********************oo********oo***********************oo**************
- **********************************************************************************************
- **********************************************************************************************
- **********************************************************************************************
- Created By Faff (Fabio Dicola), Dont Remove Credits!
- */
- /* INCLUDES */
- #include <a_samp>
- /* INCLUDES */
- /* COLOR DEFINES */
- #define GREEN 0x33AA33AA
- #define RED 0xAA3333AA
- #define YELLOW 0xFFFF00AA
- #define WHITE 0xFFFFFFAA
- #define BLUE 0x0000BBAA
- #define GOLD 0xB8860BAA
- #define PINK 0xFFC0CBAA
- #define PURPLE 0x800080FF
- /* COLOR DEFINES */
- /* FS DEFINE */
- #if defined FILTERSCRIPT
- /* FS DEFINE */
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print("PlayerColor-system By Faff! Buyable!");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- #endif
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/plcolor", cmdtext, true, 10) == 0)
- {
- ShowPlayerDialog(playerid, 5, DIALOG_STYLE_LIST, "Choose Ur Player Color", "White\nGreen\nRed\nYellow\nBlue\nPurple\nGold\nPink", "Confirm", "Exit");
- new string[64], pName[MAX_PLAYER_NAME];
- GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
- format(string,sizeof string,"%s Used player color system by Faff!",pName);
- SendClientMessageToAll(0xFFFFFFAA,string);
- return 1;
- }
- if (strcmp("/plhelp", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid, RED, "Hello, want to use the plcolor system created by faff? use /plcolor! check /plcredits to!");
- return 1;
- }
- if (strcmp("/plcredits", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid, WHITE, "-----------------------------------------------------------------");
- SendClientMessage(playerid, WHITE, "CREDITS----*******FAFF FABIO DICOLA*******----CREDITS");
- SendClientMessage(playerid, GREEN, "Name: Player Color System");
- SendClientMessage(playerid, GREEN, "Creator: Faff (Fabio Dicola)");
- SendClientMessage(playerid, GREEN, "Version: v0.1");
- SendClientMessage(playerid, GREEN, "Created on: 24/05/2012");
- SendClientMessage(playerid, GREEN, "Released: 24/05/2012");
- SendClientMessage(playerid, GREEN, "Dont Release Tis as u own! And Dont remove the credits!");
- SendClientMessage(playerid, WHITE, "-----------------------------------------------------------------");
- return 1;
- }
- return 0;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == 5)
- {
- if(response)
- {
- new string[128];
- new message[256+1];
- if(listitem == 0)
- {
- format(string, sizeof(string), "You got now a WHITE name!! !!system CREATED BY FAFF!!");
- SendClientMessageToAll(GREEN, string);
- SetPlayerColor(playerid, WHITE);
- }
- if(listitem == 1)
- {
- format(string, sizeof(string), "You got now a GREEN name!! !!system CREATED BY FAFF!!");
- SendClientMessage(playerid, 0xFFFFFFFF, message);
- SetPlayerColor(playerid, GREEN);
- return 1;
- }
- if(listitem == 2)
- {
- format(string, sizeof(string), "You got now a RED name!! !!system CREATED BY FAFF!!");
- SendClientMessageToAll(GREEN, string);
- SetPlayerColor(playerid, RED);
- return 1;
- }
- if(listitem == 3)
- {
- format(string, sizeof(string), "You got now a YELLOW name!! !!system CREATED BY FAFF!!");
- SendClientMessageToAll(GREEN, string);
- SetPlayerColor(playerid, YELLOW);
- return 1;
- }
- if(listitem == 4)
- {
- format(string, sizeof(string), "You got now a BLUE name!! !!system CREATED BY FAFF!!");
- SendClientMessageToAll(GREEN, string);
- SetPlayerColor(playerid, BLUE);
- return 1;
- }
- if(listitem == 5)
- {
- format(string, sizeof(string), "You got now a PURPLE name!! !!system CREATED BY FAFF!!");
- SendClientMessageToAll(GREEN, string);
- SetPlayerColor(playerid, PURPLE);
- return 1;
- }
- if(listitem == 6)
- {
- format(string, sizeof(string), "You got now a GOLD name!! !!system CREATED BY FAFF!!");
- SendClientMessageToAll(GREEN, string);
- SetPlayerColor(playerid, GOLD);
- return 1;
- }
- if(listitem == 7)
- {
- format(string, sizeof(string), "You got now a PINK name!! !!system CREATED BY FAFF!!");
- SendClientMessageToAll(GREEN, string);
- SetPlayerColor(playerid, PINK);
- return 1;
- }
- }
- }
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- new string[128];
- format(string, sizeof(string), "This server use Player color system by faff");
- SendClientMessageToAll(GREEN, string);
- return 1;
- }
- /*
- **********************************************************************************************
- **********************************************************************************************
- **********************************************************************************************
- **********************************************************************************************
- ******ooooooooooooo************oooo******************ooooooooooooo************ooooooooooooo***
- ******ooooooooooooo***********oo**oo*****************ooooooooooooo************ooooooooooooo***
- ******oo*********************oo****oo****************oo***********************oo**************
- ******oo********************oo******oo***************oo***********************oo**************
- ******ooooooooooo**********oo********oo**************ooooooooooo**************ooooooooooo*****
- ******ooooooooooo*********oo**********oo*************ooooooooooo**************ooooooooooo*****
- ******oo*****************oooooooooooooooo************oo***********************oo**************
- ******oo****************oooooooooooooooooo***********oo***********************oo**************
- ******oo***************oo****************oo**********oo***********************oo**************
- ******oo**************oo******************oo*********oo***********************oo**************
- ******oo*************oo********************oo********oo***********************oo**************
- **********************************************************************************************
- **********************************************************************************************
- **********************************************************************************************
- Created By Faff (Fabio Dicola), Dont Remove Credits!
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement