Help Pickup gone
#3

// Getting Business Setup
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
// Making Business
BizInfo[idx][bType] = type;
BizInfo[idx][bStatus] = 0;
format(BizInfo[idx][bOwner], 32, "The State");
BizInfo[idx][bX] = X;
BizInfo[idx][bY] = Y;
BizInfo[idx][bZ] = Z;
BizInfo[idx][bMoney] = 0;
BizInfo[idx][bProducts] = 0;
BizInfo[idx][bSold] = 0;
BizInfo[idx][bLevel] = 1;
BizInfo[idx][bPrice] = 200000;
BizInfo[idx][bPickup] = CreateDynamicPickup(1272, 1, X, Y, Z, 0);
format(string, sizeof(string), "Owner: %s\nBusiness Type: %s\nStatus: For Sale\nPrice: $%d", BizInfo[idx][bOwner], RBT(idx), BizInfo[idx][bPrice]);
BizInfo[idx][bText] = CreateDynamic3DTextLabel(string, COLOR_WHITE, X, Y, Z, 15);
format(string, sizeof(string), "AdmWarn: %s has created business ID %d.", RPN(playerid), idx);
SendAdminMessage(COLOR_DARKRED, 1, string);
Log("logs/business.log", string);
idx = MAX_BIZ;
Reply


Messages In This Thread
Help Pickup gone - by meranti1995 - 12.07.2016, 12:50
Re: Help Pickup gone - by TaiRinsuru - 12.07.2016, 12:53
Re: Help Pickup gone - by meranti1995 - 12.07.2016, 12:56
Re: Help Pickup gone - by TaiRinsuru - 12.07.2016, 12:57
Re: Help Pickup gone - by meranti1995 - 12.07.2016, 13:01
Re: Help Pickup gone - by meranti1995 - 12.07.2016, 13:45
Re: Help Pickup gone - by Jonesy96 - 12.07.2016, 13:51
Re: Help Pickup gone - by meranti1995 - 12.07.2016, 14:36

Forum Jump:


Users browsing this thread: 1 Guest(s)