Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:sellbiz(playerid, params[])
- {
- if(gLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_ERROR, "Tu nu esti logat si nu poti sa folosesti aceasta comanda!");
- if(PlayerInfo[playerid][pBizzKey] == 0) return SendClientMessage(playerid, COLOR_ERROR, "Nu detii in Bizz!");
- new bizz = PlayerInfo[playerid][pBizzKey];
- new moneyback = (3*BizzInfo[bizz][bPrice])/4 + BizzInfo[bizz][bSafe];
- format(gString,sizeof(gString),"Do you want to sell your business for: $%s",FormatNumber(moneyback));
- ShowPlayerDialog(playerid, DIALOG_SELLBIZ, DIALOG_STYLE_MSGBOX, "Sell Business:", gString, "Sell", "Cancel");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement