DjoLe11

Untitled

Jun 18th, 2020
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. CMD:prodajsvefirme(playerid, params[])
  2. {
  3. if(PlayerInfo[playerid][xAdmin] < 7) return GRESKA(playerid, "Niste ovlasceni!");
  4. new ImaFajl[ 40 ], id;
  5. for(new i; i<MAX_BUSSINES; i++)
  6. {
  7. format( ImaFajl, sizeof( ImaFajl ), F_FILE, i );
  8. BussinesInfo[ i ][ bOwned ] = 0;
  9. PlayerInfo[ id ][ xFirmaID ] = -1;
  10. strmid( BussinesInfo[ i ][ bName ], "Firma na Prodaju", 0, strlen( "Firma na Prodaju"), 32);
  11. strmid( BussinesInfo[ i ][ bOwner], "Drzava", 0, strlen( "Drzava" ), 32);
  12. SaveBussines( i ); Bussines_Refresh( i );
  13. BussinesInfo[ i ][ bNeaktivnost ] = 0;
  14. }
  15. Info( playerid, "Prodali ste sve firme");
  16. return 1;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment