01.06.2010, 14:47
Topo do GameMode
[b]public OnPlayerCommandText(playerid, cmdtext[]){
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){
By GTA
As Cores vocкs pegam ai do seu GM as defines..
Код:
#define Verde 0x00FF00FF
Код:
if(strcmp(cmdtext,"/mudarcor", true) == 0) { ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Escolha uma cor!", "Vermelho\nVerde\nAmarelo\nAzul\nLaranja\nRoxo\nAzul Marinho\nRosa\nCinza\nMarrom\nBranco\nAzul Claro\nVerde Escuro", "Ok", "Cancelar"); return 1; }
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){
Код:
if(dialogid == 2) { if(response) { if(listitem == 0) { SetPlayerColor(playerid, COR); GetPlayerName(playerid, sendername, sizeof(sendername)); new string[256]; format(string, sizeof(string), "%s Trocou a cor do Nick (/mudarcor)", sendername); SendClientMessageToAll(Verde, string); } } if(listitem == 1) { SetPlayerColor(playerid, COR); GetPlayerName(playerid, sendername, sizeof(sendername)); new string[256]; format(string, sizeof(string), "%s Trocou a cor do Nick (/mudarcor)", sendername); SendClientMessageToAll(Verde, string); } if(listitem == 2) { SetPlayerColor(playerid, COR); GetPlayerName(playerid, sendername, sizeof(sendername)); new string[256]; format(string, sizeof(string), "%s Trocou a cor do Nick (/mudarcor)", sendername); SendClientMessageToAll(Verde, string); } if(listitem == 3) { SetPlayerColor(playerid, COR); GetPlayerName(playerid, sendername, sizeof(sendername)); new string[256]; format(string, sizeof(string), "%s Trocou a cor do Nick (/mudarcor)", sendername); SendClientMessageToAll(Verde, string); } if(listitem == 4) { SetPlayerColor(playerid, COR); GetPlayerName(playerid, sendername, sizeof(sendername)); new string[256]; format(string, sizeof(string), "%s Trocou a cor do Nick (/mudarcor)", sendername); SendClientMessageToAll(Verde, string); } if(listitem == 5) { SetPlayerColor(playerid, COR); GetPlayerName(playerid, sendername, sizeof(sendername)); new string[256]; format(string, sizeof(string), "%s Trocou a cor do Nick (/mudarcor)", sendername); SendClientMessageToAll(Verde, string); } if(listitem == 6) { SetPlayerColor(playerid, CORl); GetPlayerName(playerid, sendername, sizeof(sendername)); new string[256]; format(string, sizeof(string), "%s Trocou a cor do Nick (/mudarcor)", sendername); SendClientMessageToAll(Verde, string); } if(listitem == 7) { SetPlayerColor(playerid, COR); GetPlayerName(playerid, sendername, sizeof(sendername)); new string[256]; format(string, sizeof(string), "%s Trocou a cor do Nick (/mudarcor)", sendername); SendClientMessageToAll(Verde, string); } if(listitem == 8) { SetPlayerColor(playerid, COR); GetPlayerName(playerid, sendername, sizeof(sendername)); new string[256]; format(string, sizeof(string), "%s Trocou a cor do Nick (/mudarcor)", sendername); SendClientMessageToAll(Verde, string); } if(listitem == 9) { SetPlayerColor(playerid, COR); GetPlayerName(playerid, sendername, sizeof(sendername)); new string[256]; format(string, sizeof(string), "%s Trocou a cor do Nick (/mudarcor)", sendername); SendClientMessageToAll(Verde, string); } if(listitem == 10) { SetPlayerColor(playerid, COR); GetPlayerName(playerid, sendername, sizeof(sendername)); new string[256]; format(string, sizeof(string), "%s Trocou a cor do Nick (/mudarcor)", sendername); SendClientMessageToAll(Verde, string); } if(listitem == 11) { SetPlayerColor(playerid, COR); GetPlayerName(playerid, sendername, sizeof(sendername)); new string[256]; format(string, sizeof(string), "%s Trocou a cor do Nick (/mudarcor)", sendername); SendClientMessageToAll(Verde, string); } if(listitem == 12) { SetPlayerColor(playerid, COR); GetPlayerName(playerid, sendername, sizeof(sendername)); new string[256]; format(string, sizeof(string), "%s Trocou a cor do Nick (/mudarcor)", sendername); SendClientMessageToAll(Verde, string); } } return 1; }
As Cores vocкs pegam ai do seu GM as defines..