Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define FILTERSCRIPT
- #include <a_samp>
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n------------------------------------------");
- print("Name colour changer By [TLA]BlackBlood");
- print("------------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- #endif
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(!strcmp(cmdtext,"/changecolour",true))
- {
- SendClientMessage(playerid,0x0259EAFF, "Type /blue to set your name colour to blue.");
- SendClientMessage(playerid,0xFF0000AA, "Type /red to set your name colour to red.");
- SendClientMessage(playerid,0xFFFF00AA, "Type /yellow to set your name colour to yellow.");
- SendClientMessage(playerid,0x33AA33AA, "Type /green to set your name colour to green.");
- SendClientMessage(playerid,0xFF9900AA, "Type /orange to set your name colour to orange.");
- SendClientMessage(playerid,0xFFFFFFAA, "Type /white to set your name colour to white.");
- SendClientMessage(playerid,0x000000FF, "Type /black to set your name colour to black.");
- SendClientMessage(playerid,0x8B4513FF, "Type /brown to set your name colour to brown.");
- SendClientMessage(playerid,0xAFAFAFAA, "Type /grey to set your name colour to grey.");
- return 1;
- }
- if(!strcmp(cmdtext,"/blue",true))
- {
- SetPlayerColor(playerid,0x0259EAFF);
- SendClientMessage(playerid,0x0259EAFF, "The colour of your name has been set to blue.");
- return 1;
- }
- if(!strcmp(cmdtext,"/red",true))
- {
- SetPlayerColor(playerid,0xFF0000AA);
- SendClientMessage(playerid,0xFF0000AA, "The colour of your name has been set to red.");
- return 1;
- }
- if(!strcmp(cmdtext,"/yellow",true))
- {
- SetPlayerColor(playerid,0xFFFF00AA);
- SendClientMessage(playerid,0xFFFF00AA, "The colour of your name has been set to yellow.");
- return 1;
- }
- if(!strcmp(cmdtext,"/green",true))
- {
- SetPlayerColor(playerid,0x33AA33AA);
- SendClientMessage(playerid,0x33AA33AA, "The colour of your name has been set to green.");
- return 1;
- }
- if(!strcmp(cmdtext,"/orange",true))
- {
- SetPlayerColor(playerid,0xFF9900AA);
- SendClientMessage(playerid,0xFF9900AA, "The colour of your name has been set to orange.");
- return 1;
- }
- if(!strcmp(cmdtext,"/white",true))
- {
- SetPlayerColor(playerid,0xFFFFFFAA);
- SendClientMessage(playerid,0xFFFFFFAA, "The colour of your name has been set to white.");
- return 1;
- }
- if(!strcmp(cmdtext,"/black",true))
- {
- SetPlayerColor(playerid,0x000000FF);
- SendClientMessage(playerid,0x000000FF, "The colour of your name has been set to black.");
- return 1;
- }
- if(!strcmp(cmdtext,"/brown",true))
- {
- SetPlayerColor(playerid,0x8B4513FF);
- SendClientMessage(playerid,0x8B4513FF, "The colour of your name has been set to brown.");
- return 1;
- }
- if(!strcmp(cmdtext,"/grey",true))
- {
- SetPlayerColor(playerid,0xAFAFAFAA);
- SendClientMessage(playerid,0xAFAFAFAA, "The colour of your name has been set to grey.");
- return 1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement