Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /////Color Changer/////
- ////////By Fr3ak///////
- //INCLUDES//
- #include <a_samp>
- //INCLUDES//
- //DEFINES//
- #define DIALOGID 6969
- //DEFINES//
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/cmenu", cmdtext, true, 10) == 0)
- {
- ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, "Player Color Changer ~ By Fr3ak", "Purple\nYellow\nRed\nLightblue\nOrange\nGreen\nIndigo\nPink\nBlack", "Select", "Cancel");
- return 1;
- }
- return 0;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == DIALOGID)
- {
- if(response)
- {
- if(listitem == 0)
- {
- SetPlayerColor(playerid, 0x800080AA);
- }
- if(listitem == 1)
- {
- SetPlayerColor(playerid, 0xFFFF00AA);
- }
- if(listitem == 2)
- {
- SetPlayerColor(playerid, 0xff0000ff);
- }
- if(listitem == 3)
- {
- SetPlayerColor(playerid, 0x33CCFFAA);
- }
- if(listitem == 4)
- {
- SetPlayerColor(playerid, 0xFF9900AA);
- }
- if(listitem == 5)
- {
- SetPlayerColor(playerid, 0x33AA33AA);
- }
- if(listitem == 6)
- {
- SetPlayerColor(playerid, 0x4B00B0AA);
- }
- if(listitem == 7)
- {
- SetPlayerColor(playerid, 0xFF66FFAA);
- }
- if(listitem == 8)
- {
- SetPlayerColor(playerid, 0x00000000);
- }
- }
- return 1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement