SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 15/12/2011, 07:28 PM   #1
Jakku
High-roller
 
Jakku's Avatar
 
Join Date: Apr 2009
Location: Heinola, Finland
Posts: 1,354
Reputation: 157
Default Dynamic organizations (A.K.A factions)

- Dynamic organization filterscript -


Introduction
Hello everyone and good day! I've seen a few users requesting an organization system so I decided to write a simple one!

Information
  • 1 line = 1 organization (A.K.A faction)
  • Organizations created directly from the filterscript
  • Easy to edit
  • Do NOT remove the credits if you decide to use this system
  • Please read this whole thread carefully before using the script

Dini was chosen for file processing because of it's simplicity for beginners.

Quote:
Originally Posted by Jakku View Post

v.2 Changelog:
  • CreateOrganizationZone can be used to create coloured "gangzones" for orgs
  • IsPlayerInOrgZone(playerid, orgname)
  • SendClientMessageToOrg(orgname, color, message)
  • Fixed some small bugs, nothing serious
  • Added auto-save for player stats and org. leaders (45sec delay)
  • Added /decline command for leaders to decline incoming requests
  • Added /ochat to chat with other org. members
Features
Creating new organization:

Code:
CreateOrganization(name[32], skin, Float:x,Float:y,Float:z, weapon1,ammo1,weapon2,ammo2,weapon3,ammo3)

Explanations:
name - Organization name
skin - Members will spawn with this skin if defined so
x - X- position of HQ
y - Y- position of HQ
z - Z- position of HQ
And the rest are for weapons and ammos

ALWAYS ADD A NEW ORG BELOW THE OLD ONE!
Max orgs are set to 10 as default, if you need more, increase "#define MAX_ORGS"
Creating an organization vehicle:

Code:
CreateOrgVehicle(org[], model, Float:x,Float:y,Float:z,Float:rot, clr1,clr2)

Explanations:
org - To which org is the vehicle for
model - vehicle model
x,y,z - spawn position
rot - rotation
clr1, clr2 - colors

ALWAYS CREATE VEHICLES AFTER YOU HAVE CREATED THE ORG!
Max vehicles per org is 10, if you need more, increase "#define MAX_ORG_VEHICLES"
Creating an organization zone:

Code:
CreateOrganizationZone(orgname[32], Float:minx,Float:miny,Float:maxx,Float:maxy, color)

Explanations:
orgname - To which org is the zone for (name)
minx - Min X- coordinate
miny- Min Y- coordinate
maxx - Max X- coordinate
maxy - Max Y- coordinate
color - The color for the gangzone. Recommended to use transparent colors

ALWAYS CREATE ZONES AFTER YOU HAVE CREATED THE ORG!
Max zones per org is 10, if you need more, increase "#define MAX_ZONES_PER_ORG"
Commands
Following commands are in use:

Code:
/orglist - View a complete list of organizations and their leaders
/myorg - View information about your current org.
/request - Request to join an org
/resign - Leave org.
/org - Will be used at org. HQ, to view information
/ochat - To chat with other members in your org.
/teletohq (Can be disabled, check line 42, which is "#define ENABLE_HQ_TELE")

For leader:
/setmember - Invite a player after (s)he typed /request
/kickmember - Kick a member
/members - View a list of online employees and their ranks
/setrank - Set a rank
/ovrespawn - Respawn all vehicles created for your org.
/decline - Decline an incoming request

For RCON admins:
/setleader
Download & use

If you have any problems using or installing this script please REPLY here
Pastebin link

Last edited by Jakku; 27/12/2014 at 05:51 PM.
Jakku is offline   Reply With Quote
Old 15/12/2011, 07:34 PM   #2
SpiderWalk
Gangsta
 
SpiderWalk's Avatar
 
Join Date: Apr 2010
Location: Serbia
Posts: 970
Reputation: 26
Default Re: Dynamic organizations

Wow.Cool i like it.It have save system?
SpiderWalk is offline   Reply With Quote
Old 15/12/2011, 07:35 PM   #3
Jakku
High-roller
 
Jakku's Avatar
 
Join Date: Apr 2009
Location: Heinola, Finland
Posts: 1,354
Reputation: 157
Default Re: Dynamic organizations

Quote:
Originally Posted by SpiderWalk View Post
Wow.Cool i like it.It have save system?
Yes, all player data is being saved to "Orginfo_playername.ini" and org. leaders to "org_leaders.txt"
__________________
Jakku is offline   Reply With Quote
Old 15/12/2011, 07:49 PM   #4
SpiderWalk
Gangsta
 
SpiderWalk's Avatar
 
Join Date: Apr 2010
Location: Serbia
Posts: 970
Reputation: 26
Default Re: Dynamic organizations

Quote:
Originally Posted by Jakku View Post
Yes, all player data is being saved to "Orginfo_playername.ini" and org. leaders to "org_leaders.txt"
Its Cool!
SpiderWalk is offline   Reply With Quote
Old 16/12/2011, 01:34 AM   #5
xRandomGuy
Little Clucker
 
Join Date: Oct 2011
Posts: 47
Reputation: 9
Default Re: Dynamic organizations

Awesome, thanks.
xRandomGuy is offline   Reply With Quote
Old 16/12/2011, 03:14 AM   #6
WarninigGirl
Little Clucker
 
WarninigGirl's Avatar
 
Join Date: Dec 2011
Posts: 14
Reputation: 0
Default Re: Dynamic organizations

Awesome. Really Nice Work
WarninigGirl is offline   Reply With Quote
Old 16/12/2011, 11:46 AM   #7
Rafiko
Big Clucker
 
Join Date: Jul 2011
Location: LWD
Posts: 183
Reputation: 13
Default Re: Dynamic organizations

add function to create TAG for player.

for example "samplayer" (name of account)

/TagPlayer Samplayer [SAM]

than his name will be changed to "[SAM]Samplayer"

if thats possible it will be great xD

thank you for the HARD and AWESOME job!
Rafiko is offline   Reply With Quote
Old 16/12/2011, 11:56 AM   #8
Jakku
High-roller
 
Jakku's Avatar
 
Join Date: Apr 2009
Location: Heinola, Finland
Posts: 1,354
Reputation: 157
Default Re: Dynamic organizations

Quote:
Originally Posted by Rafiko View Post
add function to create TAG for player.

for example "samplayer" (name of account)

/TagPlayer Samplayer [SAM]

than his name will be changed to "[SAM]Samplayer"

if thats possible it will be great xD

thank you for the HARD and AWESOME job!
Thanks for your suggestion. I appreciate it
__________________
Jakku is offline   Reply With Quote
Old 16/12/2011, 12:00 PM   #9
BigETI
Banned
 
Join Date: Mar 2010
Location: Germany
Posts: 1,046
Reputation: 359
Default AW: Dynamic organizations

http://forum.sa-mp.com/showthread.php?t=303605
And remove adf.ly links please
BigETI is offline   Reply With Quote
Old 16/12/2011, 12:02 PM   #10
Edvin
Gangsta
 
Edvin's Avatar
 
Join Date: Dec 2010
Posts: 856
Reputation: 71
Default Re: Dynamic organizations

WOW! Fucking nice dude! I will use it
Edvin is offline   Reply With Quote
Reply

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
Organizations Sarma93 Scripting Help 2 02/12/2011 07:57 PM
Help Organizations and Jobs Djankaa Help Archive 1 06/03/2011 05:45 AM
Skins for Organizations fmmalves Help Archive 14 19/07/2010 03:48 PM
Factions And Organizations laserhel50 Help Archive 3 17/11/2009 06:20 PM


All times are GMT. The time now is 07:57 AM.


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