Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- [FilterScript] nV_time
- BY NENO
- */
- #include <a_samp>
- #include <zcmd>
- #define COLOR_GREY 0xAFAFAFAA
- #define DIALOG_TIME 25
- //----------------------------------------------------------------------------//
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" [FilterScript] nV_time ");
- print("--------------------------------------\n");
- return 1;
- }
- //----------------------------------------------------------------------------//
- public OnFilterScriptExit()
- {
- return 1;
- }
- //----------------------------------------------------------------------------//
- public OnPlayerConnect(playerid)
- {
- return 1;
- }
- //----------------------------------------------------------------------------//
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == DIALOG_TIME)
- {
- if(response)
- {
- if(listitem == 0)
- {
- SetPlayerTime(playerid, 06,00);
- SendClientMessage(playerid, COLOR_GREY, "[FilterScript] nV_time >> Promjenuo si vrijeme na jutro!");
- }
- if(listitem == 1)
- {
- SetPlayerTime(playerid, 12,00);
- SendClientMessage(playerid, COLOR_GREY, "[FilterScript] nV_time >> Promjenuo si vrijeme na podne!");
- }
- if(listitem == 2)
- {
- SetPlayerTime(playerid, 18,00);
- SendClientMessage(playerid, COLOR_GREY, "[FilterScript] nV_time >> Promjenuo si vrijeme na predvece!");
- }
- if(listitem == 3)
- {
- SetPlayerTime(playerid, 20,00);
- SendClientMessage(playerid, COLOR_GREY, "[FilterScript] nV_time >> Promjenuo si vrijeme na vece!");
- }
- if(listitem == 4)
- {
- SetPlayerTime(playerid, 00,00);
- SendClientMessage(playerid, COLOR_GREY, "[FilterScript] nV_time >> Promjenuo si vrijeme na noc!");
- }
- }
- }
- return 1;
- }
- //----------------------------------------------------------------------------//
- CMD:time(playerid, params[])
- {
- ShowPlayerDialog(playerid, DIALOG_TIME, DIALOG_STYLE_LIST, "[FilterScript] nV_time", "Jutro\nPodne\nPredvece\nVece\nNoc", "OK","");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement