Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This is a comment
- // uncomment the line below if you want to write a filterscript
- #define FILTERSCRIPT
- #include <a_samp>
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Color Changer by luigifan9");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/colors", cmdtext, true, 10) == 0)
- {
- SendClientMessage(playerid, 0x33AA33AA, "/red /green /blue /yellow /black /white");
- return 1;
- }
- if (strcmp("/red", cmdtext, true, 10) == 0)
- {
- SetPlayerColor(playerid, 0xFF0000FF);
- return 1;
- }
- if (strcmp("/green", cmdtext, true, 10) == 0)
- {
- SetPlayerColor(playerid, 0x33AA33AA);
- return 1;
- }
- if (strcmp("/blue", cmdtext, true, 10) == 0)
- {
- SetPlayerColor(playerid, 0x0000FFFF);
- return 1;
- }
- if (strcmp("/yellow", cmdtext, true, 10) == 0)
- {
- SetPlayerColor(playerid, 0xFFFF00FF);
- return 1;
- }
- if (strcmp("/black", cmdtext, true, 10) == 0)
- {
- SetPlayerColor(playerid, 0x000000FF);
- return 1;
- }
- if (strcmp("/white", cmdtext, true, 10) == 0)
- {
- SetPlayerColor(playerid, 0xFFFFFFFF);
- return 1;
- }
- return 0;
- }
- #else
- #endif
Advertisement
Add Comment
Please, Sign In to add comment