Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stock PrekiuMazinimas( playerid, bool:type, price, business )
- {
- if( !type )
- {
- if( GetPlayerMoney( playerid ) > price )
- {
- GivePlayerMoneyA( playerid, price );
- bInfo[ business ][ profit ] += floatround( price/2 );
- }
- else
- SendClientMessage(playerid, WHITE, "[ > ]{FF7E7E} Atsipraðome, jums neuþtenka pinigø.");
- }
- else
- {
- if( pDB[ playerid ][ bankok ] )
- {
- if( pDB[ playerid ][ bankas ] > price )
- {
- pDB[ playerid ][ bankas ] -= price;
- bInfo[ business ][ profit ] += floatround( price/2 );
- }
- else
- SendClientMessage(playerid, WHITE, "[ > ]{FF7E7E} Atsipraðome, jûs banke tiek neturite.");
- }
- else
- SendClientMessage( playerid, WHITE, "[ > ]{FF7E7E} Atsipraðome, jûs neturite banko sàskaitos." );
- }
- }
Add Comment
Please, Sign In to add comment