Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- FilterScript
- Author: malaka | http://forum.sa-mp.com/member.php?u=112277
- Name: Simple FS to show flags
- Version: 1.0
- Desc: Shows a flag for all player on the server
- License: CC BY-NC | http://creativecommons.org/licenses/by-nc/3.0/
- Credits:
- * SA-MP Team
- * Creater of zcmd - Zeex (http://forum.sa-mp.com/showthread.php?t=91354)
- */
- // Includes
- #include <a_samp>
- #include <zcmd>
- // Defines
- #define DIALOG_FLAGS 7337
- #define FLAGS_DISPLAY_TIME 4500
- #define FLAGS_DISPLAY_STYLE 3
- /* /flags command which is only accessable by RCON-Admins, feel free to change it to your own Admin System */
- COMMAND:flags(playerid,params[])
- {
- if (IsPlayerAdmin(playerid)) ShowPlayerDialog(playerid,DIALOG_FLAGS,DIALOG_STYLE_LIST,"Select Country:","Germany\nFrance\nSpain\nU.S.\nItaly\nNetherlands\nSweden\nPoland","Select","Close");
- else
- return 0;
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if (dialogid == DIALOG_FLAGS) {
- if(!response) return 1;
- switch (listitem)
- {
- case 0: // Germany
- GameTextForAll("~l~]]]]]]]]]~n~~r~]]]]]]]]]~n~~y~]]]]]]]]]~n~~n~~w~GERMANY", FLAGS_DISPLAY_TIME, FLAGS_DISPLAY_STYLE);
- case 1: // France
- GameTextForAll("~b~]]]~w~]]]~r~]]]~n~~b~]]]~w~]]]~r~]]]~n~~b~]]]~w~]]]~r~]]]~n~~n~~w~FRANCE", FLAGS_DISPLAY_TIME, FLAGS_DISPLAY_STYLE);
- case 2: // Spain
- GameTextForAll("~r~]]]]]]]]]~n~~y~]]]]]]]]]~n~~r~]]]]]]]]]~n~~n~~w~SPAIN", FLAGS_DISPLAY_TIME, FLAGS_DISPLAY_STYLE);
- case 3: // U.S.
- GameTextForAll("~b~]]]~r~]]]]]]~n~~b~]]]~w~]]]]]]~n~~b~]]]~r~]]]]]]~n~~w~]]]]]]]]]~n~~r~]]]]]]]]]~n~~n~~w~U.S.", FLAGS_DISPLAY_TIME, FLAGS_DISPLAY_STYLE);
- case 4: // Italy
- GameTextForAll("~g~]]]~w~]]]~r~]]]~n~~g~]]]~w~]]]~r~]]]~n~~g~]]]~w~]]]~r~]]]~n~~n~~w~ITALY", FLAGS_DISPLAY_TIME, FLAGS_DISPLAY_STYLE);
- case 5: // Netherlands
- GameTextForAll("~r~]]]]]]]]]~n~~w~]]]]]]]]]~n~~b~]]]]]]]]]~n~~n~~w~Netherlands", FLAGS_DISPLAY_TIME, FLAGS_DISPLAY_STYLE);
- case 6: // Sweden
- GameTextForAll("~b~]]]~y~]]~b~]]]]]~n~~b~]]]~y~]]~b~]]]]]~n~~y~]]]]]]]]]]~n~~b~]]]~y~]]~b~]]]]]~n~~b~]]]~y~]]~b~]]]]]~n~~n~~w~Sweden", FLAGS_DISPLAY_TIME, FLAGS_DISPLAY_STYLE);
- case 7: // Poland
- GameTextForAll("~w~]]]]]]]]]~n~~w~]]]]]]]]]~n~~r~]]]]]]]]]~n~~r~]]]]]]]]]~n~~n~~w~Poland", FLAGS_DISPLAY_TIME, FLAGS_DISPLAY_STYLE);
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment