Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Sistema de cor do nome By: [KoS]Baby
- //Ajuda de Josma_CMD
- //---[include]---
- #include <a_samp>
- //---[defines]---
- #if defined FILTERSCRIPT
- //---[Public's]---
- public OnFilterScriptInit()
- {
- print("FS de trocar cor do nome");
- print("por dialog feito por [KoS]Baby");
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp(cmdtext, "/cornome", true)==0) {
- ShowPlayerDialog(playerid, 2424, DIALOG_STYLE_LIST, "Cor do Nome", "Azul\nVermelho\nVerde\nAqua\nRosa\nAmarelo\nMarron\nLaranja\nRoxo", "Selecionar", "Cancelar");
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) {
- if(dialogid == 2424) {
- if(response) {
- if(listitem == 0) {
- SetPlayerColor(playerid, 0x0000BBAA);
- return 1;
- }
- if(listitem == 1) {
- SetPlayerColor(playerid, 0xAA3333AA);
- return 1;
- }
- if(listitem == 2) {
- SetPlayerColor(playerid, 0x33AA33AA);
- return 1;
- }
- if(listitem == 3) {
- SetPlayerColor(playerid, 0xF0F8FFAA);
- return 1;
- }
- if(listitem == 4) {
- SetPlayerColor(playerid, 0xFFC0CBAA);
- return 1;
- }
- if(listitem == 5) {
- SetPlayerColor(playerid, 0xFFFF00AA);
- return 1;
- }
- if(listitem == 6) {
- SetPlayerColor(playerid, 0XA52A2AAA);
- return 1;
- }
- if(listitem == 7) {
- SetPlayerColor(playerid, 0xFF9900AA);
- return 1;
- }
- if(listitem == 8) {
- SetPlayerColor(playerid, 0x9900FFAA);
- return 1;
- }
- return 1;
- }
- return 1;
- }
- return 0;
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement