Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:prodajsvefirme(playerid, params[])
- {
- if(PlayerInfo[playerid][xAdmin] < 7) return GRESKA(playerid, "Niste ovlasceni!");
- new ImaFajl[ 40 ];
- for(new i; i<MAX_BUSSINES; i++)
- {
- format( ImaFajl, sizeof( ImaFajl ), F_FILE, i );
- //if( !fexist( ImaFajl ) ) return GRESKA( playerid, "Ta firma ne postoji." );
- BussinesInfo[ i ][ bOwned ] = 0;
- strmid( BussinesInfo[ i ][ bName ], "Firma na Prodaju", 0, strlen( "Firma na Prodaju"), 32);
- strmid( BussinesInfo[ i ][ bOwner], "Drzava", 0, strlen( "Drzava" ), 32);
- SaveBussines( i ); Bussines_Refresh( i );
- BussinesInfo[ i ][ bNeaktivnost ] = 0;
- //Info( playerid, "Prodali ste firmu(ID: %d )!", i );
- }
- Info( playerid, "Prodali ste sve firme");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment