Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:bizfee(playerid,params[])
- {
- if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
- if(IsPlayerConnected(playerid))
- {
- new bouse = PlayerInfo[playerid][pPbiskey];
- if (bouse == 255) return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}You don't own a business.");
- new fee,string[64];
- if(sscanf(params, "d",fee)) return SendClientMessage(playerid, COLOR_WHITE, "{FFFFFF}Syntax: {FFFFFF}/bizfee <Money>");
- if(fee < 1 || fee > 5000) return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}Minimum fee is $1, maximum fee is $5,000.");
- BizzInfo[bouse][bEntranceCost] = fee;
- format(string, sizeof(string), "{FFFF00}Entrance fee set to $%s.", FormatNumber(BizzInfo[bouse][bEntranceCost]));
- new str1[184];
- mysql_format(SQL,str1,sizeof(str1),"UPDATE `bizz` SET `EntranceCost`='%d' WHERE `ID`='%d'",BizzInfo[bouse][bEntranceCost],bouse);
- mysql_tquery(SQL,str1,"","");
- OnPropTextdrawUpdate(2,bouse);
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement