Country Flags over the World. [INCLUDE/FILTERSCRIPT VERSION] -
HY - 08.02.2015
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)
Re: Country Flags over the World. [INCLUDE/FILTERSCRIPT VERSION] -
Jimmy0wns - 08.02.2015
Have you got any pictures?
Re: Country Flags over the World. [INCLUDE/FILTERSCRIPT VERSION] -
HY - 08.02.2015
Quote:
Originally Posted by Jimmy0wns
Have you got any pictures?
|
I can't post all pictures of all flags.
Them are made in textdraw with
iPLEOMAX's Textdraw Edtior and looks like real flags.
I've created 'Texture boxes' and setted specified flag's colors.
Try it, and you'll see how works.
Re: Country Flags over the World. [INCLUDE/FILTERSCRIPT VERSION] -
Nenzittow - 08.02.2015
Where is Portugal? xD
Nice work...
Re: Country Flags over the World. [INCLUDE/FILTERSCRIPT VERSION] -
HY - 08.02.2015
Quote:
Originally Posted by SirRafa
Where is Portugal? xD
Nice work...
|
Thanks.
Added Portugal.
Was hard to do that thing from middle, but I'd used a yellow ball sprite.
Re: Country Flags over the World. [INCLUDE/FILTERSCRIPT VERSION] -
Nenzittow - 08.02.2015
Add USA and Brazil too
Re: Country Flags over the World. [INCLUDE/FILTERSCRIPT VERSION] -
inferno211 - 09.02.2015
Код:
new Text:Textdraw[1000];
really? :O you use only 67 textdraw :O