SA-MP Forums Archive
Businesses + Factions - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Businesses + Factions (/showthread.php?tid=113353)



Businesses + Factions - Ritchie999 - 13.12.2009

I am wondering if anyone could show me or point me in the right direction to making businesses to buy in a roleplay server and how to make factions?

i seen the tutorial on gTeam but that is to make teams, not factions


Re: Businesses + Factions - Damon_Black - 13.12.2009

Do you actually want the businesses to do stuff? (sell burgers, sell guns etc) This is very very complicated especially if you want to simulate a realistic economy.


Or do you just want the player to think he owns something? (even though its meaningless) A business is no more than a random designation that's assigned a point on the map and ownership in one player's userfile.


Re: Businesses + Factions - Ritchie999 - 13.12.2009

I want them to sell guns, clothes, phones, etc etc and for someone to purchase the business also so if someone buy's a phone or what ever the money goes to the business' safe


Re: Businesses + Factions - Damon_Black - 13.12.2009

These are advanced scripts. If you are asking how to make them, I would suggest you download a gamemode that has already tackled this issue. Godfather's 24/7 business is pretty decent. But seriously this very advanced scripting because it entails so much.


Re: Businesses + Factions - Ritchie999 - 13.12.2009

I'm making a non gf gamemode


Re: Businesses + Factions - acade - 13.12.2009

Quote:
Originally Posted by Ritchie999
I'm making a non gf gamemode
What you could do is take parts of the gf script, use it, learn from it but change some of the things.


Re: Businesses + Factions - Damon_Black - 14.12.2009

Yea seriously, and not necessarily GF either. The best thing you can do is examine other scripts and learn how they work. If you do this while building a gamemode from scratch it will be very beneficial to the learning process.


Re: Businesses + Factions - Oxside - 14.12.2009

Its easy:

At the top under includes:
Код:
new Cop[MAX_PLAYERS];
new Robbers[MAX_PLAYERS];
If you make a command for cops only:

if(Cop[playerid] == 1)
{
// the code for cop
}
else
{
// do with player if not a cop
}

I wil post a faction script soon