Advertisement
Guest User

Untitled

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