/*
• Function: CreateBusiness(Float: EnterX, Float: EnterY, Float: EnterZ, Interior, Float: InteriorX, Float: InteriorY, Float: InteriorZ, Price, VirtualWorld, RentPrice)
• Data storage: MySQL (G-Stylezzz's plugin)
• Usage: Creating business, use this in OnGameModeInit or OnFilterScriptInit!
• Parameters:
EnterX, EnterY, EnterZ: Coordinates where you can enter business, also on that coordiantes will create pickup and 3D text!
ExitX, ExitY, ExitZ: Coordinates where you can exit business, this coordinates are coordiantes of interior, you can find interiors on http://weedarr.wikidot.com/interior or https://sampwiki.blast.hk/wiki/InteriorIDs
Interior: ID of interior you want, see the web page on the parameter above
Price: Price for buying business
VirtulWorld: Always increase this because if you have 2 same interior and player are in the (Example one is in his house, second is in his too) they will see themself, It will look that they have same house! (Bad explained :/)
• Example: CreateBusiness(-2395.9585,-601.2695,132.6484, 3, 384.808624,173.804992,1008.382812, 7000, 0);
*/
/*
• Function: GetBusinessUser(businessid)
• Usage: Getting name of user of specific business!
• Parameters:
businessid: ID of business that you want to get user (owner)
• Example: format(string, sizeof(string), "Business user of business id %d is %s", businessid, GetHouseUser(businessid));
*/
/*
• Function: GetBusinessEnterPos(houseid)
• Usage: Getting the enter position (XYZ) of specific business!
• Parameters:
businessid: ID of business that you want to get enter position
• Example: format(string, sizeof(string), "Business enter XYZ of business id %d is %s", businessid, GetBusinessEnterPos(businessid));
*/
/*
• Function: GetBusinessExitPos(houseid)
• Usage: Getting the exit position (XYZ) of specific business!
• Parameters:
businessid: ID of business that you want to get exit position
• Example: format(string, sizeof(string), "Business exit XYZ of business id %d is %s", businessid, GetBusinessExitPos(businessid));
*/
/*
• Function: GetBusinessEnterX(businessid)
• Usage: Getting the enter X position of specific business!
• Parameters:
businessid: ID of business that you want to get enter X position
• Example: format(string, sizeof(string), "Business enter X of business id %d is %s", businessid, GetBusinessEnterX(businessid));
*/
/*
• Function: GetBusinessEnterY(businessid)
• Usage: Getting the enter Y position of specific business!
• Parameters:
businessid: ID of business that you want to get enter Y position
• Example: format(string, sizeof(string), "Business enter Y of business id %d is %s", businessid, GetBusinessEnterY(businessid));
*/
/*
• Function: GetBusinessEnterZ(businessid)
• Usage: Getting the enter Z position of specific business!
• Parameters:
businessid: ID of business that you want to get enter Z position
• Example: format(string, sizeof(string), "Business enter Z of business id %d is %s", businessid, GetBusinessEnterZ(businessid));
*/
/*
• Function: GetBusinessExitX(businessid)
• Usage: Getting the exit X position of specific business!
• Parameters:
businessid: ID of business that you want to get exit X position
• Example: format(string, sizeof(string), "Business exit X of business id %d is %s", businessid, GetBusinessExitX(businessid));
*/
/*
• Function: GetBusinessExitY(businessid)
• Usage: Getting the exit Y position of specific business!
• Parameters:
businessid: ID of business that you want to get exit Y position
• Example: format(string, sizeof(string), "Business exit Y of business id %d is %s", businessid, GetBusinessExitY(businessid));
*/
/*
• Function: GetBusinessExitZ(businessid)
• Usage: Getting the exit Z position of specific business!
• Parameters:
businessid: ID of business that you want to get exit Z position
• Example: format(string, sizeof(string), "Business exit Z of business id %d is %s", businessid, GetBusinessExitZ(businessid));
*/
/*
• Function: GetBusinessPrice(businessid)
• Usage: Getting the price of specific business!
• Parameters:
businessid: ID of business that you want to get price
• Example: format(string, sizeof(string), "Business price of business id %d is %s", businessid, GetBusinessPrice(businessid));
*/
/*
• Function: GetBusinessInterior(businessid)
• Usage: Getting the interior of specific business!
• Parameters:
businessid: ID of business that you want to get interior
• Example: format(string, sizeof(string), "Business interior of business id %d is %s", businessid, GetBusinessInterior(businessid));
*/
/*
• Function: GetBusinessVirtualWorld(businessid)
• Usage: Getting the virtualworld of specific business!
• Parameters:
businessid: ID of business that you want to get virtualworld
• Example: format(string, sizeof(string), "Business virtualworld of business id %d is %s", businessid, GetBusinessVirtualWorld(businessid));
*/
/*
• Function: GetBusinessMoney(businessid)
• Usage: Getting the money of specific business!
• Parameters:
businessid: ID of business that you want to get money
• Example: format(string, sizeof(string), "Business money of business id %d is %s", businessid, GetBusinessMoney(businessid));
*/
/*
• Function: GetTotalBusiness(businessid)
• Usage: Getting the total business, use this in OnGameModeInit after all business!
• Example: printf("Total business: %d", GetTotalBusiness());
*/
/*
• Function: IsBusinessOwned(businessid)
• Usage: Checking if is bussines owned of specific business!
• Parameters:
businessid: ID of business that you want to check if is owned
• Example: if(IsBusinessOwned(businessid)) SendClientMessage(playerid, -1, "Business is owned!");
else SendClientMessage(palyerid, -1, "Business is not owned!");
*/
/*
• Function: IsBusinessLocked(businessid)
• Usage: Checking if is business locked of specific business!
• Parameters:
businessid: ID of business that you want to check if is locked
• Example: if(IsBusinessOwned(businessid)) SendClientMessage(playerid, -1, "Business is locked!");
else SendClientMessage(palyerid, -1, "Business is not locked!");
*/
/*
• Function: IsBusinessExist(businessid)
• Usage: Checking if is exist of specific business!
• Parameters:
businessid: ID of business that you want to check if is exist
• Example: if(IsBusinessExist(businessid)) SendClientMessage(playerid, -1, "Business exist!");
else SendClientMessage(palyerid, -1, "Business doesn't exist!");
*/
/*
• Function: IsPlayerBuyBusiness(playerid, businessid)
• Usage: Checking if is player buyed business (used when you try to buy business but you already have house)!
• Parameters:
playerid: ID of player that you want preform check
businessid: ID of business that you want to check if is player buy business
• Example: if(IsPlayerBuyBusiness(playerid, businessid)) return SendClientMessage(playerid, -1, "You buy this business already!");
else SendClientMessage(playerid, -1, "You didn't buy this business!");
*/
/*
• Function: IsPlayerBuyBusiness(playerid, businessid)
• Usage: Checking if is player buyed any business!
• Parameters:
playerid: ID of player that you want preform check
• Example: if(IsPlayerBuyAnyBusiness(playerid)) return SendClientMessage(playerid, -1, "You buy any business already!");
else SendClientMessage(playerid, -1, "You didn't buy any business!");
*/
/*
• Function: IsPlayerBusinessOwner(playerid, businessid)
• Usage: Checking if is player owner of specific business!
• Parameters:
playerid: ID of player that you want preform check
businessid: ID of vusiness that you want to check if is player owner
• Example: if(IsPlayerBusinessOwner(playerid, businessid)) return SendClientMessage(playerid, -1, "You are owner of the business!");
else SendClientMessage(playerid, -1, "You are not owner of the business!");
*/
/*
• Command: /buyhouse
• Processor: y_commands (YCMD)
• Usage: Buying business (Player must be in range of business he want to buy!)
*/
/*
• Command: /sellbusiness
• Processor: y_commands (YCMD)
• Usage: Selling business (Player must be in range of business he want to sell!)
*/
/*
• Command: /lockbusiness
• Processor: y_commands (YCMD)
• Usage: Locking business (Player must be in range of his business to lock it!)
*/
/*
• Command: /unlockbusiness
• Processor: y_commands (YCMD)
• Usage: Unlocking business (Player must be in range of his business to unlock it!)
*/
/*
• Command: /businesscontrol
• Processor: y_commands (YCMD)
• Usage: Controling your business: lock business, unlock business, storing money in business, taking money from business (Player must be in his house to control it!)
*/
/*
• Callback: OnPlayerEnterBusiness(playerid, businessid)
• Action: Called when player enter business!
• Example: if(IsPlayerBusinessOwner(playerid, businessid) SendClientMessage(playerid, -1, "You entered your business!");
*/
/*
• Callback: OnPlayerExitBusiness(playerid, businessid)
• Action: Called when player exit business!
• Example: if(IsPlayerBusinessOwner(playerid, businessid) SendClientMessage(playerid, -1, "You exited your business!");
*/
• Action: Called when player enter house!
does this give us money ..tooo like this
your business afair 5000 and can we create business by commands ..like /createbus................can we ? |
of course you can't
That's called dynamic business creating, I don't like that, I made that just for HS, not for business too |
then it is fuck......it have to be dynamic......................that other house system that GATHOUSE is better then your house system.................close your thread now !
|
I Like this, and gona us this, but meybe add 1 buziness for example. Thank U
|
It's great, but I'd like to see something like /sellbusto playerid price
![]() |