13.10.2010, 22:20
Код:
#include <a_samp> #define Colours 4321 public OnFilterScriptInit() { print("\n--------------------------------------"); print(" color by your nicoud"); print("--------------------------------------\n"); return 1; } forward Color(); public OnGameModeInit() { SetTimer("Color",1000,false); return 1; } public Color() { new playerid; ShowPlayerDialog(playerid, Colours, DIALOG_STYLE_LIST, "Choose your Color", "Red\nGreen\nBlue\nBlack\nAqua\nPink", "Pick", "Cancel"); return 1; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == Colours) { switch(listitem) { case 0: SetPlayerColor(playerid, 0xFF0000FF); case 1: SetPlayerColor(playerid, 0x00FF00FF); case 2: SetPlayerColor(playerid, 0x0000FFFF); case 3: SetPlayerColor(playerid, 0xFFFFFFFF); case 4: SetPlayerColor(playerid, 0x00FFFFFF); case 5: SetPlayerColor(playerid, 0xFF00FFFF); } } return 1; }