Guest User

Untitled

a guest
Jan 21st, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. stock PrekiuMazinimas( playerid, bool:type, price, business )
  2. {
  3. if( !type )
  4. {
  5. if( GetPlayerMoney( playerid ) > price )
  6. {
  7. GivePlayerMoneyA( playerid, price );
  8. bInfo[ business ][ profit ] += floatround( price/2 );
  9. }
  10. else
  11. SendClientMessage(playerid, WHITE, "[ > ]{FF7E7E} Atsipraðome, jums neuþtenka pinigø.");
  12. }
  13. else
  14. {
  15. if( pDB[ playerid ][ bankok ] )
  16. {
  17. if( pDB[ playerid ][ bankas ] > price )
  18. {
  19. pDB[ playerid ][ bankas ] -= price;
  20. bInfo[ business ][ profit ] += floatround( price/2 );
  21. }
  22. else
  23. SendClientMessage(playerid, WHITE, "[ > ]{FF7E7E} Atsipraðome, jûs banke tiek neturite.");
  24. }
  25. else
  26. SendClientMessage( playerid, WHITE, "[ > ]{FF7E7E} Atsipraðome, jûs neturite banko sàskaitos." );
  27. }
  28. }
Add Comment
Please, Sign In to add comment