[FilterScript] Country Flags over the World. [INCLUDE/FILTERSCRIPT VERSION]
#1

Introduction:


Hello!
I'm here to show to you all my Country Flags filterscript. It's containts Textdraws with Country's flags over the World.


Flags:


- There are curentlly 22 flags for 22 countries.


pawn Код:
#define FLAG_ROMANIA 0
#define FLAG_GERMANY 1
#define FLAG_UKRAINE 2
#define FLAG_SPAIN 3
#define FLAG_HUNGARY 4
#define FLAG_ITALY 5
#define FLAG_FRANCE 6
#define FLAG_BELGIUM 7
#define FLAG_AUSTRIA 8
#define FLAG_BULGARIA 9
#define FLAG_FINLAND 10
#define FLAG_JAPAN 11
#define FLAG_SWEDEN 12
#define FLAG_INDIA 13
#define FLAG_RUSSIA 14
#define FLAG_COLUMBIA 15
#define FLAG_DENMARK 16
#define FLAG_NETHERLANDS 17
#define FLAG_POLAND 18
#define FLAG_YEMEN 19
#define FLAG_EGYPT 20
#define FLAG_PORTUGAL 21
Functions:


- ShowFlagForPlayer(playerid, flag); - Function wich will show flag to a player. Example below.
- HideFlagsForPlayer(playerid); - Function wich will hide ALL Textdraws from player's screen.
Example script:


- Include version:

pawn Код:
#include <a_samp>
#include <zcmd>
#include <Flags>

CMD:romaniaflag(playerid, params[])
{
    ShowFlagForPlayer(playerid, FLAG_ROMANIA);
    return 1;
}

CMD:hideflag(playerid, params[])
{
    HideFlagsForPlayer(playerid);
    return 1;
}
- Filterscript version:

pawn Код:
#include <a_samp>
#include <zcmd>

// Rest of others code from filterscript.

CMD:romaniaflag(playerid, params[])
{
    ShowFlagForPlayer(playerid, FLAG_ROMANIA);
    return 1;
}

CMD:hideflag(playerid, params[])
{
    HideFlagsForPlayer(playerid);
    return 1;
}
Updating:


* NOTE: This filterscript it's updating.
You can see your country's flag in this filterscript, and use him in your sa-mp server.
So, if you want this, please, write in this topic your country's name, and I'll try to create and include your country's flag in this filterscript/include.

This it's ONLY first version. I'll add more countries flags in future, and I'll update it.
Installing:


- Include version:

pawn Код:
- Download include version;
- Put Flags.inc into your pawno/include/ folder.
- Enter in a filterscript/gamemode and include it: #include <Flags>
- Create/Remove countries flags.
- Filterscript version:

pawn Код:
- Download filterscript version;
- Put filterscripts into your filterscripts folder;
- Enter in Flags.pwn and go at last line.
- Create there your other codes.
- Save what you did;
- Enter in server.cfg, and at 'filterscript' line put: 'Flags' without comma.
- Exit from server.cfg and save.
- Open you server, and.... enjoy.
Download:


- Soldifiles; (Include Version)
- Solidfiles; (Filterscript Version)
- Pastebin; (Source Code)
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)