Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <colors>
- #define COLOR_RED 0xAA3333AA
- #define COLOR_SIMPSONS 0xFFD90FAA
- #define COLOR_GREEN 0x33AA33AA
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Color Dialog - Created By -Luis");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #endif
- public OnPlayerRequestClass(playerid, classid)
- {
- SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- SendClientMessage(playerid, COLOR_SIMPSONS, "Color Dialog by -Luis");
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- return 1;
- }
- public OnVehicleSpawn(vehicleid)
- {
- return 1;
- }
- public OnVehicleDeath(vehicleid, killerid)
- {
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/misc", cmdtext, true, 10) == 0)
- {
- ShowPlayerDialog(playerid, 10, DIALOG_STYLE_LIST, "{00C0FF}Luis's Fun Things!", "Colors", "Select", "Cancel");
- return 1;
- }
- return 0;
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- return 1;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- return 1;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- return 1;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerEnterRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnRconCommand(cmd[])
- {
- return 1;
- }
- public OnPlayerRequestSpawn(playerid)
- {
- return 1;
- }
- public OnObjectMoved(objectid)
- {
- return 1;
- }
- public OnPlayerObjectMoved(playerid, objectid)
- {
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- return 1;
- }
- public OnVehicleMod(playerid, vehicleid, componentid)
- {
- return 1;
- }
- public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
- {
- return 1;
- }
- public OnVehicleRespray(playerid, vehicleid, color1, color2)
- {
- return 1;
- }
- public OnPlayerSelectedMenuRow(playerid, row)
- {
- return 1;
- }
- public OnPlayerExitedMenu(playerid)
- {
- return 1;
- }
- public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
- {
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- return 1;
- }
- public OnRconLoginAttempt(ip[], password[], success)
- {
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- return 1;
- }
- public OnPlayerStreamIn(playerid, forplayerid)
- {
- return 1;
- }
- public OnPlayerStreamOut(playerid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamIn(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamOut(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if (dialogid == 10)
- {
- if (response)
- {
- if (listitem == 0)
- {
- ShowPlayerDialog(playerid, 11, DIALOG_STYLE_LIST, "{FFAF00}Colors List", "1\t{00C0FF}Light Blue\n2\t{0049FF}Blue\n3\t{FF00EA}Pink\n4\t{F81414}Dark Red\n5\t{6EF83C}Green\n6\t{FFAF00}Orange\n7\t{F3FF02}Yellow\n8\tBack", "Select", "Cancel");
- }
- }
- }
- if(dialogid == 11)
- {
- if(response)
- {
- if (listitem == 0)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "Your color is now Light Blue");
- SetPlayerColor(playerid, COLOR_LIGHTBLUE);
- }
- if (listitem == 1)
- {
- SendClientMessage(playerid, COLOR_BLUE, "Your color is now Blue");
- SetPlayerColor(playerid, COLOR_BLUE);
- }
- if (listitem == 2)
- {
- SendClientMessage(playerid, COLOR_PINK, "Your color is now Pink");
- SetPlayerColor(playerid, COLOR_PINK);
- }
- if (listitem == 3)
- {
- SendClientMessage(playerid, COLOR_RED, "Your color is now Dark Red");
- SetPlayerColor(playerid, COLOR_RED);
- }
- if (listitem == 4)
- {
- SendClientMessage(playerid, COLOR_GREEN, "Your color is now Green");
- SetPlayerColor(playerid, COLOR_GREEN);
- }
- if (listitem == 5)
- {
- SendClientMessage(playerid, COLOR_ORANGE, "Your color is now a Orange");
- SetPlayerColor(playerid, COLOR_ORANGE);
- }
- if (listitem == 6)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "Your color is now Yellow");
- SetPlayerColor(playerid, COLOR_YELLOW);
- }
- if (listitem == 7)
- {
- ShowPlayerDialog(playerid, 10, DIALOG_STYLE_LIST, "{00C0FF}Luis's Fun Things!", "Colors", "Select", "Cancel");
- }
- }
- }
- return 1;
- }
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement