SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 22/06/2020, 09:13 PM   #1
Unkovic
Big Clucker
 
Unkovic's Avatar
 
Join Date: Sep 2017
Posts: 106
Reputation: 14
Post CB_Flags pack - 20+ European flags - Stable release

Cluckin' bell flags pack

Cluckin' bell flags pack is a pack of 20+ flags, european mainly, being constantly updated. This is an open sourced project, the code have been left on github. Every help is welcome.

Usage

There're few functions used to create a flag.

pawn Code:
stock CB_CreateFlag(flag, flagsize, Float:posx, Float:posy, bool:clickable = 0)
/* flag - flag to create
flagsize - desired size of created flag
Float:posx/posy - positions of flag
bool:clickable - set whether the flag is clickable or not, not by default*/


CB_HideFlagForPlayer(playerid, flag, flagsize)
/* flag - flag to hide
flagsize - desired size of flag to hide
*/


CB_ShowFlagForPlayer(playerid, flag, flagsize)
/* flag - flag to show
flagsize - desired size of flag to show
*/

Callbacks

pawn Code:
public OnPlayerClickFlag(playerid, flag, flagsize)
// Called when player click a flag

Destroy?

There aren't functions to delete flags? No, there aren't, they're deleted automatically in OnGameModeExit/FilterScriptExit.

Download

Source code: https://github.com/Cluckin-Bell/cluckin-bell-flags
Release: https://github.com/Cluckin-Bell/cluc...flags/releases
sampctl:
Code:
sampctl package install Cluckin-Bell/cluckin-bell-flags
Attention

Take into account that this include maybe have bugs, if you find anyone, feel free to write it.

Last edited by Unkovic; 23/06/2020 at 07:32 PM. Reason: Forgotten dl link
Unkovic is offline   Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Include] Textdraw Flags - Over 30 country flags Drebin Includes 71 25/09/2016 09:29 PM
Best European VPS provider? wumpyc Server Support 5 22/07/2013 03:57 PM
I was thinking for startup European Trucking Again Mustang[GTS] Server Support 6 30/04/2013 01:30 PM
[Include] Anti Cheat Pack (Full Release) CROSS_Hunter Includes 22 07/09/2012 10:18 PM
[Map] Дрифт сити/Drift City SAMP MTA+stunt pack 0.2g stable startserv Релизы/Releases 7 25/04/2012 02:25 AM


All times are GMT. The time now is 08:32 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.